Ver Mensaje Individual
  #13 (permalink)  
Antiguo 11/03/2005, 04:19
afamap
 
Fecha de Ingreso: marzo-2005
Mensajes: 14
Antigüedad: 19 años, 2 meses
Puntos: 0
Cita:
Iniciado por ldp
Si no han borrado los comentarios del theme deberías encontrar un bloque que empieza así:

/************************************************** **********/
/* Function themeheader() */
/************************************************** **********/

En ese bloque, después de todo lo que habla del menú superior* (si tu theme tiene menú superior) está lo de $public_msg = public_message();


*te das cuenta de que habla del menú siperior porque vienen un monton de vínculos y los enlaces a las imágenes que van en el menú (por ejemplo account.gif).

Cuando lo encuentres, seguimos :)
Bueno, seguimos (muchas gracias por tu paciencia), he encontrado esto:
/************************************************** **********/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************** **********/

function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#F8EAA9\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\"><br>\n\n\n";
if ($banners == 1) {
include("banners.php");
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">Create an account";
} else {
$theuser = "&nbsp;&nbsp;Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/3D-Fantasy/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/3D-Fantasy/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

Haber...

Un saludo