User Tools

Site Tools

Translations of this page:

Sidebar

Documentation index

new_rotation_step_by_step

New Rotation Step By Step

Basically any site consists of at least 2 pages: index (with list of thumbs or list of categories or both) and X pages with list of thumbs for each category. You can also have galleries created by SmartCJ (Demo http://demo.smartcj.com/). You can also add use registration, favorites, votes, comments and so on. It's all available but to simplify process right now we will work with basic templates only.

Basics

Basically there are 2 types of galleries: embedded and external. External - this is regular FHG. Embedded - galleries created by SmartCJ. Script can create custom galleries from sponsor's FHG (download all content from FHG and create new gallery at your domain with your design), from flv files, actually from any content. You can use both types of content at one site (Demo http://demo.smartcj.com/)

Setup

  • Rotation → Settings turn it on ( Rotation = On )
  • Rotation - Groups : Create groups (categories, niches) for your site, minimum 1, maximum - unlimited.
  • Copy (!!! copy, not move, do not delete source) to the root of your domain index.php and common.php from scj/cgi
  • Create .htaccess at the root of your domain (NOTE If you use nginx or lighttpd - ask admin to add those rules to config file) and add rewrite rules Install. Those rewrites are for version 2.X (TCMS)
  • Settings - CJPages: type PATH (not URL, you need PATH!!!) to scj/tube/index.php (for example /usr/home/user/domain.com/scj/tube/index.php)
  • Add content new_rotation_content in Rotation - Import, the process of adding content in maintenance - logs (gallery_grabber.log)
  • in few minutes you should see content in Rotation - List thumbs
  • then you should see you site up and running

Rewrites for Apache

ewriteEngine On

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]{2})/(.*)$ $2?force_lng=$1&%{QUERY_STRING} [L]

RewriteRule ^category/([^/]+)/$ /script_folder_name/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=ctr&%{QUERY_STRING} [L]
RewriteRule ^category/([^/]+)/([^/]+)/([^/]+)/$ /script_folder_name/cgi/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&group_name=$1&order=$2&page=$3&%{QUERY_STRING} [L]

#slug galleries
RewriteRule ^gallery/([^/]+)/index.html$ /script_folder_name/cgi/out.php?url=content&slug=$1&%{QUERY_STRING} [L]
RewriteRule ^gallery/([^/]+)/([0-9]{1,2}).html$ /script_folder_name/cgi/out.php?url=content&slug=$1&item_id=$2&%{QUERY_STRING} [L]

#tags
RewriteRule ^tag/([^/]+)/([^/]+)/([^/]+)/$ /script_folder_name/tube/index.php?tag=$1&page=$3&order=$2&%{QUERY_STRING} [L]
RewriteRule ^tag/([^/]+)/([^/]+)/$ /script_folder_name/tube/index.php?tag=$1&page=$2&%{QUERY_STRING} [L]
RewriteRule ^tag/([^/]+)/$ /script_folder_name/tube/index.php?tag=$1&%{QUERY_STRING} [L]

#model galleries
RewriteRule ^model_galleries/([^/]+)/$ /script_folder_name/tube/?model_slug=$1&force_template=model_galleries [L]
RewriteRule ^model_galleries/([^/]+)/([^/]+)/$ /script_folder_name/tube/?model_slug=$1&page=$2&force_template=model_galleries [L]

RewriteRule ^model/([^/]+)/$ /script_folder_name/tube/?model_slug=$1&force_template=model_galleries&%{QUERY_STRING} [L]
RewriteRule ^model/([^/]+)/([^/]+)/([^/]+)/$ /script_folder_name/tube/?model_slug=$1&force_template=model_galleries&order=$2&page=$3&%{QUERY_STRING} [L]

RewriteRule ^search/([^/]+)/([^/]+)/$ /script_folder_name/tube/index.php?search=$1&page=$2&%{QUERY_STRING}
RewriteRule ^search/([^/]+)/([^/]+)/([^/]+)/$ /script_folder_name/tube/index.php?search=$1&order=$2&page=$3&%{QUERY_STRING}

new_rotation_step_by_step.txt · Last modified: 2019/08/12 13:19 by admin