You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 53 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - IMAGES NEWS (NOT WORK NOW) [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
ZeYt
Nuke Soldier
Nuke Soldier


Joined: Oct 24, 2005
Posts: 13


PostPosted: Wed Jul 19, 2006 2:01 am Reply with quoteBack to top

Hello, i've searched in this forum a solution but i didn't found it, and i've watched that many people have this problem.
Well ill explain, i have 2 nukes 7.8
1 (FRESH WITHOTUH PATCHING) works img
The other was at star 7.4 and i patched it to 7.8 and now images inst showd

¿What is the file or the thing who make that to stop showing imgs?

Ty
Find all posts by ZeYtView user's profileSend private message
ZeYt
Nuke Soldier
Nuke Soldier


Joined: Oct 24, 2005
Posts: 13


PostPosted: Thu Jul 20, 2006 9:29 am Reply with quoteBack to top

Any body knows?
Find all posts by ZeYtView user's profileSend private message
perfect-games
Site Admin
Site Admin


Joined: Jun 18, 2004
Posts: 210


PostPosted: Thu Jul 20, 2006 10:09 am Reply with quoteBack to top

its the patch causing it, i will look into it but not just yet, due to little time i have atm

thanks

Steve Wink
Find all posts by perfect-gamesView user's profileSend private messageSend e-mail
ZeYt
Nuke Soldier
Nuke Soldier


Joined: Oct 24, 2005
Posts: 13


PostPosted: Thu Jul 20, 2006 11:41 am Reply with quoteBack to top

Thank you Very Happy and luck watching why Rolling Eyes
Find all posts by ZeYtView user's profileSend private message
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Thu Jul 20, 2006 2:58 pm Reply with quoteBack to top

Check your config.php and see if the img tag is allowed,
Code:
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);

Add in there "img"=>2, and see if that fixes the problem.

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
ZeYt
Nuke Soldier
Nuke Soldier


Joined: Oct 24, 2005
Posts: 13


PostPosted: Fri Jul 21, 2006 1:43 am Reply with quoteBack to top

Yes that was the 1st that i did, and img not showing.
Find all posts by ZeYtView user's profileSend private message
ZeYt
Nuke Soldier
Nuke Soldier


Joined: Oct 24, 2005
Posts: 13


PostPosted: Fri Jul 21, 2006 2:32 am Reply with quoteBack to top

Ok i fixed it putting the news and avantgo modules of site working to the not working site and now it works fine xD
Find all posts by ZeYtView user's profileSend private message
HalJordan
Support Staff
Support Staff


Joined: Aug 07, 2004
Posts: 1117

Location: Somewhere around Hunan, China

PostPosted: Fri Jul 21, 2006 6:20 am Reply with quoteBack to top

Good deal.

_________________
Obedezco, pero no cumplo.

Proprietor, www.computernewbie.info
Support staff, www.nukecops.com
Find all posts by HalJordanView user's profileSend private messageSend e-mailVisit poster's websiteAIM Address
Supertex
Nuke Cadet
Nuke Cadet


Joined: Apr 27, 2003
Posts: 4


PostPosted: Mon Sep 25, 2006 7:07 pm Reply with quoteBack to top

Mind my asking how I would go about adding certain html as allowable in the news section? I checked my config.php, and I have "img" there, but for some reason when I use "img src" it cuts off the 'src' Crying or Very sad

I'm also having the issue with the slashes every time I edit, but as I read it, that's an issue undergoing scrutiny as we speak.

This was alot to swallow. My site was victimized by a script kiddie, so I decided to up from v6.5 to 7.6 with the patched 3.2 + NukeSentinel. After the changes all of my previous news articles had the images omitted, and I've had hell posting new ones.

I'd like to be able to use a bit more html than is currently allowed..."center" would be nice for one. Razz

btw...is it normal for Nuke Sentinel to send me to a warning page when I click on one of the referral links in admin? And what means is there to test Sentinel?
Find all posts by SupertexView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 566


PostPosted: Tue Sep 26, 2006 3:32 am Reply with quoteBack to top

I think the issue is not with the allowable html. I think the issue is with the function check_html().

In the index.php file of the module where you have the issue, go to the function that displays or sends data to the browser. For the field that is giving you the problem, remove the check_html. Make sure to remove one of the ")" at the end.

see if that fixes your problem....

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
Supertex
Nuke Cadet
Nuke Cadet


Joined: Apr 27, 2003
Posts: 4


PostPosted: Tue Sep 26, 2006 12:49 pm Reply with quoteBack to top

That in fact, DID fix the feed from the DB. Any existing article in the DB displays correctly, but I cannot post any new news stories containing center tags, etc, without doing so in the DB itself.

I edited below the line:
Code:
function theindex($new_topic="0") {


for $title, $hometext, $bodytext, removing the check, leaving only in $topic_title, $aid, $comments, $topic, $informant, $notes and the following string, which I was unsure of (which occurs twice):
Code:
if ($catid > 0) {
       $row2 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
       $cattitle = check_words(check_html($row2['title'], "nohtml"));

I don't really care if the title, adminID, or informant have the exclusions. I didn't think it wise to allow exclusions for comments or notes. But does the check_html affect the entire series of events regardless of line? I would think by the way I did this, that new topics would only allow the exclusion for home and body text, while leaving the checks in place for the others...save for that last spot of code, and I don't know what it does really.

Is that second code snippet what inserts the data into the tables? That would explain the lack of the ability to post from the admin interface...but what security risk am I employing by removing the check from that string?
Find all posts by SupertexView user's profileSend private message
spottedhog
Captain
Captain


Joined: Apr 30, 2004
Posts: 566


PostPosted: Tue Sep 26, 2006 1:44 pm Reply with quoteBack to top

Functions that contain the word "save" in it generally are the ones that actually save to the database. Another way of finding it is to look for "Update" in the SQL query or "ADD". Generally, those functions will have a line like this about the sql query:

Code:
$mytext = check_html($mytext);

where the variable is filtered before going to the database. One other way is to look for a value in the form code for the save button and see what function name it goes to.

In the grand scheme of things, yes, not filtering data is a potential security risk, however, since you must approve a news article, that somewhat reduces the risk.

I made a proposal on another nuke support site to fix this issue, however, I am unsure whether anything will be done, or what they may decide.

As far as not being able to use the center tag, try this..... in the style.css file of your theme, put in this code:
Code:
span.centertext {text-align:center}


Then in your text area, surround everything you wish to center like this:
Code:
<span class='centertext'>ALL_TEXT_INPUTS_HERE</span>

_________________
SMF-Nuke admin

SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
Find all posts by spottedhogView user's profileSend private messageSend e-mailVisit poster's website
alvi
Corporal
Corporal


Joined: Dec 03, 2003
Posts: 50


PostPosted: Sat Oct 21, 2006 3:10 pm Reply with quoteBack to top

I was having the same problem with the images and after working on it for 2-3 days I finally came into the conclusion that chatservs patch doesn't like,
Code:
border="0"
, or
Code:
border=""
, on images, so you have to put a value into it for example
Code:
border="1"
Find all posts by alviView user's profileSend private message
Legno_Genova
Private
Private


Joined: Nov 16, 2005
Posts: 39


PostPosted: Wed Oct 25, 2006 6:03 am Reply with quoteBack to top

I always use border 0 for images, pictures and frames.

_________________
Legno
Cornici per foto
Multistrati compensato
Bricolage fai da te
Find all posts by Legno_GenovaView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Wed Oct 25, 2006 6:37 am Reply with quoteBack to top

In mainfile.php

Code:

FIND (x2)

($tmp != "")

CHANGE TO

(!empty($tmp))


_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.253 Seconds - 346 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::