Calguys Smart Image Toolkit use with multidomain

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
map_1961
Power Poster
Power Poster
Posts: 389
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

Calguys Smart Image Toolkit use with multidomain

Post by map_1961 »

Hi coders.

As i use an cmsms install with MultiDomain module (helpful becvause not for every domain / page a new install is needed) i get o the issue that in module Calguys Module Extension i can place one Graphical Watermarks only - this has to be placed physicly in folder uploads.
Who has an idea how to make it selectable fitting to the spewcific domanin and content fpr the diferent domains hosted in the cmsms install with MultiDomains?

Thx MAP
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1697
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Calguys Smart Image Toolkit use with multidomain

Post by DIGI3 »

In theory you can have PHP logic within your config.php file, but I have no idea if or how well it would work. Also keep in mind that all CG modules have long been abandoned, so migrating to SmartImage and CMSMSExt would be advised.

Here's an untested thing you could experiment with in your config.php (I'm using CMSMSExt parameters but you can adjust if you're sticking with CG):

Code: Select all

if($_SERVER['SERVER_NAME'] == 'domain1.foo') {
  $config['xt_watermark_file'] = 'watermark1.jpg';
} else {
  $config['xt_watermark_file'] = 'watermark2.jpg';
}
I have no idea how well this will work with caching etc., it's just an idea to try. Consult the help for both modules to see what parameters you can use.
Not getting the answer you need? CMSMS support options
User avatar
map_1961
Power Poster
Power Poster
Posts: 389
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

Re: Calguys Smart Image Toolkit use with multidomain

Post by map_1961 »

Thx.

I will try and report.
KR

MAP
Post Reply

Return to “Modules/Add-Ons”