Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
vbGallery Addon: Photo of the Day Details »»
vbGallery Addon: Photo of the Day
Version: 1.00, by 0ptima 0ptima is offline
Developer Last Online: Jul 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.8.2 Rating:
Released: 04-07-2009 Last Update: Never Installs: 34
Re-useable Code Additional Files Translations  
No support by the author.

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.

Download Now

File Type: zip potd.zip (86.1 KB, 214 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-08-2009, 01:59 PM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screen shot of the new thread and randomly selected picture from the gallery




Suggested settings for the cron job.


Reply With Quote
  #3  
Old 04-08-2009, 02:28 PM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work, thank you!

Installed
Reply With Quote
  #4  
Old 04-09-2009, 06:51 PM
Wrams Wrams is offline
 
Join Date: Oct 2008
Location: Bristol, UK
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea works a treat...Installed!!
Reply With Quote
  #5  
Old 04-10-2009, 08:23 AM
ricoche's Avatar
ricoche ricoche is offline
 
Join Date: Oct 2002
Location: Nagano, Japan
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 04-10-2009, 11:44 AM
0ptima 0ptima is offline
 
Join Date: Feb 2002
Posts: 346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ricoche View Post
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.
Reply With Quote
  #7  
Old 05-23-2009, 01:36 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 05-24-2009, 04:37 AM
lm3a.net's Avatar
lm3a.net lm3a.net is offline
 
Join Date: May 2009
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OMG Greaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaat work man

thank u,
Reply With Quote
  #9  
Old 05-28-2009, 12:29 AM
sunnycher sunnycher is offline
 
Join Date: Mar 2005
Location: FL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 05-28-2009, 01:55 PM
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Posts: 690
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:56 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05101 seconds
  • Memory Usage 2,308KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete