Advanced search  

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

Pages: [1]   Go Down

Author Topic: Removing links from the main menu  (Read 6661 times)

0 Members and 1 Guest are viewing this topic.

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Removing links from the main menu
« on: January 28, 2005, 11:49:20 am »

Hi all,

I'm running Coppermine 1.2.1 and would like to remove a few of the links off the main user menu (ie Comments, Top Rated, etc).

I tried just removing the HTML links in the theme.php file but I got an error message (something to do with an function or module not existing in index.php) as soon as I saved it.

Can someone help me please? Sorry if the message is a bit vague but I'm can't reproduce the error during work time  ;)

Thanks in advance

John
« Last Edit: January 31, 2005, 11:42:18 pm by kegobeer »
Logged

Nibbler

  • Guest
Re: Removing links from the main menu
« Reply #1 on: January 28, 2005, 02:30:42 pm »

Comment out the html links, making sure you leave the existing comments in place.
Logged

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing links from the main menu
« Reply #2 on: January 28, 2005, 10:53:02 pm »

I tried that but i get the following error message

Fatal error: Call to undefined function: theme_display_album_list_cat() in /home/virtual/site35/fst/var/www/html/gallery/index.php on line 493

I commented out the following in theme.php

                        // <br />

                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::

                        //<a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> ::

                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::

                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::

                        //<a href="{FAV_TGT}">{FAV_LNK}</a> ::

                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>

Any ideas why I'm getting this error? I'd really like to remove the items commented out.

Thanks again

John
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Removing links from the main menu
« Reply #3 on: January 29, 2005, 02:19:20 am »

Wrong type of commenting.  Everything within <<EOT and EOT; is treated as HTML and not PHP.  You would use <!-- and --> to comment out those lines.

<!-- I don't want this to show up -->
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing links from the main menu
« Reply #4 on: January 30, 2005, 05:47:07 pm »

Same error, I'm afraid  :(

Any ideas?

Thanks

John
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Removing links from the main menu
« Reply #5 on: January 30, 2005, 05:54:26 pm »

Did you remove the function theme_display_album_list_cat from your theme's theme.php file?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing links from the main menu
« Reply #6 on: January 30, 2005, 11:04:41 pm »

Nope, it's there...

This isn't a show stopper but I would like it to work :-)
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Removing links from the main menu
« Reply #7 on: January 30, 2005, 11:45:35 pm »

Post a link to your site so we can see this, and post your modified theme.php file (you'll have to attach it as a text file).  There is definitely a problem with your theme file if the function isn't being found.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing links from the main menu
« Reply #8 on: January 31, 2005, 09:51:23 am »

Hi again

The website is http://www.coastercentral.com/gallery

It's working at the moment because i'm using the default theme.php file.

I've attached the modded theme.php file as requested

Thanks

John
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Removing links from the main menu
« Reply #9 on: January 31, 2005, 12:36:47 pm »

If all you did was comment out those lines, try replacing
Code: [Select]
                        <!-- <br /> -->
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <!-- <a href="{LASTCOM_TGT}">{LASTCOM_LNK}</a> :: -->
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <!-- <a href="{FAV_TGT}">{FAV_LNK}</a> :: -->
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>
with
Code: [Select]
                        <a href="{LASTUP_TGT}">{LASTUP_LNK}</a> ::
                        <a href="{TOPN_TGT}">{TOPN_LNK}</a> ::
                        <a href="{TOPRATED_TGT}">{TOPRATED_LNK}</a> ::
                        <a href="{SEARCH_TGT}">{SEARCH_LNK}</a>

There also appears to be a blank line after the closing ?>.  Delete that line.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

FatManc

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Removing links from the main menu
« Reply #10 on: January 31, 2005, 09:08:15 pm »

Hi again

I did what you said and it all works fine now! I'm not sure why what you told me to do made it work but thanks very much for your help and perseverance!

Best wishes

John
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 18 queries.