Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: 2 Domains  (Read 2973 times)

0 Members and 1 Guest are viewing this topic.

Crazymodder

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
2 Domains
« 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.

« Last Edit: December 10, 2007, 09:31:18 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: 2 Domains
« Reply #1 on: December 10, 2007, 07:14:25 pm »

include/init.inc.php

Code: [Select]
// 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

Code: [Select]
Welcome to %s
Logged

Crazymodder

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: 2 Domains
« Reply #2 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
Logged

Nibbler

  • Guest
Re: 2 Domains
« Reply #3 on: December 10, 2007, 09:30:30 pm »

It is gallery_name.
Logged

Crazymodder

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: 2 Domains
« Reply #4 on: December 11, 2007, 05:24:08 pm »

Thx now works everything fine :)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.