This shows you the differences between two versions of the page.
new_rotation_multidomains [2014/01/29 18:04] |
new_rotation_multidomains [2014/01/29 18:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== New Rotation Multidomains ====== | ||
+ | Main purpose of this is to start multiply sites with different traders using the same thumbs DB. You can even run those sites on different servers. | ||
+ | The process is easy: you create one site (master) and fill it with galleries\thumbs, | ||
+ | |||
+ | 3 Easy steps: | ||
+ | |||
+ | - Create master site, add galleries and so on | ||
+ | - Install SmartCJ on another domain (you' | ||
+ | - at that new site: Rotation - Settings, | ||
+ | |||
+ | That's all. | ||
+ | |||
+ | |||
+ | **Why you should use it:** | ||
+ | - No need add the same galleries to both sites, you add a gallery at master site and get the same gallery at all slaves | ||
+ | - Common sponsors, no need to add sponsors at each site | ||
+ | - 10 domains using 1 DB is easier for server then 10 DBs | ||
+ | - You can grab galleries at one site, no need to setup crop profiles at each site | ||
+ | - You can create custom gallery at master site but have different designs for it at each slave | ||
+ | - there' | ||
+ | |||
+ | |||
+ | **Limitations: | ||
+ | - template names should be the same for all sites | ||
+ | - 1 slave can be linked to 1 master only, master site can has unlimited slaves | ||
+ | |||
+ | **Common data:** | ||
+ | - Thumbs, categories, sponsors - they can have different descriptions at each slave but the list is the same | ||
+ | - Tags and tags cloud | ||
+ | |||
+ | |||
+ | **Separate data for each slave:** | ||
+ | - Traffic stats, thumbs CTR | ||
+ | - thumbs\category\sponsor descriptions - you can have different descriptions for each slave | ||
+ | |||
+ | |||
+ | **1 master and several niches** | ||
+ | You can create a one-niche site using multiniche master site | ||
+ | - setup new domain and smartcj | ||
+ | - link to master | ||
+ | - disable all unnecessary rotation groups at new slave | ||
+ | |||
+ | |||
+ | ===== Thumb save method===== | ||
+ | |||
+ | * at master site: rotation - settings : Thumb save method . If you save thumbs at local server (/ | ||
+ | * Make sure you allow hotlink from slave domains at master (ask admin if you dont know what is hotlink) | ||
+ | |||
+ | |||
+ | |||
+ | **Slave at other servers** | ||
+ | * Master ans slave can be at different servers but | ||
+ | * it's advisable to have it in the same datacenter | ||
+ | * by default mysql refuses connections from other server then localhost. ask admin to fix it. | ||
+ | |||
+ | |||
+ | ===== Send to Master Galleries | ||
+ | |||
+ | By default slave sites link to galleries at the same domain. Ie we created a custom gallery. Actually it's just a list of content (thumb, big images, movie files and so on). Each domain displays that content using it's own template. | ||
+ | |||
+ | so http:// | ||
+ | and | ||
+ | http:// | ||
+ | |||
+ | will output he same content but using it's own template. And it's good and it is supposed to be this way. | ||
+ | |||
+ | But sometimes you want all slave to link to galleries at master only. | ||
+ | First of all you'll try to change links from / | ||
+ | |||
+ | It will work but it links straight to master site and slave site won't get rotation info. | ||
+ | |||
+ | There are 2 options | ||
+ | |||
+ | 1. Change subtemplate so traffic will go thought slave' | ||
+ | |||
+ | < | ||
+ | / | ||
+ | to | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | 2. or change rewrite | ||
+ | < | ||
+ | RewriteRule ^gallery/ | ||
+ | |||
+ | to | ||
+ | |||
+ | RewriteRule ^gallery/ | ||
+ | |||
+ | </ |