PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
blackplague
Hangin' Around


Joined: Oct 23, 2004
Posts: 25

PostPosted: Wed Feb 14, 2007 3:50 am Reply with quote Back to top

I have RavenNuke7.6 Distro and i think this is a new one.I cant find the issue anywhere.I'm trying to allow html tags in profile signatures which i wasent able to do,so i reserched the problem and found this at karaka-online here:http://www.karakas-online.de/EN-Book/allow-special-html-tags.html#TAB-FILTER_TEXT
and i changed the config.php to allow the tags like this:

"$AllowableHTML = array("b"=>1,
"i"=>1,
"a"=>2,
"em"=>1,
"br"=>1,
"strong"=>1,
"blockquote"=>1,
"tt"=>1,
"li"=>1,
"ol"=>1,
"H1"=>1,
"H2"=>1,
"H3"=>1,
"H4"=>1,
"center"=>1,
"img"=>2,
"alt"=>1,
"table"=>2,
"tr"=>2,
"td"=>2,
"p"=>2,
"div"=>2,
"font"=>2,
"p"=>1,
"p"=>1,
"ul"=>1);"

then i changed the mainfile.php from this:

"function check_html ($str, $strip="") {
/* The core of this code has been lifted from phpslash */
/* which is licenced under the GPL. */
require(INCLUDE_PATH."config.php");
if ($strip == "nohtml") $AllowableHTML = array('');
$str = stripslashes($str);
$str = eregi_replace("<[[:space:]]*([^>]*)[[:space:]]*>",'<\\1>', $str);
// Delete all spaces from html tags .
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">', $str);
// Delete all attribs from Anchor, except an href, double quoted.
$str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", '', $str);
// Delete all img tags
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
// Delete javascript code from a href tags -- Zhen-Xjell @
Only registered users can see links on this board!
Get registered or login to the forums!
"

commenting out these:


"$str = eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>", ", $str);
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>", '<a href="\\1">', $str); # ""

making it this:


"function check_html ($str, $strip="") {
/* The core of this code has been lifted from phpslash */
/* which is licenced under the GPL. */
require(INCLUDE_PATH."config.php");
if ($strip == "nohtml") $AllowableHTML = array('');
$str = stripslashes($str);
$str = eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>", '', $str);
// Delete javascript code from a href tags -- Zhen-Xjell @
Only registered users can see links on this board!
Get registered or login to the forums!
"

Yet i still cannot add images in profile signatures.Can you help show me what i'm doing wrong?I have allowed html in signatures and the bbphp configuration is correct.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 5708

PostPosted: Wed Feb 14, 2007 6:43 am Reply with quote Back to top

We are replacing both $allowable_html and the check_html function in the next release of RN. It will now include nukeWYSIWYG by default, and you shouldn't need to make changes if you use that.

But, I'm not certain the forums use the check_html function. In fact, in the same page you referenced, there is no mention of forums using this function.

Have you made any other changes, along the lines of forum mods? I'd recheck the forums configuration site - note that, in the General Admin Configuration just above Allow Signatures and just below Allow HTML, are the Allowed HTML tags. Make sure the img tag is in the list.
View user's profile Send private message
blackplague
Hangin' Around


Joined: Oct 23, 2004
Posts: 25

PostPosted: Wed Feb 14, 2007 10:37 am Reply with quote Back to top

This is in the General Admin Configuation:

"Allowed HTML tags
Separate tags with commas: b,i,u,pre,img"

I put the img tag in.Is this correct?It's still not working though.

In the Forums profile signature i have the tag like this:
<img src="http://xxxblackplaguexxx.com/images/logo1.gif"></img>

I've also tried BBcode like this:
[img]http://xxxblackplaguexxx.com/images/logo1.gif[/img]

But neither is working.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
blackplague
Hangin' Around


Joined: Oct 23, 2004
Posts: 25

PostPosted: Wed Feb 14, 2007 11:04 am Reply with quote Back to top

I found the problem,it's always something simple.I wasent allowing signatures in the post.Sorry bout that.But thanks.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 5708

PostPosted: Wed Feb 14, 2007 11:58 am Reply with quote Back to top

No problem - thanks for the follow up. It will help someone else in the future.
View user's profile Send private message
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.

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-2010 by Raven

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 Modified by the RavenNuke™ Team ::

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

zerosum