Add Lines in the System Menu {SYS_MENU} Add Lines in the System Menu {SYS_MENU}
 

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

Add Lines in the System Menu {SYS_MENU}

Started by scifirocket21, July 27, 2006, 06:21:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

scifirocket21

I've searched the forums, and I have found various post that deal with editing the system menu.  My question is a little more specific than the other post are. 

How do you separate each link in the system menu so that each link appears on one line.  At the moment, the links are all jumbled up into a paragraph-like manner, making it hard to read.  I would like to put each link on its own line.  You can see what I'm talking about by visiting my gallery at http://www.mydpnet.com/photos/index.php.  Look under the options menu.  You will notice that "Home" and My gallery" and "FAQ" and the log-in/log-out links are paired together on one line.

I'm fairly sure that you edit this in the CSS file, but I'm not sure what to do.  I've tried editing it in the template.html file by putting the {SYS MENU} in a table and then decreased the width of the table as much as possible.  This resulted in what I have now. 

I hope my question makes sense.  Any ideas?

Joachim Müller

There are several methods how themes create the menu (no matter which type). Some use the addbutton method. Others just define the var. Some have a menu item spacer. Depending on the method used in the theme you're using, the instructions would differ. Please attach a copy of your custom theme's theme.php to your posting (either zip it or rename it to theme.php.txt before you click on "additional options" and attach it to your posting).

scifirocket21


Joachim Müller

Well, the theme you have based your custom theme on (fotogallery) already comes with a vertical menu. Can't look at your page, as it requires a username and password to take a look (you should provide a non-admin test user account when posting links to galleries that need the user to login). However, you could edit your theme.php, find$template_sys_menu_spacer='';and replace with$template_sys_menu_spacer='<br />';. If this is not what you're after, you should do as suggested and post a test user account.

Joachim Müller

Didn't ask to be PMed a test user account. You were suppossed to post one, as others might want to look into your issue as well. If you don't want to do this, then you'll have to ask if you're allowed to PM it in the first place. I'm out of this thread.

scifirocket21

Sorry.  I just didn't feel comfortable posting a user name and password from everyone to use.  There is a possibility that someone could abuse that account, and I'm not willing to take risk for the sake of my members.  You seemed like you knew how to fix the problem, so I sent you one private message with the information inside.  I wasn't doing to spam your "Private Message" inbox.  I'm very sorry if I have offended you in any way.

Can anyone else help me?

Sami

okey I'll help you , next time please respact the rules (see the gaugau signiture)
- you need to palce "{SYS_MENU}" under a div tag with topmenu style (under template.html), something like this:
<div class="topmenu">{SYS_MENU}</div>
‍I don't answer to PM with support question
Please post your issue to related board

scifirocket21

This wasn't exactly what I was going for, but I ended up liking this idea better than what I had intended.  Thanks!

adnoctum

This topic seems to be what I am looking for, but I have one problem with it....

I have added this line into the "theme.php" from above post:
$template_sys_menu_spacer='<br /><hr width="100%" size="1" color="#FFFFFF">';

I get Login & Albumlist just separated with <br /> I think...
No <hr> line between them anyway....

I am using Swedish language for this gallery....

Gizmo

Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

adnoctum

My menu is starting to look great now, thanks !

But there are two more things that I want to change...

I have the menu links on the left side now under each other, separated with a <hr> line.

But the user b uttons (change order, change profile etc) and the admin links are still at the top.
Is it possible to get all links in the left table column as the sys_menu ?

Gizmo

Please start a new topic since this is not the same as the original intent. When you do, post a link to your gallery and/or attach your zipped theme. It's hard to tell what you're talking about without some kind of visual.

Locking topic.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision