Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Time delay picture posting mod  (Read 13801 times)

0 Members and 1 Guest are viewing this topic.

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Time delay picture posting mod
« 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #1 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?
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #2 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
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #3 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #4 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.
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #5 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #6 on: September 23, 2014, 02:06:43 pm »

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #7 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)-->
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #8 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #9 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?
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #10 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?
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #11 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #12 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.
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #13 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
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Time delay picture posting mod
« Reply #14 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.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #15 on: October 09, 2014, 01:41:25 pm »

Please try attached version 0.2.
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #16 on: October 11, 2014, 04:00:21 am »

Loaded and stacked, we shall see tomorrow if it works.  Thanks!!
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #17 on: October 12, 2014, 05:18:34 pm »

Didn't work. :(   Could I be doing the date wrong on the keyword area?
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Time delay picture posting mod
« Reply #18 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?
Logged

Estaban Maturin

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 13
    • Spreading the Humor
Re: Time delay picture posting mod
« Reply #19 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.
Logged
Don Estaban Maturin y DeMenova
Admin and webhost for:
Spreading the Humor (http://spreadingthehumor.net)
Facebook page (https://www.facebook.com/SpreadingTheHumor)
Pages: [1] 2   Go Up
 

Page created in 0.035 seconds with 20 queries.