1) Para las imágenes:
ABRIR EL ARCHIVO mainfile.php
BUSCAR:
Código:function getTopics($s_sid) { * global $topicname, $topicimage, $topictext, $prefix, $db; * $sid = intval($s_sid); * $result = $db->sql_query("SELECT t.topicname, t.topicimage, t.topictext FROM ".$prefix."_stories s LEFT JOIN ".$prefix."_topics t ON t.topicid = s.topic WHERE s.sid = '".$sid."'"); * $row = $db->sql_fetchrow($result); * $db->sql_freeresult($result); * $topicname = filter($topicname, "nohtml"); * $topicimage = filter($topicimage, "nohtml"); * $topictext = filter($topictext, "nohtml"); }
SUSTITUIR POR:
Código:function getTopics($s_sid) { * global $topicid, $topicname, $topicimage, $topictext, $prefix, $db; * $sid = intval($s_sid); * $result = $db->sql_query("SELECT t.topicid, t.topicname, t.topicimage, t.topictext FROM ".$prefix."_stories s LEFT JOIN ".$prefix."_topics t ON t.topicid = s.topic WHERE s.sid = '".$sid."'"); * $row = $db->sql_fetchrow($result); * $db->sql_freeresult($result); * $topicid = filter($row['topicid'], "nohtml"); * $topicname = filter($row['topicname'], "nohtml"); * $topicimage = filter($row['topicimage'], "nohtml"); * $topictext = filter($row['topictext'], "nohtml"); }
2) Para los códigos HTML en el mensaje inicial, donde dice " Bienvenido a xxxxx "... esto pasa porque debes especificar las etiquetas HTML que vas a permitir en PHP-Nuke 7.9. Ese inconveniente se soluciona de la siguiente manera:
Busca en tu archivo config.php la siguiente línea:
Ahora debes agregar la etiqueta "img" para que puedas colocar tu imágenes:Código:$AllowableHTML = array("b"=>1,"i"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);
Un saludoCódigo:$AllowableHTML = array("img"=>2,"b"=>1,"i"=>1,"u"=>1,"div"=>2,"a"=>2,"em"=>1,"br"=>1,"strong"=>1,"blockquote"=>1,"tt"=>1,"li"=>1,"ol"=>1,"ul"=>1);





