Bienvenido: ( Identificarse | Registrarse )      
Foros de Trucos Windows
 
Closed TopicStart new topicStart Poll

Outline · [ Estándar ] · Lineal+

> Imágenes y códigos html en nuke 7.9

Javi47008
post Nov 20 2005, 03:08 AM
Publicado: #1


Maestro Secreto
*******

Grupo: Miembros Vitalicios
Mensajes: 813
Registrado: 1-October 04
Miembro nº: 22.469



1) Para las imágenes:

ABRIR EL ARCHIVO mainfile.php

BUSCAR:

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

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

CODE
$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:

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



Un saludo bye1.gif


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Javi47008
post Jan 1 2006, 11:05 AM
Publicado: #2


Maestro Secreto
*******

Grupo: Miembros Vitalicios
Mensajes: 813
Registrado: 1-October 04
Miembro nº: 22.469



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 ÚLTMIGO CÓDIGO DE POST ANTERIOR Y HAZ ESTO:

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

CODE
$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.

CODE

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

Un saludo bye1.gif


User is offlineProfile CardPM
Go to the top of the page
+Quote Post
pacofm3
post Feb 11 2006, 01:14 PM
Publicado: #3


Newbie
*

Grupo: Members
Mensajes: 2
Registrado: 11-February 06
Miembro nº: 159.699



QUOTE(Javi47008 @ Jan 1 2006, 11:05 AM)
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 ÚLTMIGO CÓDIGO DE POST ANTERIOR Y HAZ ESTO:

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

CODE
$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.

CODE

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

Un saludo  bye1.gif
*


ésto funciona con php-Nuke 7.9?
saludos



User is offlineProfile CardPM
Go to the top of the page
+Quote Post
chompirc
post Feb 17 2006, 01:52 AM
Publicado: #4


Miembro Avanzado
***

Grupo: Members
Mensajes: 87
Registrado: 14-February 06
Miembro nº: 160.117



Hola... Algun ejemplo de como quedaria un trabajo en Nuke???... Solo que no conozco el prog entonces me gustaria ver para que sirve biggrin20jy.gif

Saludos! bye1.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Javi47008
post Feb 17 2006, 09:02 AM
Publicado: #5


Maestro Secreto
*******

Grupo: Miembros Vitalicios
Mensajes: 813
Registrado: 1-October 04
Miembro nº: 22.469



Mi web es nuke: www.puceladefiesta.com

Un saludo.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Javi47008
post Feb 23 2006, 01:07 AM
Publicado: #6


Maestro Secreto
*******

Grupo: Miembros Vitalicios
Mensajes: 813
Registrado: 1-October 04
Miembro nº: 22.469



Para poner un archivo flash en el logo, vete al archivo header.html que está dentro del directorio del theme que uses.

Busca la linea en la que pone:
CODE
<img src="themes/fisubgreen/images/logo.jpg" border="0" alt="$sitename">


y sustituyela por esta reyenando con los datos te tu archivo.

CODE
<embed width="992" height="171" src="http://elenlacedondestaelflash.swf">


Un saludo yaahooo.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
Closed TopicTopic OptionsStart new topic

Collapse

> Topicos similares

Como subo imagenes al correo electronico Hd-Hack 15 0 Jul 22 2008, 02:22 AM
By: Hd-Hack
Necesito Codigos de un MBR (Master Boot Record) ... violeta_col 151 7 Jul 20 2008, 09:26 PM
By: elranix
Conversor HTML a CSS rakilon 17 1 Jul 19 2008, 10:46 PM
By: JoseIgnacio33
¿Cómo puedo quitar las imágenes de los iconos d ... Noxhine 354 3 Jul 16 2008, 06:32 PM
By: Noxhine
problemas con las miniaturas de imagenes en win ... kenix19 124 1 Jul 16 2008, 10:02 AM
By: jbex

Google
Web www.trucoswindows.net