new_rotation_step_by_step
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| new_rotation_step_by_step [2019/08/12 13:04] – [Basics] admin | new_rotation_step_by_step [2026/03/21 10:11] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== New Rotation Step By Step ====== | ====== New Rotation Step By Step ====== | ||
| - | There are 2 types of rotation: Old (Rotation - Pages) and New (Rotation - CMS). | + | A modern |
| - | Let's say you have 2 categories. With old rotation | + | This rotation is built on the old system but lets you quickly build multi-niche, multi-content sites. You can also create your own galleries from FHG content or upload content via FTP. |
| - | Basically any multiniche site consists of at least 2 pages: index (with list of thumbs | + | Most multi-niche sites have 4 core pages: index, category thumb list, content page (video or gallery), and optionally a search page. With SmartCJ, you can launch such a site in 15 minutes. |
| + | Extended versions add user registration, | ||
| - | ===== Basics ===== | + | The system is extremely flexible. You can create almost any site type with it. |
| - | 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' | + | ===== Basic Concepts ===== |
| - | + | ||
| - | ===== Setup ===== | + | There are two main content types for tube CMS: |
| - | | + | **External galleries** - Content from sponsors |
| - | | + | |
| - | | + | |
| - | | + | |
| - | * Settings - CJPages: type PATH (not URL, you need PATH!!!) to scj/ | + | |
| + | **Embedded galleries** - Content played directly on your site (like any tube site). The video stays on your domain; no external redirects. | ||
| - | ===== Old Rewrites for version 1.X ===== | + | You can use both types. SmartCJ can also convert sponsor content into either format. |
| - | < | + | ===== Engine Setup ===== |
| - | RewriteEngine On | + | |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteRule ^gallery/ | + | |
| - | #slug galleries | + | * Go to Rotation → Settings and enable the rotation engine |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | * Go to Rotation - Groups and create site categories. You can create unlimited categories. |
| - | RewriteRule ^gallery/ | + | * Copy index.php from the **scj/cgi** directory to your domain root (along with common.php) |
| - | RewriteRule ^gallery/ | + | * Verify that your rewrite rules are configured |
| - | RewriteRule ^gallery/([^/]+)/$ / | + | |
| - | RewriteRule ^gallery/ | + | |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | ===== Adding |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteCond %{QUERY_STRING} ^(.+)$ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^category/ | + | |
| - | RewriteRule ^tag/(.*)/$ / | + | All galleries are DYNAMIC—no physical directories or files are created on your server. Gallery links are virtual; the script generates them on the fly. This is convenient because if you change advertising, |
| - | RewriteRule ^search/(.*)/ | + | |
| - | RewriteRule ^action/ | + | |
| - | RewriteRule ^action/ | + | |
| - | RewriteRule ^go/(.*)/$ / | + | See [[New Rotation Content]] for details. |
| - | RewriteRule ^search_log/ | + | |
| + | After adding content, your site will have galleries. Next, move to [[New Rotation Templates]] to customize appearance. | ||
| - | RewriteRule ^sponsor/ | ||
| - | RewriteRule ^sponsor_galleries/ | ||
| - | |||
| - | RewriteRule ^models/$ / | ||
| - | RewriteRule ^models/ | ||
| - | RewriteRule ^model/ | ||
| - | RewriteRule ^model/ | ||
| - | |||
| - | RewriteRule ^report/ | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | |||
| - | **That' | ||
| - | |||
| - | |||
| - | **Nginx ReWrites** | ||
| - | |||
| - | < | ||
| - | |||
| - | #old style | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | #style 2.0 | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | |||
| - | if ($args) { | ||
| - | rewrite ^/ | ||
| - | } | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/go/(.*)/$ / | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/models/$ / | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | rewrite ^/ | ||
| - | |||
| - | rewrite ^/ | ||
| - | |||
| - | </ | ||
new_rotation_step_by_step.1565615054.txt.gz · Last modified: by admin
