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!


All times are GMT. The time now is 08:39 AM.

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.01605 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete