coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Justttt on June 22, 2006, 02:23:04 PM

Title: links not showing
Post by: Justttt on June 22, 2006, 02:23:04 PM
hi , i have edited stramms oranje them  i have moved the {SYS_MENU}, {SUB_MENU} etc... to the opisit side of the page but when i uploaded the template instead of showing my album, last comments etc, it just shows {SYS_MENU},{SUB_MENU} . whathave i done wrong ? .

thanks,
Justttt
Title: Re: links not showing
Post by: Sami on June 22, 2006, 02:35:01 PM
You probably put them after {GALLERY} tag, if yes then you should change your theme.php too
Title: Re: links not showing
Post by: Paver on June 22, 2006, 03:31:20 PM
As bmossavari said, you need to modify themes/yourtheme/theme.php to process the tags.  By default, {SYS_MENU} and {SUB_MENU} are only processed by the function pageheader().  To move them to the bottom of the page, you need to add such processing to the function pagefooter().  There are some themes that do this as well, although I cannot think of one right now.

In any case, it's pretty easy to copy the code from the pageheader function into the pagefooter function to process those tags.
Title: Re: links not showing
Post by: Sami on June 22, 2006, 03:43:45 PM
and those code are:

'{SYS_MENU}' => theme_main_menu('sys_menu'),
        '{SUB_MENU}' => theme_main_menu('sub_menu'),
        '{ADMIN_MENU}' => theme_admin_mode_menu(),

you should add these to your "$template_vars" array under pagefooter function (if you don't have pagefooter() function copy it from sample theme.php)
I was going to post it but I was waiting for Justtt's answer ;)
Title: Re: links not showing
Post by: Justttt on June 22, 2006, 05:02:13 PM
ahh thanks guy's it was that problem but the opisit way round to begin with links where prossed to footer and i moved them to header .

thanks alot ;)