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 -> Raven's RavenNuke(tm) v1.x Distro
Author Message
blackplague
Hangin' Around



Joined: Oct 23, 2004
Posts: 25

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

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! ]"

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! ]"

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: 6432

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

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.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
blackplague







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

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.
 
blackplague







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

I found the problem,it's always something simple.I wasent allowing signatures in the post.Sorry bout that.But thanks.
 
kguske







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

No problem - thanks for the follow up. It will help someone else in the future.
 
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 -> Raven's RavenNuke(tm) v1.x Distro

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 ©