Forum Freeglobes

Aide et support, annonces, thèmes et plugins, discussions.

Vous n'êtes pas identifié.

Annonce

Plugin Allopass amélioré: possibilité de générer des codes gratuits pour votre annuaire! Allez voir sur le site :-)

#1 13-08-2009 03:57:26

nurullah
N00b
Date d'inscription: 13-08-2009
Messages: 1

I want to list only permanent category

Hi,

In "submit link" page category part is too long. Some categories have 3-4 main categories. So, they are very long.
How can i publish categories like that?
Main Category
- Sub Category
-- Sub sub category
- Second Sub category
...


I found them in include/common.php like that :
But, i can't change how i want. How can i do that?

Code:

function show_me_the_way($id)
{
    global $lang;
    $cm =& get_manager("category");
    $title_chemin = '';

    while ($id != 0)
    {
        $criteria = new Criteria("id",$id,'=');
        $criteria->setLimit(1);
        $cols = array('name','root');
        $category =& $cm->get($id,$cols);
        $id = $category->getVar('root');
        $title_chemin = ' > '.$category->getVar('name').$title_chemin;
    }
    $title_chemin = $lang['home'].$title_chemin;
    
    return $title_chemin;
}

Hors ligne

 

Pied de page des forums

Propulsé par PunBB
© Copyright 2002–2005 Rickard Andersson
Traduction par punbb.fr


BlogCounter
FosseeneProduct - annuaire mon pagerank - films x achats en lignes sexe gratuit blog buzz