International > Español / Castellano
Listado do Categorias Principales en todas las paginas
(1/1)
roviedo:
Hola alguines puede decir como lograr que las categorias principales esten en todas las paginas?.
Gracias
excitex2:
Saludos,,,
Localiza en includes/page_header.php
--- Code: ---?>
--- End code ---
Añade antes :
--- Quote ---//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload", $cat_id)) {
$upload_url = "";
$upload_button = "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
$upload_url = $site_sess->url(ROOT_PATH."member.php?action=uploadform&".URL_CAT_ID."=".$cat_id);
$upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
}
$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image($cat_id);
$site_template->register_vars(array(
"categories" => get_categories($cat_id),
"cat_name" => htmlspecialchars($cat_cache[$cat_id]['cat_name']),
"cat_description" => $cat_cache[$cat_id]['cat_description'],
"cat_hits" => $cat_cache[$cat_id]['cat_hits'],
"upload_url" => $upload_url,
"upload_button" => $upload_button,
"random_cat_image" => $random_cat_image
));
unset($random_cat_image);
--- End quote ---
Ahora inserta en las templates donde quieras que se vean las categorias el siguiente código :
--- Quote --- {if categories}
<table width="450" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_categories}</td>
</tr>
<tr>
<td class="row2" valign="top">{categories}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{endif categories}
--- End quote ---
excitex2
pablogross:
--- Quote from: excitex2 on May 11, 2005, 01:06:13 AM ---Saludos,,,
Localiza en includes/page_header.php
--- Code: ---?>
--- End code ---
Añade antes :
--- Quote ---//-----------------------------------------------------
//--- Show Categories ---------------------------------
//-----------------------------------------------------
if (!check_permission("auth_upload", $cat_id)) {
$upload_url = "";
$upload_button = "<img src=\"".get_gallery_image("upload_off.gif")."\" border=\"0\" alt=\"\" />";
}
else {
$upload_url = $site_sess->url(ROOT_PATH."member.php?action=uploadform&".URL_CAT_ID."=".$cat_id);
$upload_button = "<a href=\"".$upload_url."\"><img src=\"".get_gallery_image("upload.gif")."\" border=\"0\" alt=\"\" /></a>";
}
$random_cat_image = (defined("SHOW_RANDOM_IMAGE") && SHOW_RANDOM_IMAGE == 0) ? "" : get_random_image($cat_id);
$site_template->register_vars(array(
"categories" => get_categories($cat_id),
"cat_name" => htmlspecialchars($cat_cache[$cat_id]['cat_name']),
"cat_description" => $cat_cache[$cat_id]['cat_description'],
"cat_hits" => $cat_cache[$cat_id]['cat_hits'],
"upload_url" => $upload_url,
"upload_button" => $upload_button,
"random_cat_image" => $random_cat_image
));
unset($random_cat_image);
--- End quote ---
Ahora inserta en las templates donde quieras que se vean las categorias el siguiente código :
--- Quote --- {if categories}
<table width="450" border="0" cellspacing="0" cellpadding="1">
<tr>
<td class="head1">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="head1" valign="top">{lang_categories}</td>
</tr>
<tr>
<td class="row2" valign="top">{categories}</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
{endif categories}
--- End quote ---
excitex2
--- End quote ---
en categories no me funciona! que puede ser?
nobby:
--- Quote from: pablogross on September 14, 2012, 05:37:32 AM ---en categories no me funciona! que puede ser?
--- End quote ---
Pero debería. quizás los errores en la entrada?
Navigation
[0] Message Index
Go to full version