Primeramente el ejemplo,
http://xwall.metropoliglobal.com/galerias/index.php--------------------------------------------------------------------------------------------------
En
../includes/functions.php( El original ) if ($depth > 1) {
$category_list .= ">".str_repeat("--", $depth - 1)." ".$cat_cache[$category_id]['cat_name']."</option>\n";
}
else {
$category_list .= ">".$cat_cache[$category_id]['cat_name']."</option>\n";
}
$category_list .= get_category_dropdown_bits($cat_id, $category_id, $depth + 1);
}
}
( La modificación ) if ($depth > 1) {
$category_list .= "</option>\n" ;
$category_list .= " ".str_repeat("- ", $depth - 1)."".$cat_cache[$category_id]['cat_name'].", (".$cat_cache[$category_id]['num_images'].") </option>\n";
}
else {
$category_list .= "</option>\n" ;
$category_list .="» ".$cat_cache[$category_id]['cat_name']."</option>\n";
}
$category_list .= get_category_dropdown_bits($cat_id, $category_id, $depth + 1);
}
}
----------------------------------------------------------
Si quieres quitar lo de (Seleccionar categoría).
----------------------------------------------------------
En
../includes/functions.php ( El original ) case 0:
default:
if ($jump) {
$category = "\n<select name=\"".URL_CAT_ID."\" onchange=\"if (this.options[this.selectedIndex].value != 0){ forms['jumpbox'].submit() }\" class=\"categoryselect\">\n";
}
else {
$category = "\n<select name=\"".URL_CAT_ID."\" class=\"categoryselect\">\n";
}
$category .= "<option value=\"0\">".$lang['select_category']."</option>\n";
$category .= "<option value=\"0\">-------------------------------</option>\n";
} // end switch
( La modificación ) case 0:
default:
if ($jump) {
$category = "\n<select name=\"".URL_CAT_ID."\" onchange=\"if (this.options[this.selectedIndex].value != 0){ forms['jumpbox'].submit() }\" class=\"categoryselect\">\n";
}
else {
$category = "\n<select name=\"".URL_CAT_ID."\" class=\"categoryselect\">\n";
}
$category = "\n<select name=\"cat_id\" class=\"categoryselect\">\n";
} // end switch
Con esto ya esta...--------------------------------------------------------------------------------------
Lo que queda es el Style. He puesto este, ya que para gustos los colores...
.categoryselect {
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
color: #000000;
font-size: 11px;
background-color : #999999;
}
.dropdownmarker {
font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
background-color: #515151;
color: #CCCCCC;
font-size: 12px;
}
Recordad que teneis que hacer copias de seguridad de los archivos antes de tocar nada.Seguro que hay formas mucho mejor de modificar esto, si alguien hace algo mejor que lo ponga...