When i try to add links to my reviews they get deleted when i send them. Also there is some other weird stuff going on and i have tried to fix it for some time now but nothing seems to work.
Below are before and after images of my problem
Notice that some of the text comes again down at the Yes/No button
Before
I have marked the other weird stuff here with red, notice that my link is gone
After
*i posted this on a "php-nuke support forum" but no luck there =/*
PHP-Nuke can't add links to reviews =/
PHP-Nuke can't add links to reviews =/
"The best place to hide a tree, is in a forest"
I have made some tests now, and when i preview th review the link is still there, but when i send it, it gets stripped. I discovered this when i loged in as a regular user and posted it so that it had to be verified by an admin first.
So i'm thinking that the problem maybe in the "send" part of the script. Could anyone take a look?
So i'm thinking that the problem maybe in the "send" part of the script. Could anyone take a look?
Code: Select all
function send_anime($date, $title, $text, $reviewer, $email, $score, $cover, $url, $url_title, $hits, $id, $rlanguage) {
global $admin, $EditedMessage, $prefix, $db, $module_name;
include ('header.php');
$id = intval($id);
$title = filter($title, "nohtml", 1);
$text = filter($text, "", 1);
$reviewer = filter($reviewer, "nohtml", 1);
$url_title = filter($url_title, "nohtml", 1);
$email = filter($email, "nohtml", 1);
$score = intval($score);
$cover = filter($cover, "nohtml", 1);
$url = filter($url, "nohtml", 1);
$url_title = filter($url_title, "nohtml", 1);
$hits = intval($hits);
OpenTable();
echo "<br><center>"._RTHANKS."";
$id = intval($id);
if ($id != 0)
echo " "._MODIFICATION."";
else
echo ", $reviewer";
echo "!<br>";
if ($score < 0 OR $score > 10) {
$score = 0;
}
if ((is_admin($admin)) && ($id == 0)) {
$db->sql_query("INSERT INTO ".$prefix."_anime VALUES (NULL, '$date', '$title', '$text', '$reviewer', '$email', '$score', '$cover', '$url', '$url_title', '1', '$rlanguage')");
echo ""._ISAVAILABLE."";
} else if ((is_admin($admin)) && ($id != 0)) {
$db->sql_query("UPDATE ".$prefix."_anime SET date='$date', title='$title', text='$text', reviewer='$reviewer', email='$email', score='$score', cover='$cover', url='$url', url_title='$url_title', hits='$hits', rlanguage='$rlanguage' where id = '$id'");
echo ""._ISAVAILABLE."";
} else {
$db->sql_query("INSERT INTO ".$prefix."_anime_add VALUES (NULL, '$date', '$title', '$text', '$reviewer', '$email', '$score', '$url', '$url_title', '$rlanguage')");
echo ""._EDITORWILLLOOK."";
}
echo "<br><br>[ <a href=\"modules.php?name=$module_name\">"._RBACK."</a> ]<br></center>";
CloseTable();
include ("footer.php");
}
"The best place to hide a tree, is in a forest"