User Tools

Site Tools


new_rotation_faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
new_rotation_faq [2017/04/27 07:16]
admin [Lazy load, load on scroll, pinterest and so on]
new_rotation_faq [2017/10/16 12:23] (current)
Line 31: Line 31:
   * that's why since update 46 thumbs won't be actually deleted once you press '​Delete',​ instead those thumbs will be marked as '​Marked for deletion'​ and once every 10 minutes cron script will check for those thumbs and actually delete it.   * that's why since update 46 thumbs won't be actually deleted once you press '​Delete',​ instead those thumbs will be marked as '​Marked for deletion'​ and once every 10 minutes cron script will check for those thumbs and actually delete it.
   * you want to force that action you have to run following command in SSG   * you want to force that action you have to run following command in SSG
-  * <​code>​cd /​PATH_TO_/​scj/​bin/;​ env HTTP_HOST=yourdomain.com php rot.php process_deleted=true </​code>​+  * <​code>​cd /​PATH_TO_/​scj/​bin/;​ env HTTP_HOST=yourdomain.com php rotation.php process_deleted=true </​code>​
   * there'​s one exclusion - if you delete thumbs in 'List Thumbs'​ and total amount of thumbs being deleted is less then 30.   * there'​s one exclusion - if you delete thumbs in 'List Thumbs'​ and total amount of thumbs being deleted is less then 30.
  
Line 368: Line 368:
 if you want to force deletion: if you want to force deletion:
  
-<​code>​cd /​PATH_TO_/​scj/​bin/;​ env HTTP_HOST=yourdomain.com php rot.php process_deleted=true </​code>​+<​code>​cd /​PATH_TO_/​scj/​bin/;​ env HTTP_HOST=yourdomain.com php rotation.php process_deleted=true </​code>​ 
 + 
 + 
 +===== It does not grab this gallery ​ ===== 
 + 
 +Some galleries might have some peculiarities and are created in a way that the script can not download it.  We try to implement it as good as we can but if there'​s a gallery you'd like to add but the script can not parse it - you can use so called '​gateway'​ for it: 
 + 
 +  * let's say a gallery http://​gallery/​ contains an image http://​gallery/​image.jpg but the script can not see it 
 +  * we create file http://​your_server/​gate.php 
 +  * and import the gallery ​ as http://​your_server/​gate.php?​url=http://​gallery/​  
 +  * your script gate.php gets URL,  parses the real gallery and outputs it in a regular way , for example  
 + 
 +<​code>​ 
 +<a href='​http://​image1'><​img src='​http://​thumb1'></​a>​ 
 +<a href='​http://​image2'><​img src='​http://​thumb2'></​a>​ 
 +and so on 
 +</​code>​ 
 + 
 +**ImportSets** 
 + 
 +Let's say we have importset http://​sponsor/​dump.php that outputs something like  
 + 
 +url|thumb_url|some_id 
 + 
 +and we'd like to replace some_id some something more meaningful like http://​test/​modified_id 
 + 
 + 
 +  * gate.php?​url=http://​sponsor/​dump.php 
 +  * the gate gets URL, downloads it and replaces some_id with http://​test/​modified_id and outputs, so the script get's dump in a way you want it to be 
 +  * we add gate.php?​url=http://​sponsor/​dump.php in import set instead of http://​sponsor/​dump.php
  
  
new_rotation_faq.1493277394.txt.gz · Last modified: 2017/04/27 07:16 by admin