Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9
Author Message
candy
Worker
Worker



Joined: Dec 21, 2004
Posts: 225
Location: Kansas City metro

PostPosted: Tue Jun 05, 2007 11:13 pm Reply with quote

i am trying to add a jpg (hyperlinked) in a block but every time i put in the html code into the block and save it, the jpg doesn't show up. Then when i go back into edit the block all i see is the "<a>" code without the "<img src>" code. Any idea why it's not letting me insert images into blocks? I've used other versions of nuke before and it's not been a problem. Thanks.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Jun 06, 2007 4:16 am Reply with quote

hello candy,

did you checked if all of that is in the allowed html tags in the config.php ?
 
View user's profile Send private message
candy







PostPosted: Wed Jun 06, 2007 8:52 am Reply with quote

here's what my code looks like for allowable html...is this right? i am trying to use the img src code.

Quote:
$AllowableHTML = array("b"=>1,"i"=>1,"strike"=>1,"img src"=>1,"div"=>2,"u"=>1,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);
 
hitwalker







PostPosted: Wed Jun 06, 2007 9:38 am Reply with quote

are you using 7.9 ?
 
candy







PostPosted: Wed Jun 06, 2007 10:36 am Reply with quote

yes i am
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Wed Jun 06, 2007 11:06 am Reply with quote

You need to use "img" => 2.

The 2 means allow the img tag and attributes. The "src" is an attribute of the img tag.

I wish FB would put a comment next to that array in config.php explaining the 1 vs 2. It would have saved literally thousands of forum questions. LOL.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
candy







PostPosted: Wed Jun 06, 2007 11:09 am Reply with quote

ok i will try that. thank you.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.9

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©