vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - vbGallery Addon: Photo of the Day (https://vborg.vbsupport.ru/showthread.php?t=160782)

0ptima 10-21-2007 10:00 PM

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

Tested on Vbulletin 3.6.4 and vbGallery 2.2
Confirmed to work on Vbulletin 3.6.8 and vbGallery 2.3
Confirmed to work on Vbulletin 3.7.0 and vbGallery 2.4.3
Confirmed to work on Vbulletin 3.8.2 and vbGallery 2.4.3
Confirmed to work on Vbulletin 3.8.3 and vbGallery 2.5

Please click install if you use this script.

This hack has been ported to PhotoPlog by TCooper.

goblues 10-21-2007 11:27 PM

Good work!
Confirmed working on 3.6.8 and VBGallery 2.3

0ptima 10-22-2007 01:57 AM

Quote:

Originally Posted by goblues (Post 1365514)
Good work!
Confirmed working on 3.6.8 and VBGallery 2.3

Thanks, I updated the first post to include this info.

Zachariah 10-22-2007 05:18 AM

:cool: - I'll take a look

GrendelKhan{TSU 10-22-2007 06:16 AM

doh!

got this when trying on 3.6.8 and vbGallery 2.2

Code:

Warning[/b]: Invalid argument supplied for foreach() in /includes/cron/potd.php on line 70
any ideass?

scratch that! I was being a n00b and didn't update the php file. :/

that said, I got a ton of categories... and its a pain to list em all. Can you add an "all categories" default or something? like 0 = all categories. or however that works. and make it so you EXCLUDE certain ones?

GrendelKhan{TSU 10-22-2007 06:49 AM

doh!! weird.. worked once...
now all I get is this error:

"Parse error: syntax error, unexpected '?' in /home/***mydb*******/public_html/forums/includes/cron/potd.php on line 132"

nvm AGAIN!! rofl found the problem ftp cut off a ">" at the end for some reason. (lol isn't this the best kinda of tech support ever?! lol)

GrendelKhan{TSU 10-22-2007 07:05 AM

now all we need is a vbCMPS add-on for this and its perfect!! :D

projectego 10-22-2007 08:02 AM

Thanks a bunch! :D

Subah 10-22-2007 10:29 AM

Thank :)

trancetopia 10-22-2007 11:53 AM

Hi, are you planning to release a photopost pro version of this? Pretty please!


All times are GMT. The time now is 02:29 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.01060 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (1)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