link to my homepage link to my homepage
 

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

link to my homepage

Started by guabi, February 27, 2004, 05:55:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

guabi

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

Casper

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

guabi

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.

Casper

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

guabi

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

Casper

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