vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - vbGallery Addon: Photo of the Day (https://vborg.vbsupport.ru/showthread.php?t=210659)

0ptima 04-07-2009 10:00 PM

vbGallery Addon: Photo of the Day
 
1 Attachment(s)
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 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



Suggested settings for the cron job.



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

Quote:

Originally Posted by ricoche (Post 1788055)
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.
Quote:

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

Quote:

Originally Posted by TNCclubman (Post 1818790)
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

Quote:

Originally Posted by ArnyVee (Post 1815753)
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

Quote:

Originally Posted by sunnycher (Post 1818501)
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

Quote:

Originally Posted by JohnnieOO (Post 1845772)
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

Quote:

Originally Posted by Tilly (Post 1845845)

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

Quote:

Originally Posted by christon26 (Post 1850380)
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

Quote:

Originally Posted by Tilly (Post 1851678)
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

Quote:

Originally Posted by Raptor (Post 1851375)
confirmed working with vBgallery 2.5 and vBulletin 3.8.3 :)


Awesome !

christon26 07-25-2009 09:25 PM

Quote:

Originally Posted by 0ptima (Post 1854918)
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

Quote:

Originally Posted by christon26 (Post 1855380)
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?


All times are GMT. The time now is 04:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01271 seconds
  • Memory Usage 1,778KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (29)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete