Auto update screenshots?

Mark

Administrator
Staff member
yes, this is very possible. However I don’t recommend you generate all screenshots repeatedly, that’s quite a waste of resources once your list grows and most of the screenshots will be pretty much duplicated anyway.

I’ll post a plugin that would allow for a cron to render Pending screenshot requests, that should automate it enough for you I would think. Most admins of active lists login at least once a week or so and hitting that 1 button on the admin homepage has been acceptable.
 

Mark

Administrator
Staff member

you can run that via cron.

the exact command will vary from host to host, you can check this link for a few ideas or ask your host

 

Mark

Administrator
Staff member
You can run list=pending daily, even several times daily would be fine.
 

Mark

Administrator
Staff member
You will need to ask your host, paths and methods vary greatly from server to server.

The path to our script is correct.
 

Basti

Administrator
Staff member
That is very dangerous. Anyone knowing VL a bit could spam your list and thus screenshot server
If you edit that file anyway to have it callable by console, edit it in a better way
Code:
if (!isset($_COOKIE['atsphp_sid_admin']) && !isset($FORM['my_param']) || isset($FORM['my_param']) && $FORM['my_param'] !== 'someSecretLetters') {
Now call the file and append your secret string
Code:
https://clix.city/screenshots.php?list=pending&generate=1&my_param=someSecretLetters
 

Mark

Administrator
Staff member
That is very dangerous. Anyone knowing VL a bit could spam your list and thus screenshot server
If you edit that file anyway to have it callable by console, edit it in a better way
Code:
if (!isset($_COOKIE['atsphp_sid_admin']) && !isset($FORM['my_param']) || isset($FORM['my_param']) && $FORM['my_param'] !== 'someSecretLetters') {
Now call the file and append your secret string
Code:
https://clix.city/screenshots.php?list=pending&generate=1&my_param=someSecretLetters
good call, was just coming here to recommend similar idea
 
Top