forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: judyksp on October 14, 2005, 03:41:09 pm

Title: Integration with my home page
Post by: judyksp 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
Title: Re: Integration with my home page
Post by: Nibbler 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.
Title: Re: Integration with my home page
Post by: xplicit 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 ;) )
Title: Re: Integration with my home page
Post by: judyksp 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