Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 23:12

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 13. Oct 2011, 07:18 
Offline

Joined: 13. Oct 2011, 07:15
Posts: 4
Howdy,

Just wondering as I use FTP infrequently to upload my files, is it possible to have the sync media library script run on a scheduled basis or is there a way to create a cron job for it?

Cheers
Sandy


Top
 Profile  
 
PostPosted: 13. Oct 2011, 12:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
No. You would have to integrate the functionality to e.g. the internal cron of wordpress.

Best,
Michael


Top
 Profile  
 
PostPosted: 14. Oct 2011, 00:40 
Offline

Joined: 13. Oct 2011, 07:15
Posts: 4
Howdy TWG,

In that case I have a phpscript/widget on the front page that only admins can see which they can click and it will rename uploaded files to a certain format, is it possible to inject into that code a call to initiate the plugin's sync process in a similar way that clicking the sync button would initiate the process?

Cheers
Sandy


Top
 Profile  
 
PostPosted: 14. Oct 2011, 09:43 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I think the effort to do this is the same as using the wordpress cron :).
I looked in the api and the cron seems not hard to use.

The functions simply have to be copied and the output stuff has to be removed because it is not needed.

Best,
Michael


Top
 Profile  
 
PostPosted: 17. Oct 2011, 23:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi,

I just played around with the wordpress cron and I'll add the automatic sync to the next version.

- Michael


Top
 Profile  
 
PostPosted: 18. Oct 2011, 17:36 
Offline

Joined: 13. Oct 2011, 07:15
Posts: 4
ah cheers!!

Thankyou very much for that!


Top
 Profile  
 
PostPosted: 19. Oct 2011, 11:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you want to test this version?

I currently work on the issue that files should not by synced by the cron when a file is uploaded at the same time.
So that half uploaded images get synconized...

- Michael


Top
 Profile  
 
PostPosted: 30. Oct 2011, 17:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Get WFU 2.15.

It's now implemented.

- Michael


Top
 Profile  
 
PostPosted: 31. Oct 2011, 00:41 
Offline

Joined: 13. Oct 2011, 07:15
Posts: 4
Wow, thankyou so much!!
Ive never seen support for a feature request this good or this fast!

Many many thanx!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy