PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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
persona_non_grata



Joined:
Posts: 0

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

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
Worker
Worker


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

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

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);
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

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

are you using 7.9 ?
View user's profile Send private message
candy
Worker
Worker


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

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

yes i am
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
candy
Worker
Worker


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

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

ok i will try that. thank you.
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum