coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: nielsenr on September 16, 2005, 10:46:50 PM

Title: Change top text-menu
Post by: nielsenr on September 16, 2005, 10:46:50 PM
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.
Title: Re: Change top text-menu
Post by: artistsinhawaii on September 17, 2005, 12:22:14 AM
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
Title: Re: Change top text-menu
Post by: Casper on September 17, 2005, 09:16:21 PM
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.