forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: kigulu on September 15, 2005, 12:19:29 pm

Title: Remove my favorits, search and toprated
Post by: kigulu 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 ?
Title: Re: Remove my favorits, search and toprated
Post by: Nibbler 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 -->)
Title: Re: Remove my favorits, search and toprated
Post by: Casper 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  <!-- -->.
Title: Re: Remove my favorits, search and toprated
Post by: kigulu 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> -->
Title: Re: Remove my favorits, search and toprated
Post by: Nibbler on September 15, 2005, 02:02:39 pm
Please post a link to your gallery.
Title: Re: Remove my favorits, search and toprated
Post by: kigulu on September 15, 2005, 02:50:50 pm
www.naturphoto.dk.

My index coppermine page (http://naturphoto.dk/cpg134/index.php?cat=0)
Title: Re: Remove my favorits, search and toprated
Post by: Casper 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;
Title: Re: Remove my favorits, search and toprated
Post by: kigulu 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
Title: Re: Remove my favorits, search and toprated
Post by: Casper 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.
Title: Re: Remove my favorits, search and toprated
Post by: kigulu 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
Title: Re: Remove my favorits, search and toprated
Post by: Azrayen 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
Title: Re: Remove my favorits, search and toprated
Post by: kigulu on September 16, 2005, 08:44:02 am
thanks - i will woek a bit more with it.