Is there a way to hide SYS_MENU? Is there a way to hide 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

Is there a way to hide SYS_MENU?

Started by Attila, July 17, 2011, 04:33:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Attila

Hi, is there a way to completely hide SYS_MENU, but have the login/logout features still work? I would like to get rid of "Home", "My Profile", "Login" links.

I tried two things

1. removing the {SYS_MENU} line from template.html; login.php works, but calling logout.php gives an error:

-> A valid form token could not be found.
-> "File: /home/attila/public_html/imagelib/logout.php - Line: 31

2. left {SYS_MENU} in template.html, and edited theme.php to individually comment out the "addbutton" function calls. However I did not succeed that way either. I am able to hide the "Home" button, but for example I get errors when doin the same for the "My Profile" link.

Any ideas? Much appreciate the help.

Thanks!
Attila / http://www.kibo-studio.com/imagelib/


lurkalot

Running SMF 2.1.4  / Tinyportal 3.0.1, bridged with Coppermine 1.6.25, plus cpmfetch 2.0.0

ΑndrĂ©

Regarding your logout issue. If you don't want to display a logout button you either have to remove the token check for the logout procedure or delete the appropriate browser cookies when you want to logout from the gallery.

Attila


I went with installing the "final extract" plugin. It works as advertised! I only had one glitch, it seems that if there is a space in the user group name then it can not save the settings. I removed the space from the group and works perfectly.

Thank you both for the quick response!

Attila
http://www.kibo-studio.com/imagelib/