- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 47 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Html tags [URGENT] [ ]
Author
Message
Ruben
Guest
Posted:
Tue Mar 29, 2005 9:43 am
Hi,
I tried alot of phpnuke support forums, but either noone replied or knew what the problem was...
Anyways, when I write a review the html tags don't work, and you can just see them in the text.
Here is a example: http://www.gamedrift.com/modules.php?name=Reviews&rop=showcontent&id=19
Someone please help, I lost ALOT of traffic because of this stupid problem.
techniz
Nuke Cadet
Joined: Jul 23, 2004
Posts: 3
Posted:
Wed Mar 30, 2005 1:42 pm
Are you using an html editor? I had this problem with a htmlarea 3.01
I solved mine by doing the following:
Edit index.php in the reviews module (not the one in admin if your using 7.6)
At around line 294
Find:-
Quote:
$text = htmlspecialchars(stripslashes(Fixquotes(urldecode(check_html($text, "")))));
and replace with:-
Quote:
$text = stripslashes(Fixquotes(urldecode(check_html($text, ""))));
This seemed to stop the text diplaying the html code
Guest
Posted:
Thu Mar 31, 2005 3:46 am
Well, that works! Thanks alot dude!
sqm
Guest
Posted:
Mon May 02, 2005 3:02 pm
enrique00
Sergeant
Joined: Apr 20, 2005
Posts: 98
Location: Panama
Posted:
Tue Aug 30, 2005 8:14 am
Thank you very very much!!
salman_500
Nuke Cadet
Joined: Oct 27, 2005
Posts: 6
Posted:
Sat Nov 19, 2005 9:44 pm
THis didn't work for me....
it is already that way but i still see html in the reviews...plz help
_________________ <a href="http://solothemes.frih.net"><img src="http://solothemes.frih.net/images/logo1.gif"></a>
sozocreative
Nuke Cadet
Joined: Nov 01, 2005
Posts: 6
Location: Baltimore
Posted:
Sun Nov 20, 2005 10:55 am
I was just able to fix mine through doing the following:
In modules/reviews/index.php under "function send_review", I changed
$id = intval($id);
$title = filter($title, "nohtml", 1);
$text = filter($text, "", 1);
$reviewer = filter($reviewer, "nohtml", 1);
to the following:
$id = intval($id);
$title = filter($title, "nohtml", 1);
$text = stripslashes(Fixquotes(urldecode(check_html($text, ""))));
$reviewer = filter($reviewer, "nohtml", 1);
It appears to have solved my html appearing in my Reviews modules. I have 7.9 phpnuke with the 3.1 patch.
salman_500
Nuke Cadet
Joined: Oct 27, 2005
Posts: 6
Posted:
Mon Nov 21, 2005 4:37 am
Its already that way....man im now getting distressed!!!
_________________ <a href="http://solothemes.frih.net"><img src="http://solothemes.frih.net/images/logo1.gif"></a>
You can post new topics in this forum You can 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