Advanced search  

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]

Pages: [1]   Go Down

Author Topic: changing the design of menus  (Read 3311 times)

0 Members and 1 Guest are viewing this topic.

taf

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
changing the design of menus
« 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
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: changing the design of menus
« Reply #1 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

taf

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: changing the design of menus
« Reply #2 on: July 21, 2008, 10:54:47 am »

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
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: changing the design of menus
« Reply #3 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.



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: changing the design of menus
« Reply #4 on: July 21, 2008, 10:01:39 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.
Logged

Luk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: changing the design of menus
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.