[Solved]: Is it safe to remove these menu links? [Solved]: Is it safe to remove these menu links?
 

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

[Solved]: Is it safe to remove these menu links?

Started by ShiversOfHorror, April 12, 2008, 02:38:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ShiversOfHorror

This question follows my other question regarding permissions here: http://forum.coppermine-gallery.net/index.php/topic,51815.0.html

Since I don't want people to register, is there a need for 'Login' to be up there, other then for me, the admin to login? I don't want people wondering why 'Login' is up there if they can't login. Maybe there is a way to hide it?

Is it okay to remove 'Last Comments' & 'Top Rated' from the top menu? Leaving only Home, Album List, Last Uploads, Most Viewed and Search, in the menu? With 'HOME' leading to my actual website, not the index page of the gallery?

François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

steveeh131047

The way I tackled this was to produce a default custom theme (with all the unwanted options missing) for general visitors to see. I then also have the Classic theme available which I invoke (..../index.php?theme=classic) when I want the Admin login options.

François Keller

#3
otherwise, if you have desable the login menu item you can go to the login page with the adress http://www.your_site.com/login.php
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Nexus

Afternoon all,

Brace yourself - newbie question coming.  :-\

I've looked at this thread, and at the Final Extract thread, and although, I know the basics, I was hoping someone could give me an answer to a problem I have.

Basically, I wish to add a button to my menu (a link back to my homepage) Could someone tell me which file I need to open and change to achieve this?

Thanks in advance for any help any of you can give.


François Keller

nothing to do with the final extract plugin and with this thread.
Search the doc for Custom menu link.
Next time open a new thread with your question but before, read the doc an search the board...
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Nexus

Many thanks.

I ask here, because I thought it was relevant to the thread. Didn't want to clutter up the board with another needless topic.

Thanks again.

ShiversOfHorror

Quote from: François Keller on April 12, 2008, 08:38:38 AM
have a look to the Final extract plugin to do what you want.


That worked great. Thank you.

But now I notice that 'HOME' is all by itself on the top line with the other links on the bottom and next to home is the "::" spacer. Looks pretty bad for normal users. I assume that fixing this would be in theme.php and I think I've located the area...but I don't want to touch it because I've installed that plugin and I don't want to go messing things up. I'm thinking of just hiding the Home link as well.

Does anybody have other suggestions? Perhaps I should not use the plugin and instead remove the links through the theme.php code?

François Keller

change the spacer definition in theme.php , by adding or mofifying this code
// HTML template for template sys_menu spacer
  $template_sys_menu_spacer ="::";

or delete the {SPACER} token in this code (if the code doesen't exist in your theme.php file, copy/paste it from the sample/theme.php file)
// HTML template for template sys_menu buttons
  $template_sys_menu_button = <<<EOT
  <!-- BEGIN {BLOCK_ID} -->
        <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a> {SPACER}
  <!-- END {BLOCK_ID} -->
EOT;
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

ShiversOfHorror

Sorry I said that wrong I think. I like the spacer, and I like having it there, I just didn't like the home link on top of all the other links because it looked bad. Its okay though, I just removed the home link.