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: Remove my favorits, search and toprated  (Read 5211 times)

0 Members and 1 Guest are viewing this topic.

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Remove my favorits, search and toprated
« on: September 15, 2005, 12:19:29 pm »

I have seaches this forum, and found some results - bur none i could use.

How do i remove last commented, my favorits, search, toprated  and most wieved from the top bar and Which file do i open to do this ?
Logged

Nibbler

  • Guest
Re: Remove my favorits, search and toprated
« Reply #1 on: September 15, 2005, 12:27:38 pm »

You can comment the links out in your theme's theme.php file using HTML comments (<!-- like this -->)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Remove my favorits, search and toprated
« Reply #2 on: September 15, 2005, 12:28:53 pm »

themes/your-theme/theme.php.

In the menu templates search for this code (which may have button code around them)

Code: [Select]
<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>

Comment them  out using  <!-- -->.
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

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Remove my favorits, search and toprated
« Reply #3 on: September 15, 2005, 01:42:17 pm »

It wont work - what do i do wrong ?
Under this:
$template_main_menu2 = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
I find this:                                       
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
                                        </td>

And do this (wrong)
<!-- <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a> -->
Logged

Nibbler

  • Guest
Re: Remove my favorits, search and toprated
« Reply #4 on: September 15, 2005, 02:02:39 pm »

Please post a link to your gallery.
Logged

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Remove my favorits, search and toprated
« Reply #6 on: September 15, 2005, 05:23:26 pm »

OK,

you are using the igames theme, so you need to edit your themes/igames/theme.php.

To remove the buttons you don't want, find the main_menu2 template, as here;

Code: [Select]
$template_main_menu2 = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{FAV_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;


And replace it with this;

Code: [Select]
$template_main_menu2 = <<<EOT
                        <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                        <td class="top_menu_left_bttn">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="javascript:;" onMouseOver="MM_showHideLayers('Menu1','','show')">@</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
                                        </td>
                                     <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                         <!--  <td class="top_menu_bttn">
                                                <a href="{LASTCOM_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPN_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{TOPRATED_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_bttn">
                                                <a href="{FAV_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{FAV_LNK}</a>
                                        </td> -->
                                        <td><img name="menu_spacer" src="themes/igames/images/menu_spacer.gif" width="2" height="35" border="0" id="menu_spcer" alt="" /><br /></td>
                                        <td class="top_menu_right_bttn">
                                                <a href="{SEARCH_TGT}" onMouseOver="MM_showHideLayers('Menu1','','hide')">{SEARCH_LNK}</a>
                                        </td>
                                </tr>
                        </table>
EOT;
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

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Remove my favorits, search and toprated
« Reply #7 on: September 15, 2005, 10:46:54 pm »

i cant see any diference between #1 and 2. Anyway did as told, but i wouldent work for me.
Then i tried theme eyball, and did as you first sugested - it worked well.

Thanks for your help
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Remove my favorits, search and toprated
« Reply #8 on: September 16, 2005, 01:02:50 am »

Funny that, because when I first visited, your site was using the igames theme, and that is why I did the changes to that theme. 
Now you have eyeball.

And there is a difference in the codes above, namely a set of <!-- at the start of the comment out and a --> at the end.

Well, I'm glad you got it sorted.
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

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Remove my favorits, search and toprated
« Reply #9 on: September 16, 2005, 01:08:57 am »

thank you for the support

Are there a way i can remove/ disable/ delate the thing  i dont want in "my" skin no matter what i choose ?

i have tryed to reactivate a button bur cant get it right - any know haw about htat ? (delete cookies or sometheiong like change the them  and change it back again )l
Logged

Azrayen

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • azrayen.net
Re: Remove my favorits, search and toprated
« Reply #10 on: September 16, 2005, 02:00:33 am »

The solution depends on what you want to remove.
Can be in the settings, or to be done manually in the code...
What do you want to remove, actually ?

I f the button you tried to reactivate was one of those you commented out, juste remove / move the comment sign beginning with "<!--" endind with "-->" just like this : <!-- this code is not interpreted --> in the html files (template).
For example if you have this code
<!-- code_of_button_1
code_of_button_2
code_of_button_3 -->
and you want to reactivate button 1 then just change your code to this :
code_of_button_1
<!-- code_of_button_2
code_of_button_3 -->

If you want to comment out a part of a php file (but that's more complicated, be sure of what you do !) just add "//" at the beginning of the line.

Azy
Logged

kigulu

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Remove my favorits, search and toprated
« Reply #11 on: September 16, 2005, 08:44:02 am »

thanks - i will woek a bit more with it.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.