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
-
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 ?
-
You can comment the links out in your theme's theme.php file using HTML comments (<!-- like this -->)
-
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 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> -->
-
Please post a link to your gallery.
-
www.naturphoto.dk.
My index coppermine page (http://naturphoto.dk/cpg134/index.php?cat=0)
-
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;
-
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
-
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.
-
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
-
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
-
thanks - i will woek a bit more with it.