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: Integration with my home page  (Read 3056 times)

0 Members and 1 Guest are viewing this topic.

judyksp

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Integration with my home page
« on: October 14, 2005, 03:41:09 pm »

I am new to Coppermine.  I have installed it using Fantastico.  My version is 1.3.4 right now.

I would like to know how I can add a button for users to click when they visit my Photo Gallery page to return back to my home page (www.vikingbar.net) instead of using the BACK function from standard IE.   If they have gone quite deep into the pictures album, or moved around alot to view the different pictures,  my users will have to retype www.vikingbar.net to go back to my site.   I would like to eliminate this for them by adding a button in Coppermine itself that can say 'return' or 'home'.

Can some help me in this?   

Thanks and regards

Judy Khoo
Viking Bar
Logged

Nibbler

  • Guest
Re: Integration with my home page
« Reply #1 on: October 14, 2005, 03:52:08 pm »

There are plenty of posts that explain how to add a new button to your theme, please search the board.
Logged

xplicit

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 214
Re: Integration with my home page
« Reply #2 on: October 14, 2005, 09:00:54 pm »

Ok I'm writing this without testing it but I think this will work.

I saw youre using the waterdrops theme so open your theme.php search:

Code: [Select]
<!-- BEGIN album_list -->
                        <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                        <img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />
<!-- END album_list -->


Add before this

Code: [Select]
<!-- BEGIN viking_home -->
                        <a href="{VIKING_HOME_TGT}" title="{VIKING_HOME_TITLE}">{VIKING_HOME_LNK}</a>
                        <img src="themes/water_drop/images/orange_carret.gif" width="8" height="8" border="0" alt="" />
<!-- END viking_home -->

Search:

Code: [Select]
$param = array('{ALB_LIST_TGT}' => "index.php$cat_l",
add somewhere in this array depending on the path of your index.html:

Code: [Select]
'{VIKING_HOME_TGT}' => "../index.html",
        '{VIKING_HOME_TITLE}' => $lang_main_menu['viking_home_title'],
        '{VIKING_HOME_LNK}' => $lang_main_menu['viking_home_lnk'],

Search in your language file for

Code: [Select]
$lang_main_menu = array(
add

Code: [Select]
''viking_home_title' => 'Go back to the main homepage',
  'viking_home_lnk'=> 'HOME',

only thing I'm not sure of is the location of the ../index.html but just play a little with those settings

Good Luck (Did I earn a free beer now ;) )
Logged
Don't ask me: Can you do this .... or Give me that...or I need Quick help in PM's. I'm not Santaclaus so post your questions on the board so it will be in the benefit for everyone.

judyksp

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Integration with my home page
« Reply #3 on: October 16, 2005, 03:22:33 pm »

Thanks for the assistance.  I need to spend some time at the internet cafe and try this out.  And yes,  if you do come to my pub,  you will be entitled for a free drink - whether the solution works or not.

Cheers

Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.