Change top text-menu Change top text-menu
 

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]

Main Menu

Change top text-menu

Started by nielsenr, September 16, 2005, 10:46:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nielsenr

Hello.

First let me tell the developers of Coppermine that you are doing a great job!

I have one thing that I can't figure out where I change: In the text menu on the top of every page (the one with Album list ::  My profile ::  User mode  e.g.) I want to remove "Upload file" and "Login" as options (I don't let people upload images, and I am the only registered uder (admin) - and I now the URL to the login page). In which file do I change this? I've looked and looked but I can't find the file from which the text menu is included.

Thanks in advance!

Best regards, Rasmus Nielsen.

artistsinhawaii

Rasmus,

Open the theme.php file of the theme(s) you are using.  Search for "template_main_menu" .  Block out or remove any of the menu items you do not want to display under


// HTML template for main menu
$template_main_menu = <<<EOT

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Casper

Make sure you do not delete the comments that start and end each link, such as;

<!-- BEGIN upload_pic -->
<!-- END upload_pic -->


If you remove these you will have critical errors.

For you info the upload link only shows if the person viewing is allowed to upload anyway.  You would be better to prevent persons just typing in upload.php to browse to it, by setting the groups management to not allow uploads from all groups except admin.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here