Writing /home/user/smartcj.com/wiki/data/cache/7/73c60192f4768b3637340148471f3367.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /home/user/smartcj.com/wiki/data/cache/7/73c60192f4768b3637340148471f3367.metadata failed
tcms_update_1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| tcms_update_1 [2017/07/12 10:00] – [Search query limit] admin | tcms_update_1 [2026/04/20 13:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Rotation ====== | ====== Rotation ====== | ||
| + | |||
| + | ===== Page_main_tag and Return 404 ===== | ||
| + | |||
| + | There is a feature "URLs with 0 result thumbs return 404" the general meaning of which is that if you have, for example, 100 thumbs, and pagination by 20, then this is 5 pages. When requesting the 6th page (for example if you manually edit the URL), since there will be no thumbs to fill the page - the script will return 404 and show the content_not_found template | ||
| + | |||
| + | There is also a parameter for the tag page_main_tag=true, | ||
| + | |||
| + | We get the following example, which includes all of the above. | ||
| + | |||
| + | < | ||
| + | < | ||
| + | category template | ||
| + | </ | ||
| + | |||
| + | |||
| + | <thumb num=1-20 search_log=all > | ||
| + | search template (< | ||
| + | </ | ||
| + | |||
| + | |||
| + | <thumb num=1-20 > | ||
| + | regular thumb template | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | For example, we have 100 saved search queries and 500 thumbs total. | ||
| + | |||
| + | The option "URLs with 0 result thumbs return 404" is enabled. | ||
| + | |||
| + | So, in the original variant on the 6th page we have a question: the search_log request returned 0, and for a regular <thumb there are still thumbs. should we show 404 in this case or not - this depends on what you consider main in the template. Maybe you want to output search queries here, or maybe search queries are just a supplement to thumbs. | ||
| + | |||
| + | Let's add an indication of which tag is main | ||
| + | |||
| + | < | ||
| + | <thumb num=1-20 search_log=all page_main_tag=true> | ||
| + | search template (< | ||
| + | </ | ||
| + | |||
| + | <thumb num=1-20 > | ||
| + | regular thumb template | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | now the script will focus on search_log and on the 6th page will return 404. | ||
| + | |||
| + | If you do <thumb num=1-20 page_main_tag=true> | ||
| + | |||
| + | |||
| + | And one more situation where this tag is needed. | ||
| + | |||
| + | < | ||
| + | < | ||
| + | category template | ||
| + | </ | ||
| + | |||
| + | |||
| + | <thumb num=1-20 search_log=all > | ||
| + | search template (< | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | For example, we just created a site and we don't have any saved search queries. In this situation, when the tag is not specified with page_main_tag, | ||
| + | |||
| + | Here there are at least 2 options for what the designer might have wanted in this case. Perhaps this is a page where search queries are displayed, and categories are just part of the site in the header or footer, and 404 should really be returned. | ||
| + | |||
| + | On the other hand, perhaps search_log is just a supplement and you should output categories. In this case page_main_tag should be added to < | ||
| + | |||
| + | ===== Toplist ===== | ||
| + | |||
| + | A new opportunity for trading with a toplist. | ||
| + | |||
| + | The idea is as follows: you can mix trader thumbs into rotation thumbs. For example. | ||
| + | |||
| + | < | ||
| + | <thumb num=1-3></ | ||
| + | trader thumb | ||
| + | <thumb num=3-6></ | ||
| + | 2 more trader thumbs and so on | ||
| + | </ | ||
| + | |||
| + | this way you don't need to make a separate toplist and even set skimming to 100. | ||
| + | |||
| + | The problem was that to output 1 or 2 trader thumbs you had to make a large number of top templates and then include them in the right place of the template. Now traders can be output directly in the template in the right quantity. | ||
| + | |||
| + | < | ||
| + | <thumb num=1-3></ | ||
| + | |||
| + | <trader num=1> < | ||
| + | |||
| + | <thumb num=3-6></ | ||
| + | |||
| + | <trader num=2-3> < | ||
| + | </ | ||
| + | |||
| + | |||
| + | So inside the <trader tag you can use | ||
| + | |||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | Possible parameters for the tag | ||
| + | |||
| + | < | ||
| + | <trader num=1 .... > | ||
| + | num = trader number, can be a range for example 1-5 | ||
| + | |||
| + | order = sorting, options uniques, raws, priority, clicks by default - uniques. | ||
| + | |||
| + | </ | ||
| + | |||
| + | The priority sorting option is of primary interest for trading, i.e. thumbs of traders to which we should give first will be higher in the template. | ||
| + | |||
| + | |||
| + | ===== Custom Gallery From A List of Images ===== | ||
| + | |||
| + | The ability to create custom galleries by specifying a list of images has been added, i.e. without specifying the source gallery. For this in the import there is an option 'Image List' where you enter a comma-separated list of URLs. | ||
| + | |||
| + | ===== Category Boost \ Separate Thumb CTR ===== | ||
| + | |||
| + | A test option to separate CTR for each thumb in a category. | ||
| + | |||
| + | Rotation Settings - Test settings - Boost gallery CTR in category, % | ||
| + | |||
| + | The idea is that in each category, gallery CTR is increased proportionally to the number of clicks in that category. As a result, each thumb gets both an overall CTR and a separate category-specific CTR, which still depends partly on the overall CTR. With a small boost, category CTR stays close to the overall CTR; with a large boost, it diverges much more. | ||
| + | |||
| + | For example, a thumb has 10 impressions and 1 click on the index, 2 in category A and 3 in category B. | ||
| + | Boost = 50%, general CTR when displaying a thumb on the index or without specifying a category (1+2+3)/10 = 0.6 | ||
| + | |||
| + | For category A (1+2*1.5(boost)+3)/ | ||
| + | |||
| + | For category B (1+2+3*1.5(boost) )/10 = 0.75 | ||
| + | |||
| + | |||
| + | Currently this only works when using magic rotation parameter. | ||
| + | |||
| + | |||
| + | ===== Animated Gifs ===== | ||
| + | |||
| + | The ability to create animated gif files for video has been added which is trendy for Pinterest-style sites. | ||
| + | To use it you need to: | ||
| + | |||
| + | - make sure you have mplayer and ffmpeg on your server and specify the paths in rotation - settings | ||
| + | - add a gallery with video (URL) or immediately a URL to the video (FLV URL) and add to preload | ||
| + | - after processing in preload 1 you can click on any thumb and a thumb editing page will open with a player and added video | ||
| + | |||
| + | You can take a screenshot from any moment of the video. Or make an animated gif of any duration and frame rate there. Note that the size of the resulting file is directly proportional to the frame rate and duration of the video. | ||
| + | ===== Prefix encodehtml2js===== | ||
| + | |||
| + | A prefix has been added for tags that transforms any HTML into encoded JS code. The most likely use is encoding of embed code. For example, | ||
| + | |||
| + | < | ||
| + | |||
| + | original variant | ||
| + | |||
| + | < | ||
| + | |||
| + | can be replaced with | ||
| + | |||
| + | < | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Sphinx config ===== | ||
| + | |||
| + | Since the database was changed a bit the sphinx config changed | ||
| + | |||
| + | < | ||
| + | |||
| + | sql_query = SELECT gi.gallery_id, | ||
| + | (SELECT group_concat(tag_name) FROM rot_gal2tag g2t \ | ||
| + | LEFT JOIN rot_tags as t on t.tag_id = g2t.tag_id \ | ||
| + | WHERE g2t.gallery_id = gi.gallery_id) as tags, \ | ||
| + | (SELECT group_concat(gss.group_id) FROM rot_gallery_stats1 as gss \ | ||
| + | WHERE gss.gallery_id = gi.gallery_id AND group_id != 0) as categories \ | ||
| + | FROM rot_gallery_info AS gi \ | ||
| + | JOIN rot_gallery_data1 AS gd ON gi.gallery_id = gd.gallery_id \ | ||
| + | JOIN rot_gallery_stats1 AS gs ON gs.gallery_id = gi.gallery_id \ | ||
| + | WHERE gallery_status = ' | ||
| + | and gs.best_thumb = ' | ||
| + | |||
| + | |||
| + | sql_attr_timestamp = date | ||
| + | sql_attr_uint | ||
| + | sql_attr_uint | ||
| + | sql_attr_float | ||
| + | sql_attr_uint | ||
| + | sql_attr_uint = gallery_id | ||
| + | sql_attr_multi = uint categories from field; | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| ===== Search Log Advanced Queries ===== | ===== Search Log Advanced Queries ===== | ||
| - | You can output | + | The script has long had a feature to output |
| - | <thumb num=1-10 search_log=all ... | + | <thumb num=1-10 search_log=all ... |
| - | + | ||
| - | Now this tag became a bit more advanced. | + | It outputs the log of the latest search queries on your site. But now it has become |
| <thumb num=1-10 search_log=all filter=GET_group_name | <thumb num=1-10 search_log=all filter=GET_group_name | ||
| + | |||
| + | On a tag page you can filter by tag name | ||
| + | |||
| <thumb num=1-10 search_log=all filter=GET_tag | <thumb num=1-10 search_log=all filter=GET_tag | ||
| + | |||
| + | On a search page you can filter by search query | ||
| + | |||
| <thumb num=1-10 search_log=all filter=GET_search | <thumb num=1-10 search_log=all filter=GET_search | ||
| - | | ||
| - | and so on | ||
| - | By default | + | Here it should be reminded that parameters starting with GET_ are variables from the request (from the URL). |
| + | |||
| + | By default | ||
| <thumb num=1-10 search_log=all filter=GET_search order=items_found | <thumb num=1-10 search_log=all filter=GET_search order=items_found | ||
| <thumb num=1-10 search_log=all filter=GET_search order=hits | <thumb num=1-10 search_log=all filter=GET_search order=hits | ||
| - | Search queries is a good way to add more pages, but it takes a lot of time to collect enough of them naturally. So you can add some in admin area ((/ | + | Thus on each page links are created |
| - | + | ||
| - | For example, at на bigbase.smartcj.com about 2М search queries where added manually and we ran into 2 issues | + | |
| - | 1. for some queries we had 0 results | + | Of course, queries are accumulated very slowly, and to force this event in Search Log in the admin panel (/ |
| + | |||
| + | For example, on bigbase.smartcj.com about 2M requests were added. From which several problems emerged, which were immediately resolved. | ||
| + | |||
| + | 1. because the requests were taken from general sources it turned out that for some requests the database found nothing. Thus there was a chance to get a link on the page that had 0 search | ||
| php rotation.php check_search_queries=true | php rotation.php check_search_queries=true | ||
| - | 2. when you have a lot of queries | + | 2. when there are few search |
| < | < | ||
| Line 66: | Line 281: | ||
| </ | </ | ||
| - | Dont forget | + | After this sphinx will be able to index your existing queries. |
| + | |||
| + | For SmartCJ to be able to start using this index you need to specify it in the rotation settings Sphinx Search, field Sphinx Search Log Index = search_queries_index | ||
| + | |||
| + | Done. | ||
| ===== Search query limit ===== | ===== Search query limit ===== | ||
| - | There a lot of ways to limit search | + | There can be many options for limiting the search |
| - | /? | + | /? |
| + | can turn into | ||
| /? | /? | ||
| + | or | ||
| /? | /? | ||
| - | and so on | ||
| - | | ||
| - | that's why we introduced a new parameter | ||
| - | Let's say surfers made following queries | + | and so on, the options can be different and combined, so a free parameter |
| - | domain/? | + | |
| - | domain/? | + | |
| - | domain/? | + | |
| - | domain/? | + | |
| - | | + | |
| - | if we'd use just <thumb search_log=all we'd get | + | For example, |
| + | We add search_query_limit=teen to the URL, for example /? | ||
| - | test, | + | when outputting <thumb search_log=all num=1-20> |
| - | + | ||
| - | but let's say we want to output | + | |
| - | | + | |
| - | domain/? | + | |
| - | domain/? | + | |
| - | domain/? | + | |
| - | now we can do | + | You can substitute & |
| - | <thumb search_log=all num=1-20 search_query_limit=teen> | + | <thumb search_log=all num=1-20 search_query_limit=GET_your_param> |
| - | and get just | + | **Language search** |
| - | + | Similarly you can make a search split by languages to output on corresponding languages. The script doesn' | |
| - | test,test1 | + | |
| - | + | ||
| - | As usual you сan also get that parameter | + | |
| - | <thumb search_log=all num=1-20 search_query_limit=GET_your_param> | ||
| - | | ||
| - | another example, let's say you want to filter by language (in this example we have 2 languages EN and DE). We made following request | ||
| domain/? | domain/? | ||
| Line 118: | Line 321: | ||
| - | let's add in index template | + | Thus in our database for each search there will be a note of what language it was made in. Adding the parameter is not difficult directly in the template, for example <input type=hidden name=search_query_limit value=' |
| + | |||
| + | In the template we add | ||
| <thumb search_log=all num=1-20 search_query_limit=GET_your_param> | <thumb search_log=all num=1-20 search_query_limit=GET_your_param> | ||
| - | | + | |
| - | and open page like domain/? | + | and open the page as domain/? |
| test,test1 | test,test1 | ||
| + | |||
| + | |||
| + | because they have the mark lng_en. | ||
| + | ===== Subcategories and filter keywords ===== | ||
| + | |||
| + | A small adjustment in the distribution of subcategories (when a category is a subcategory of a root category, for example 2 top-level categories cars and buses, each of them has subcategories red and blue because both cars and buses can be these colors) | ||
| + | |||
| + | The question arises when you need to import something, but the main keyword is missing, for example the phrase "red wheel" can refer to both cars and buses. | ||
| + | |||
| + | So the adjustment is that if when importing filter keywords are selected (alt+desc) AND (!!!) root category, for example cars in our example, then keywords will only be searched in subcategories of the specified root category. | ||
| + | |||
| + | i.e. for our example by the keyword red it falls only into the subcategory cars -> red | ||
| + | |||
| + | |||
| + | ====== Trade ====== | ||
| + | |||
| + | ===== Overclick skimming hold ===== | ||
| + | |||
| + | Let's say we have a situation where noref has 100% skimming and overclick has 0% (or some other number different from 100). Let's say a noref came and made 20 clicks with noref skimming - 100%. After the default 20 clicks, the trader becomes overclick and skimming for him becomes 0%. However, we want that specifically for noref the skimming remained 100% (for overclick traffic from traders - 0%) - for this a special flag has been added - in the skimming field for noref you need to write !100 (exclamation mark at the beginning) - this means that skimming remains 100% even in case of overclick. | ||
| + | |||
| + | |||
| + | ===== Incoming TDS ===== | ||
| + | |||
| + | For incoming traffic you can specify a list of rules, for example TDS_1. This is better than having all rules in TDS, since in TDS you can specify a whole set of rules by which traffic will be processed. At the end of the TDS scheme you can specify {ORIGINAL_URL} and this will be the URL where traffic will go if the TDS rule doesn' | ||
| + | |||
| + | |||
| + | ===== Auto lock traffic in trade groups ===== | ||
| + | |||
| + | Automatically and transparently, | ||
| + | i.e. if let's say trader A is in trade group 1, then all clicks from surfers who came from him will be distributed within group 1, as if automatically the URL always had & | ||
| + | |||
| + | The setting is located in Settings - Traffic Rules | ||
| + | |||
tcms_update_1.1499853626.txt.gz · Last modified: by admin
