coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: taf on July 20, 2008, 11:22:00 PM

Title: changing the design of menus
Post by: taf on July 20, 2008, 11:22:00 PM
hello,
on the sub menus u have option like top rated and so on..
i tried to edit the design of the  top rated menu on the front page of the classic page.
unfortantly, i dont understood where to look for to edit this,
i want to some extra text there.
in which file i can fined it?
thanks u,
tamir
Title: Re: changing the design of menus
Post by: phill104 on July 20, 2008, 11:51:10 PM
Have you tried reading the FAQ's in this section? Between them they explain a lot of what you need to know and there are more tips than I could write here.

All the details, css, images etc are in the themes folder and each theme has it's own sub-folder inside there with all the files for each theme. So classic would be themes/classic etc.
Title: Re: changing the design of menus
Post by: taf on July 21, 2008, 10:54:47 AM
Quote from: phill104 on July 20, 2008, 11:51:10 PM
Have you tried reading the FAQ's in this section? Between them they explain a lot of what you need to know and there are more tips than I could write here.

All the details, css, images etc are in the themes folder and each theme has it's own sub-folder inside there with all the files for each theme. So classic would be themes/classic etc.
hello,
seems to be that u dont understood me.
the menu "toprated" is a global menu and the design of it is global,
if i want to add a hr in the table of the top rated only,
how i do it?
and if there is aFAQ about it can u give me the line\the question?
thanks u
Title: Re: changing the design of menus
Post by: Luk on July 21, 2008, 09:54:05 PM
Go to /include/themes.inc.php       open this file copy everything and paste it to theme.php located in your skin folder. Than search for :

// HTML template for template sub_menu buttons

and these are buttons:

addbutton($sub_menu_buttons,'{CUSTOM_LNK_LNK}','{CUSTOM_LNK_TITLE}','{CUSTOM_LNK_TGT}','custom_link',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{ALB_LIST_LNK}','{ALB_LIST_TITLE}','{ALB_LIST_TGT}','album_list',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{LASTUP_LNK}','{LASTUP_TITLE}','{LASTUP_TGT}','lastup',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{LASTCOM_LNK}','{LASTCOM_TITLE}','{LASTCOM_TGT}','lastcom',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{TOPN_LNK}','{TOPN_TITLE}','{TOPN_TGT}','topn',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{TOPRATED_LNK}','{TOPRATED_TITLE}','{TOPRATED_TGT}','toprated',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{FAV_LNK}','{FAV_TITLE}','{FAV_TGT}','favpics',$template_sub_menu_spacer);
    addbutton($sub_menu_buttons,'{SEARCH_LNK}','{SEARCH_TITLE}','{SEARCH_TGT}','search','');

If you want to change them, for example add icon and so on modify {...._LNK} you can replace it with almost aything you want.



Title: Re: changing the design of menus
Post by: Joachim Müller on July 21, 2008, 10:01:39 PM
Quote from: Luk on July 21, 2008, 09:54:05 PM
Go to /include/themes.inc.php       open this file copy everything and paste it to theme.php located in your skin folder.

@taf: that is wrong. Don't do that. Only copy the relevant function or variable definitions. Do not copy the entire content of include/themes.inc.php
The template to copy from is themes/sample/theme.php anyway. It depends on the theme you use wether you should copy the section you refered to or another.

@Luk: don't get discouraged by the correction. I understand that you're trying to help and I welcome your readiness to do that. It's just that your advice is wrong this time. Please don't let this get you down - we'd appreciate you helping out on this board.
Title: Re: changing the design of menus
Post by: Luk on July 21, 2008, 10:08:45 PM
Ah dont worry i just builded my theme from zero so i wanted to have all these functions there :P My mistake thx