Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Noticias en dos lineas

Estas en el tema de Noticias en dos lineas en el foro de Sistemas de gestión de contenidos en Foros del Web. Saludos, segun el siguiente codigo del archivo theme.php como puede modificarse para que en el index (news como index) aparezca dos columnas de noticias?. <?php ...
  #1 (permalink)  
Antiguo 14/05/2004, 18:08
 
Fecha de Ingreso: enero-2003
Ubicación: Lima
Mensajes: 214
Antigüedad: 21 años, 4 meses
Puntos: 0
Noticias en dos lineas

Saludos, segun el siguiente codigo del archivo theme.php como puede modificarse para que en el index (news como index) aparezca dos columnas de noticias?.

<?php

/************************************************** **********/
/* Theme Name: Classic */
/* By dar63 http://www.web-forums.co.uk */
/************************************************** **********/

/************************************************** **********/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************** **********/

$bgcolor1 = "#FFFFFF";
$bgcolor2 = "#FFFFFF";
$bgcolor3 = "#FFFFFF";
$bgcolor4 = "#FFFFFF";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

include("themes/Classic/tables.php");

/************************************************** **********/
/* 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 $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
if ($banners == 1) {
include("banners.php");}


cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "<body bgcolor=\"#000000\" text=\"#FFFFCC\" leftmargin=\"10\" topmargin=\"10\" marginwidth=\"10\" marginheight=\"10\">";

if ($username == "Anonymous") {
$theuser = "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=new_user\" >Register</a>";
} else {
$theuser = "&nbsp;&nbsp;Hello $username!";
}

$datetime = "<script type=\"text/javascript\">\n\n"
."<!-- // Array ofmonth Names\n"
."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\", \""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JUL Y."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTO BER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
."var now = new Date();\n"
."thisYear = now.getYear();\n"
."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
."document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n"
."// -->\n\n"
."</script>";

$public_msg = public_message();
$tmpl_file = "themes/Classic/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/Classic/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************** **********/

function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
if ($index == 1) {
$tmpl_file = "themes/Classic/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$tmpl_file = "themes/Classic/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo "<center>\n";
$footer_message = footmsg();
echo "</center>\n";
echo "<br>\n";
}

/************************************************** **********/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************** **********/

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userin fo&amp;username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/Classic/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************** **********/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&amp;op=userin fo&amp;username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/Classic/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

/************************************************** **********/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************** **********/

function themesidebox($title, $content) {
$tmpl_file = "themes/Classic/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>


Un saludo.
  #2 (permalink)  
Antiguo 15/05/2004, 03:04
elmajaron
Invitado
 
Mensajes: n/a
Puntos:
hay varios hacks/adoons para hacer eso un saludo
  #3 (permalink)  
Antiguo 15/05/2004, 12:54
 
Fecha de Ingreso: enero-2003
Ubicación: Lima
Mensajes: 214
Antigüedad: 21 años, 4 meses
Puntos: 0
jejejeje pero cual es pues... utilizo phpnuke 6.5
  #4 (permalink)  
Antiguo 15/05/2004, 15:19
elmajaron
Invitado
 
Mensajes: n/a
Puntos:
puedes usar el NSN_News_Dual y te lo puedes bajar de aqui http://www.nukescripts.net un saludo
  #5 (permalink)  
Antiguo 15/05/2004, 16:38
 
Fecha de Ingreso: enero-2003
Ubicación: Lima
Mensajes: 214
Antigüedad: 21 años, 4 meses
Puntos: 0
Sorry, no puedo encontrar el archivo, ayudame plz.
  #6 (permalink)  
Antiguo 15/05/2004, 17:01
elmajaron
Invitado
 
Mensajes: n/a
Puntos:
prueba a buscar por este nombre NSN News Universal que sirve para lo mismo un saludo
  #7 (permalink)  
Antiguo 07/07/2004, 22:17
Avatar de cauly  
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires
Mensajes: 726
Antigüedad: 22 años, 2 meses
Puntos: 0
el Universal en la version 1.1.0, tiene un problemita que es que muestra TODAS las noticias en la home, aunque hayas elegido poner alguna en otra categoría y que NO se publique en la home. Y ni idea como arreglar eso
  #8 (permalink)  
Antiguo 07/07/2004, 22:22
Avatar de cauly  
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires
Mensajes: 726
Antigüedad: 22 años, 2 meses
Puntos: 0
ya está la versión 1.1.1 voy a probarla a ver si esta no tiene ese error
  #9 (permalink)  
Antiguo 07/07/2004, 23:15
Avatar de cauly  
Fecha de Ingreso: febrero-2002
Ubicación: Buenos Aires
Mensajes: 726
Antigüedad: 22 años, 2 meses
Puntos: 0
si lo tiene al error ese, lo único que cambió (por lo poco que lo vi), es que si estás como admin te aparecen en la home 2 iconitos para borrar o editar cada noticia (pero se han olvidado de incluir las imagenes)
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:17.