Imágenes y códigos html en Nuke 7.9

Imágenes y códigos html en Nuke 7.9

1) Para las imágenes:

ABRIR EL ARCHIVO mainfile.php

BUSCAR:

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:

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:

$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);

Ahora debes agregar la etiqueta «img» para que puedas colocar tu imágenes:

$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);

Si quieres que en las noticias, contenidos, etc, a parte de lo anterior de imágenes y html quieres que aparezcan tablas.

NO PONGAS EL ÚLTIMO CÓDIGO DE POST ANTERIOR Y HAZ ESTO:

Busca en tu archivo config.php la siguiente línea:

$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);

y sustitúyelo por este otro.

$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,"table"=>2,"td"=>1,"tr"=>1);

Ahora además de poder poner HTML e imágenes también puedes poner tablas.