forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: fabo92 on June 14, 2010, 03:28:04 pm

Title: Edit SYS_MENU, SUB_MENU etc content
Post by: fabo92 on June 14, 2010, 03:28:04 pm
Hello all,

I'm trying to change completely the visual of coppermine because I would like to integrate it with my forum (MyBB) graphic..

So I edit the theme files, template.html and style.css (the theme.php I don't understand the use).

But now I want to edit the {SYS_MENU} and {SUB_MENU} content and I can't find them!!

Can you help me?!
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: Joe Carver on June 14, 2010, 03:40:21 pm
First you must help yourself and "help the helpers".

Post a link to your Coppermine, that is a requirement of all support requests.

Read your documents about theming. You will find a lot of good information to start your task.
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: fabo92 on June 14, 2010, 03:44:40 pm
Ok, thanks. I see that in this site all the staff is really strict.. But I like, I'm not criticising you... So, I'll read the documentation.
This is the link to the gallery: http://www.netmodding.org/forum/gallery/
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: Joe Carver on June 14, 2010, 04:25:29 pm
Ok, thanks. I see that in this site all the staff is really strict.

Just for the record and not for the sake of argument....posting the link helps the helpers to see what you are doing and might be doing wrongly. It saves time and also helps other people like yourself when they read the postings in the future. It is a very simple rule to follow.

You are using a modified version of the Waterdrop theme, but your style.css is coming from the Sample theme.

You need to make a new name for your theme's directory and place all of the files and folders in that directory. Then open up the file /themes/sample/theme.php. At the beginning of the file you will see the sections that refer to menus and buttons. Copy each section as you need into your file /themes/new_directory/theme.php. Then make your modifications. Example:

Code: [Select]
/******************************************************************************
** Section <<<$template_sub_menu>>> - START
******************************************************************************/
code
code
code
/******************************************************************************
** Section <<<$template_sub_menu>>> - END
******************************************************************************/

Remember to copy the complete section into your custom theme.php
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: Joachim Müller on June 15, 2010, 07:46:05 am
...as suggested in http://documentation.coppermine-gallery.net/en/theme_create.htm#theme_create_rename
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: fabo92 on June 15, 2010, 11:01:54 am
Thanks guys, I find out how to do.
I have only two question:

 -How to retrieve the username (is there a string like {LOGOUT_LNK} or something)?
 -How to retrieve the date and time and display it?

Thanks for the help
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: Joachim Müller on June 15, 2010, 12:32:30 pm
Thanks guys, I find out how to do.
Then please resolve your thread (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631).

I have only two question:
It's a pity though that we have this strict "one issue per thread" policy (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270618.html#msg270618) that you agreed to respect when signing up.
Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: fabo92 on June 15, 2010, 03:38:55 pm
Solving:

I followed this page (http://documentation.coppermine-gallery.net/en/theme_theme_php.htm#theme_create_theme_php) to understand the way to modify the sys_menu and sub_menu.
I created a new theme from the sample one (I copied it), I opened the theme.php and deleted all. Then I copied from the sample theme.php only what I needed to edit.
The result can be seen at the top of this page.

I post either the theme.php, in case I'll modify that page.

Title: Re: Edit SYS_MENU, SUB_MENU etc content
Post by: fabo92 on June 15, 2010, 03:41:15 pm
This is the page: http://www.netmodding.org/forum/gallery/