Edit SYS_MENU, SUB_MENU etc content Edit SYS_MENU, SUB_MENU etc content
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Edit SYS_MENU, SUB_MENU etc content

Started by fabo92, June 14, 2010, 03:28:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fabo92

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?!

Joe Carver

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.

fabo92

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/

Joe Carver

Quote from: fabo92 on June 14, 2010, 03:44:40 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:

/******************************************************************************
** Section <<<$template_sub_menu>>> - START
******************************************************************************/
code
code
code
/******************************************************************************
** Section <<<$template_sub_menu>>> - END
******************************************************************************/


Remember to copy the complete section into your custom theme.php

Joachim Müller


fabo92

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

Joachim Müller

Quote from: fabo92 on June 15, 2010, 11:01:54 AM
Thanks guys, I find out how to do.
Then please resolve your thread.

Quote from: fabo92 on June 15, 2010, 11:01:54 AMI have only two question:
It's a pity though that we have this strict "one issue per thread" policy that you agreed to respect when signing up.

fabo92

Solving:

I followed this page 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.