Table of Contents
Rotation Tags
Tags are edited in Rotation - Tags. If you don't set tags separately during import, they are created automatically from the description. All new tags automatically get the status “Wait”. Gallery tags (thumbs, you could say all thumbs have the same tags as the gallery they link to) are always displayed on the gallery page itself or under the thumb. For example, you added a gallery with tags: blue, lamp, box. On the gallery page itself or under the thumb, these 3 tags will always be displayed. And via a link like http://domain/?tag=blue this gallery will always be visible. Tag statuses affect the following:
- In the tag cloud, only active tags are displayed. This is done so that there are not tens of thousands of words in the tag cloud.
- Tags can be automatically replaced, for example if the words “apples” and “apple” ended up in tags, 2 essentially identical tags we don't need, so we can set replace = “apple” for the word “apples” and first in all galleries where there is “apples” tag, it will be replaced with “apple”, and subsequently it will happen automatically for all added galleries.
Tag cloud:
- You can automatically activate the top 10% of the most popular tags
- Stop words from /scj/includes/conf/gal_cloud_skip.txt are automatically not included in the tag cloud
- The tag cloud is automatically recreated every 30 minutes and cached. If you delete the cache - the tag cloud will be deleted and recreated in 30 minutes.
Whitelist
Appeared in version 48. The general idea - this is a pre-filter, so only words that are on the whitelist will get into tags. The advantage is that you won't have to parse a bunch of words after the fact. To activate tags in the cloud you still need to.
The whitelist format is very simple
tag1 tag2,tag2_synonym1,tag2_synonym2,
that is, each tag on a new line, if there is more than one tag on a line - the other tags are perceived as synonyms, and if they are encountered, they are replaced with the first word on this line.
With version 50, 2 special characters ^ (start of word) and $ (end of word) were added to the white_tag_list format.
For example: if bus is in the whitelist, it will work on both bus and busty, because by default it searches for word occurrence. Sometimes this is a problem. If you need exactly bus, you can limit the tag ^bus$ - this will only work on bus. bus$ - will also work on superbus. ^bus - will work on buses but not on superbus.
Reassign tags
Also in the menu you can reassign tags to galleries. This is relevant if, for example, you weren't using whitelist, and then decided to start using it. In any case, regardless of whether you set whitelist in settings or not - the script will go through gallery descriptions and make tags from them. Nothing will happen to already existing tags in the Rotation - Tags list.
Tag thumbs
Starting from update 49, the script can automatically select the best thumb for each active tag. Settings are found in Rotation - Tube - Settings. For example, we display
<tag_cloud num=1-10> <!--TAG_NAME--> and then you can add any tags characteristic for thumbs, for example <!--THUMB_URL--> which will output the best thumb for this tag </tag_cloud>
Note that the thumb is selected only for active tags, and such frequent operations add server load.
Also, tag thumbs rotate the same way as category thumbs rotate. So if you put code like
<tag_cloud num=1-10 order=clicks> <a target=_blank href='/tag/<!--TAG_NAME-->/?<!--THUMB_LINK-->'><img src='<!--THUMB_URL-->'></a> </tag_cloud>
Then the tag thumb will start counting CTR and will be displayed based on this CTR. The analogy is easy to imagine based on category thumbs.
Rotate Tag Thumbs
In version 49, tag thumb rotation was skipped, so you could create tag thumbs and display them
<tag_cloud num=1-10> <!--TAG_NAME--> and then you can add any tags characteristic for thumbs, for example <!--THUMB_URL--> which will output the best thumb for this tag </tag_cloud>
however there was no sorting by CTR of these thumbs. Now you can do
<tag_cloud num=1-10 order=clicks> <!--TAG_NAME--> and then you can add any tags characteristic for thumbs, for example <!--THUMB_URL--> which will output the best thumb for this tag </tag_cloud>
and the script will output tag thumbs sorted by CTR.
In rewrites you also need to add a rewrite so that CTR is counted (by default clicks on tag thumbs are not counted)
default
RewriteRule ^tag/(.*)/$ /scj/tube/index.php?tag=$1
needs to be replaced with
RewriteCond %{QUERY_STRING} ^(.+)$
RewriteRule ^tag/(.*)/$ /scj/cgi/out.php?link=images/%{QUERY_STRING}&url=content&p=100&skip_to_cookie=true&skip_sell=true&tag=$1 [L]
RewriteRule ^tag/(.*)/$ /scj/tube/index.php?tag=$1
