PDA

View Full Version : Add-On Releases - vbGallery Addon: Photo of the Day


0ptima
04-07-2009, 10:00 PM
This script will randomly select a photo from vbGallery and create a new thread in a specific forum with the photo and it's description. The script is run as a scheduled task in Vbulletin's Scheduled Tasks Manager.

Before uploading the script, you need to set which categories you want the photos to be selected from, the minimum width of the photo and the minimum amount of views that the photo has received.

Installation is easy, simply upload this script to the forums/includes/cron/ directory and create a new scheduled task. (See screen shot for suggested scheduled task parameters)

Confirmed to work with Vbulletin 3.6.4 and vbGallery 2.2
Confirmed to work with Vbulletin 3.6.8 and vbGallery 2.3
Confirmed to work with Vbulletin 3.7.0 and vbGallery 2.4.3
Confirmed to work with Vbulletin 3.8.2 and vbGallery 2.4.3
Confirmed to work with Vbulletin 3.8.3 and vbGallery 2.5
Confirmed to work with Vbulletin 3.8.4 and vbGallery 2.5


This is the exact same script that I released for VB 3.6. So if you already have this script working with an older version of VB, there is no need to update it.

Please click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=210659) if you use this script.

0ptima
04-08-2009, 01:59 PM
Screen shot of the new thread and randomly selected picture from the gallery

https://vborg.vbsupport.ru/attachment.php?attachmentid=71333&d=1193009427



Suggested settings for the cron job.


https://vborg.vbsupport.ru/attachment.php?attachmentid=71437&d=1193182489

Jasem
04-08-2009, 02:28 PM
Nice work, thank you!

Installed

Wrams
04-09-2009, 06:51 PM
Yea works a treat...Installed!!

ricoche
04-10-2009, 08:23 AM
Works great but I'm curious if I'll see a lot of duplicate posts. The fewer photos in your gallery the more likely you'll see several of the same photo I gather. I don't imagine anyone has an idea on how to curb this other than adjust the cron to weekly or even monthly? Thanks!

0ptima
04-10-2009, 11:44 AM
Works great but I'm curious if I'll see a lot of duplicate posts. The fewer photos in your gallery the more likely you'll see several of the same photo I gather. I don't imagine anyone has an idea on how to curb this other than adjust the cron to weekly or even monthly? Thanks!

You will get duplicates after a while. To overcome this, just be less strict on the selection criteria, which you configure in the script.

ArnyVee
05-23-2009, 01:36 PM
Does this work for both vBGallery and Photopost Pro?

I'd like to make sure which options I should/could go with depending on the version I install.

lm3a.net
05-24-2009, 04:37 AM
OMG Greaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat work man

thank u,

sunnycher
05-28-2009, 12:29 AM
Mines not working so great, keep getting this error.
Warning: Invalid argument supplied for foreach() in [path]/includes/cron/potd.php on line 70
When you set up the task, at the bottom where it has the string, it just says .php at the end, should we put potd there? I try to do it without it and it says invalid file name.
but when I try to run the task, it comes up with the above error.

TNCclubman
05-28-2009, 01:55 PM
dont want to sound like a noob... but is vbgallery the gallery that comes with vB 3.8? or is it a seperate gallery we need installed to get this to work?

Cool mod!

Tilly
07-01-2009, 03:01 AM
dont want to sound like a noob... but is vbgallery the gallery that comes with vB 3.8? or is it a seperate gallery we need installed to get this to work?

Cool mod!

www.photopost.com

0ptima
07-04-2009, 10:04 PM
Does this work for both vBGallery and Photopost Pro?

I'd like to make sure which options I should/could go with depending on the version I install.

This is for vBGallery.

0ptima
07-04-2009, 10:05 PM
Mines not working so great, keep getting this error.

When you set up the task, at the bottom where it has the string, it just says .php at the end, should we put potd there? I try to do it without it and it says invalid file name.
but when I try to run the task, it comes up with the above error.

You have to enter

./includes/cron/potd.php

Are you still getting this error?

JohnnieOO
07-09-2009, 02:06 PM
Possible to work with Photopost Pro?

Tilly
07-09-2009, 03:46 PM
installed...

VBadvanced Demo: http://www.sportbikex.com/index.php

Subforum Dumb Demo: http://www.sportbikex.com/forumdisplay.php?f=22

0ptima
07-09-2009, 11:35 PM
Possible to work with Photopost Pro?

Dont have PP pro, but feel free to convert this hack and release it for PP pro.

0ptima
07-09-2009, 11:36 PM
installed...

VBadvanced Demo: http://www.sportbikex.com/index.php

Subforum Dumb Demo: http://www.sportbikex.com/forumdisplay.php?f=22

Looks sharp !:)

christon26
07-17-2009, 06:31 AM
Hi! I have this installed and think it's great :) Is it possible to have the date for the day the thread posted inserted into the title of the thread (i.e.. Layout of the Day - 17 July - PhotoName), and also a text link back to the gallery image in the post? If so how would I add those lol

BroCya
07-17-2009, 09:30 AM
Pro!! nice

Raptor
07-18-2009, 10:07 PM
confirmed working with vBgallery 2.5 and vBulletin 3.8.3 :)

Tilly
07-19-2009, 02:52 PM
After using it for a couple weeks the only complaint I have is that it seems to select the same photo time and time again, it would be nice if there was a feature to not allow the same photo to show up twice within a user defined time limit...say a month or a year...

0ptima
07-24-2009, 11:57 PM
Hi! I have this installed and think it's great :) Is it possible to have the date for the day the thread posted inserted into the title of the thread (i.e.. Layout of the Day - 17 July - PhotoName), and also a text link back to the gallery image in the post? If so how would I add those lol


Play around with the variables $vbtitle and $vbgtitle. For the date, look here
http://ca3.php.net/manual/en/function.date.php

For a link back to the gallery, I think you had to enable html in your posts, which is not recommended.

0ptima
07-24-2009, 11:58 PM
After using it for a couple weeks the only complaint I have is that it seems to select the same photo time and time again, it would be nice if there was a feature to not allow the same photo to show up twice within a user defined time limit...say a month or a year...

You need to be less restrictive on your selection to avoid getting duplicates so quickly.

0ptima
07-24-2009, 11:59 PM
confirmed working with vBgallery 2.5 and vBulletin 3.8.3 :)


Awesome !

christon26
07-25-2009, 09:25 PM
You need to be less restrictive on your selection to avoid getting duplicates so quickly.

Hi, I am having this same problem...and there's only one category I have excluded...can a function be added to check if an image has been posted, say within the last month (or a user defined period) and exclude any duplicates?

And I just saw the previous reply to me...I will play around with that, thanx!

0ptima
07-26-2009, 12:31 AM
Hi, I am having this same problem...and there's only one category I have excluded...can a function be added to check if an image has been posted, say within the last month (or a user defined period) and exclude any duplicates?

And I just saw the previous reply to me...I will play around with that, thanx!

Christon, I got your email about this. I am busy now, but will take a look to see how much work would be involved to prevent duplicate image selection.

christon26
07-26-2009, 04:17 AM
Thank you! No hurry :)

christon26
08-03-2009, 04:08 AM
Don't wanna be a pest...just wanna make sure you don't forget about me though LOL *grinz*

tpearl5
06-10-2011, 04:21 PM
any chance of updating this for vb4 and vbGallery 3?