Help - Search - Members - Calendar
Full Version: Showing parent categories in bold
CyberiaPC.com Community > Technical Zone > Zenith Picture Gallery > Feature Requests, Add-ons and Mods
kapangaluis
Hi again:

Excuseme for this new message blushing.gif , but I like the possibility of help you to that Zenith is perfected and growing.

It wanted ask you if in the drop-down listing of categories (in the gallery homepage) it would be possible to be caused that the Parent Categories are put in bold, since my listing is something large and but it confuses. This would help to that the users know well as is the Parent Category when uploading pics.


It will be possible to be made? What do you think?.


Greetings!

LUIS


PD: Please excuseme but my english is very bad ermm.gif ... I only speak frecuently the argentinean spanish... the language of the "gauchos" and the "Pampas". thumbsup.gif
usr.c
Hi LUIS,

Very sorry for the late reply. I think you're now officially the ZPG user who has had to wait longest for a reply. Congratulations! original.gif

Look in functions/f_cats.php for (in getCatsTreeView()):

CODE
else   $catsTreeView[$key_parent] = $cats[$key_parent];

and replace it with

CODE
else   $catsTreeView[$key_parent] = ".".$cats[$key_parent];

Then look for (in showJumpToCatForm())

CODE
else { echo "<option value='$key'>$value"; }
echo "</option>";

and replace it with

CODE
else {
            if($value[0] == ".") //if it's a parent category
                echo "<optgroup value='$key' label='".substr($value,1)."'>$value";
            else
                echo "<option value='$key'>$value";
        }

if($value[0] == ".")   echo "</optgroup>"; //if it's a parent category
else   echo "</option>";

Search for that again in functions/f_global.php (in showWelcomeBox()) and replace it with the same replacement code

Save and upload and that should do the trick.
kapangaluis
rofl.gif … oh my friend… I'm argentine... the governments live to us delaying, don't forget biggrin.gif .


As always, EXCELLENT WORK!

THANK YOU VERY MUCH!

LUIS
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.