changing the design of menus changing the design of menus
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

changing the design of menus

Started by taf, July 20, 2008, 11:22:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

taf

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

taf

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

Luk

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.




Joachim Müller

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.

Luk

Ah dont worry i just builded my theme from zero so i wanted to have all these functions there :P My mistake thx