coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: guabi on February 27, 2004, 05:55:01 PM

Title: link to my homepage
Post by: guabi on February 27, 2004, 05:55:01 PM
Hello Coppermine suppport team,
I have two questions:
1) How can i change the link on the menu bar  to my personal homepage?
2) Can i delete the "last upload" "last comments" " search" from the menu bar?

Many thanks!
Guabi
Title: link to my homepage
Post by: Casper on February 27, 2004, 07:19:52 PM
You can add or remove links by editing the themes/your_theme/theme.php.
 note, default theme code shown here.
Just comment out any links you don't want with '//' at the start of the line, like this;

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


Here, the last additions and top rated links have been removed.

You can remove the coppermine logo and link in themes/your_theme/template.html, by removing this code;

<a href="index.php"><img src="themes/default/images/site_logo.png" alt="" border="0" /><br /></a>

and replacing it with your own logo/link.
Title: link to my homepage
Post by: guabi on February 27, 2004, 09:37:18 PM
both solutions seems does not work. Both has error messages.
I am not using deaulf theme, i am using Mac_ox theme. please help me to find out the solution.
thank you.
Title: link to my homepage
Post by: Casper on February 27, 2004, 10:12:23 PM
to remove the links in macOX, open theme.php, and look for;
<td><img src="themes/mac_ox_x/images/menu_button_bg_right.gif" border="0" alt="" /><br /></td>
                                        <td><img src="themes/mac_ox_x/images/menu_button_bg_left.gif" border="0" alt="" /><br /></td>
                                        <td background="themes/mac_ox_x/images/menu_button_bg_middle.gif" valign="top">
                                                <a href="{LASTUP_TGT}">{LASTUP_LNK}</a>
                                        </td>


That is just for the last additions button.  Delete it, or comment it all out with <!--   -->.  

the search and last comments links have similar code, do the same for them.

To create a link to your home page, find this code;
<!-- BEGIN my_gallery -->
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
<!-- END my_gallery -->


and paste before it;
<!-- Link to homepage -->
                                                <a href="http://yoursite.com">Your_Site</a> |
<!-- end my homepage link -->
Title: link to my homepage
Post by: guabi on February 27, 2004, 11:02:53 PM
Yes, this time it works . But , on the menu bar, there is an icon of House, when you click it, it goes to the Photo Gallery index.php page. How can i change this link to my homepage then? (When i clik the house icon, it links me to my homepage)

Thanks
Title: link to my homepage
Post by: Casper on February 27, 2004, 11:18:17 PM
Find this;
<a href="index.php"><img src="themes/mac_ox_x/images/home.gif" border="0" alt="" /><br /></a>

and change it to this;
<a href="http://www.yoursite.com"><img src="themes/mac_ox_x/images/home.gif" border="0" alt="" /><br /></a>