forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: Estaban Maturin on September 20, 2014, 03:30:34 pm

Title: Time delay picture posting mod
Post by: Estaban Maturin on September 20, 2014, 03:30:34 pm
In my site I find and post pics from all over the net, I only get time to post them on Sunday.  So new pics are only added one day in seven.

What I would like is a mod that allows me to post anything between 5-50 posts at once and then have them show up in the new pic gallery at a set time (like one every 5 hours)   7 days X 24 hours = 168 hours  / 30 pics = 5.6 hours

That would allow me to post once a week yet draw people in to the site repeatedly through out the week, increasing the traffic to the site and making it feel more 'live'  Also, it would not overwhelm them as much as going and finding 30 pics at one hit.

This mod would help others that are going on vacation since they could preset their site to keep actively posting even though they are gone, and to be able to post large numbers of pics at once without losing some of the effects by shear mass.

Very much please and thank-you.
Title: Re: Time delay picture posting mod
Post by: Αndré on September 22, 2014, 11:30:55 am
5 years ago, I created a custom plugin "auto_release", which does what you're looking for. It was made for cpg1.4.x, but it should also work with cpg1.5.x.

It misuses the "keywords" field, where you need to enter the release date (e.g. 2014-09-23) and you also need to regard some other steps and prerequisites:
Quote
1. set admin approval for admin uploads in group manager
2. log in as admin and switch to user mode (this is important! otherwise files will be released immediately)
3. upload files to your album(s)
4. switch to admin mode
5. visit the upload approval page
6. enter release date (e.g. 2009-06-20) in the keyword field
7. do not approve the files
8. save the changes

Then, the plugin will check each day if there are pictures in the release queue, adjust their upload dates accordingly and clear the keywords field.

Is this what you're looking for?
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 22, 2014, 01:19:24 pm
Just to make sure my ducks are in the right order, I will need to use a different account to post them so that I can run this function as admin afterward?


Yes, this does sound like something that would work just fine. Thank-you
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 22, 2014, 01:35:21 pm
Can't edit my post so I will have to double-post.

Re-reading the instructions, I have the answer to my question.  No, I don't use a different account, I switch settings, I think I did that once when my whole family was standing around my laptop so that all the extra buttons were not visible.  Correction, that is the "Hide Admin Controls" button. 

I think I better confess, I don't know how to switch to user mode at this time.
Title: Re: Time delay picture posting mod
Post by: Αndré on September 22, 2014, 01:41:09 pm
I don't know how to switch to user mode at this time.
If the admin controls are hidden, you're in user mode. If the admin controls are visible, you're in admin mode.

The plugin was created to fit individual requirements as a freelance job. Currently the auto release feature would be just available to the user with the ID "1". There's a config array where you could add other user IDs, but keep in mind that only admin users can access the edit files form for unapproved pictures. Consider this picture as a hack, as it uses existing features (picture approval) and fields (keyword) and doesn't provide that functionality for non-admin users. If it fits your requirements, I will have a closer look at the plugin and try to release it publicly as soon as possible.

Of course it would be better to use a dedicated field instead of misusing the keyword field (including an interface) and also don't use the picture approval feature, so everybody could use that functionality. But as it wasn't required and it works as expected, I haven't developed that plugin further.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 22, 2014, 04:31:50 pm
Yes, that would work for me, I am the admin and user 1

I would appreciate this mod if you can make it available to me.
Title: Re: Time delay picture posting mod
Post by: Αndré on September 23, 2014, 02:06:43 pm
Install the attached plugin as described here: http://documentation.coppermine-gallery.net/en/plugins.htm#plugin_manager
Title: Re: Time delay picture posting mod
Post by: Αndré on September 23, 2014, 02:16:59 pm
By the way, you should upgrade your gallery to the latest stable release (currentl cpg1.5.30):
Quote
<!--Coppermine Photo Gallery 1.5.24 (stable)-->
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 23, 2014, 02:55:26 pm
Yes, I was noticing that yesterday.  I will have to do that.

I have it in place and 4 pics in the queue.  So far it is acting like you said it would.  Thanks very much.  I will watch for it's posting.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 25, 2014, 01:29:38 pm
It should have posted three of the four pics by now and hasn't.  I followed the instructions given.

Quote
1. set admin approval for admin uploads in group manager
2. log in as admin and switch to user mode (this is important! otherwise files will be released immediately)
3. upload files to your album(s)
4. switch to admin mode
5. visit the upload approval page
6. enter release date (e.g. 2009-06-20) in the keyword field
7. do not approve the files
8. save the changes

Was there some other bit I forgot, maybe a configuration I should have done once installing the pluggin?
Title: Re: Time delay picture posting mod
Post by: Αndré on September 25, 2014, 01:32:19 pm
There's no configuration, you just need to install the plugin.

What exactly have you entered in the keywords field?
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 25, 2014, 01:36:46 pm
 ;D  I was screencapping it for you while you asked.

(http://pics.st-bob.net/9/spreadingthehumor_aproval_page.jpg)


Maybe I didn't put the date in the right way around.
Title: Re: Time delay picture posting mod
Post by: Αndré on September 25, 2014, 01:39:04 pm
Looks correct. I haven't tested the plugin with cpg1.5.x, but will do as soon as possible.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on September 25, 2014, 01:44:00 pm
Thank-you!

Didn't know you could not post pics on this forum or I would have just put the link without the [img] stuff.  :p
Title: Re: Time delay picture posting mod
Post by: phill104 on September 25, 2014, 04:10:01 pm
You can attach pics, the options are at the bottom of the reply box. That is the preferred method as it preserves images for future reference.
Title: Re: Time delay picture posting mod
Post by: Αndré on October 09, 2014, 01:41:25 pm
Please try attached version 0.2.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on October 11, 2014, 04:00:21 am
Loaded and stacked, we shall see tomorrow if it works.  Thanks!!
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on October 12, 2014, 05:18:34 pm
Didn't work. :(   Could I be doing the date wrong on the keyword area?
Title: Re: Time delay picture posting mod
Post by: Αndré on October 12, 2014, 08:24:38 pm
The date format is correct (that's what I actually fixed in v0.2). Just to make sure, the plugin has been installed correctly?
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on October 12, 2014, 09:49:14 pm
I think it is.  I installed it like before and like the other plugins.  There was no config panel that I saw.
Title: Re: Time delay picture posting mod
Post by: Αndré on October 14, 2014, 01:47:30 pm
Everything looks fine so far. I currently have no idea why it doesn't work at your gallery.

If you agree, I'll send you my contact details so you can send me login data of your admin account, so I can have a closer look at your gallery, as it works as expected in my testbed.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on October 15, 2014, 05:06:24 am
I concure.  Send me your contact info and I will give you my admin login.
Title: Re: Time delay picture posting mod
Post by: Αndré on October 15, 2014, 11:35:04 am
PM sent.
Title: Re: Time delay picture posting mod
Post by: Αndré on October 22, 2014, 01:39:08 pm
Attached version should work as expected.
Title: Re: Time delay picture posting mod
Post by: Estaban Maturin on October 24, 2014, 01:42:52 am
Thank-you so very much for all your work on this.