2 Domains 2 Domains
 

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

2 Domains

Started by Crazymodder, December 10, 2007, 04:12:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Crazymodder

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.


Nibbler

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

Crazymodder

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

Nibbler


Crazymodder

Thx now works everything fine :)