coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Crazymodder on December 10, 2007, 04:12:41 PM

Title: 2 Domains
Post by: Crazymodder on December 10, 2007, 04:12:41 PM
Hello I have 2 Domains for my Gallery. The first is .de and the other is .com Domain. My question is how is it possible that the title of my Gallery change.
If a user use the .de Domain the Title should be "Welcom at .de" and at .com it should be "Welcome at .com. I know that it is possible to read the domain with $_SERVER[HTTP_HOST] but I cant change the title in the database. I hope you can help me to build something that works.

Title: Re: 2 Domains
Post by: Nibbler on December 10, 2007, 07:14:25 PM
include/init.inc.php


// Reference 'site_url' to 'ecards_more_pic_target'
$CONFIG['site_url'] =& $CONFIG['ecards_more_pic_target'];

$CONFIG['gallery_description'] = sprintf($CONFIG['gallery_description'], $_SERVER['HTTP_HOST']);


Then set your gallery description to

Welcome to %s
Title: Re: 2 Domains
Post by: Crazymodder on December 10, 2007, 09:08:55 PM
THx that works very nice:)
What I have to change so that I can use that at the Gallery-Name? Thanks:) I can't find something like gallery_name

Thx for your Help
Best Regards
Crazymodder
Title: Re: 2 Domains
Post by: Nibbler on December 10, 2007, 09:30:30 PM
It is gallery_name.
Title: Re: 2 Domains
Post by: Crazymodder on December 11, 2007, 05:24:08 PM
Thx now works everything fine :)