Integration with my home page Integration with my home page
 

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]

Main Menu

Integration with my home page

Started by judyksp, October 14, 2005, 03:41:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

judyksp

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

Nibbler

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

xplicit

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:

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

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

$param = array('{ALB_LIST_TGT}' => "index.php$cat_l",

add somewhere in this array depending on the path of your index.html:

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

$lang_main_menu = array(

add

''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 ;) )
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

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