Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Change top text-menu  (Read 2637 times)

0 Members and 1 Guest are viewing this topic.

nielsenr

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Change top text-menu
« 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.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Change top text-menu
« Reply #1 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
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Change top text-menu
« Reply #2 on: September 17, 2005, 09:16:21 pm »

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

Code: [Select]
<!-- 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 15 queries.