Remove my favorits, search and toprated Remove my favorits, search and toprated
 

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

Main Menu

Remove my favorits, search and toprated

Started by kigulu, September 15, 2005, 12:19:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kigulu

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 ?

Nibbler

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

Casper

themes/your-theme/theme.php.

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

<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  <!-- -->.
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

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> -->

Nibbler



Casper

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;

$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;

$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;
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

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

Casper

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.
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

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

Azrayen

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

kigulu