Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: link to my homepage  (Read 4179 times)

0 Members and 1 Guest are viewing this topic.

guabi

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
link to my homepage
« 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
link to my homepage
« Reply #1 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;

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>


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;

Code: [Select]
<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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
link to my homepage
« Reply #2 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.
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
link to my homepage
« Reply #3 on: February 27, 2004, 10:12:23 pm »

to remove the links in macOX, open theme.php, and look for;
Code: [Select]
<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;
Code: [Select]
<!-- BEGIN my_gallery -->
                                                <a href="{MY_GAL_TGT}" title="{MY_GAL_TITLE}">{MY_GAL_LNK}</a> |
<!-- END my_gallery -->


and paste before it;
Code: [Select]
<!-- Link to homepage -->
                                                <a href="http://yoursite.com">Your_Site</a> |
<!-- end my homepage link -->
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
link to my homepage
« Reply #4 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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
link to my homepage
« Reply #5 on: February 27, 2004, 11:18:17 pm »

Find this;
Code: [Select]
<a href="index.php"><img src="themes/mac_ox_x/images/home.gif" border="0" alt="" /><br /></a>

and change it to this;
Code: [Select]
<a href="http://www.yoursite.com"><img src="themes/mac_ox_x/images/home.gif" border="0" alt="" /><br /></a>
Logged
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
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 18 queries.