vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=160782

vbGallery Addon: Photo of the Day
by 0ptima
22 Oct 2007 00:30

3 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)

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 22 Oct 2007 01:27

Good work!
Confirmed working on 3.6.8 and VBGallery 2.3

0ptima 22 Oct 2007 03:57

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 22 Oct 2007 07:18

:cool: - I'll take a look

GrendelKhan{TSU 22 Oct 2007 08:16

doh!

got this when trying on 3.6.8 and vbGallery 2.2


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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 22 Oct 2007 08:49

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 22 Oct 2007 09:05

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

projectego 22 Oct 2007 10:02

Thanks a bunch! :D

Subah 22 Oct 2007 12:29

Thank :)

trancetopia 22 Oct 2007 13:53

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

Zorck 22 Oct 2007 18:44

Quote:

Originally Posted by trancetopia (Post 1365832)
Hi, are you planning to release a photopost pro version of this? Pretty please!


That well be nice!

goblues 23 Oct 2007 00:56

Quote:

Originally Posted by GrendelKhan{TSU (Post 1365710)
now all we need is a vbCMPS add-on for this and its perfect!! :D

If one isn't made by this weekend, I will take a look at it.

0ptima 23 Oct 2007 02:28

Quote:

Originally Posted by trancetopia (Post 1365832)
Hi, are you planning to release a photopost pro version of this? Pretty please!

Quote:

Originally Posted by goblues (Post 1366320)
If one isn't made by this weekend, I will take a look at it.

I dont have access to photo post pro, so go ahead and port the hack.

0ptima 23 Oct 2007 02:35

Quote:

Originally Posted by GrendelKhan{TSU (Post 1365687)
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?

I'll try to add that option this weekend. In the mean time, you can replace this SQL


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with this



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


The only problem is that it will select from private categories as well. Once I update the hack, ill have it exclude the private categories.

goblues 23 Oct 2007 03:00

Quote:

Originally Posted by 0ptima (Post 1366371)
I dont have access to photo post pro, so go ahead and port the hack.

Me neither. :( I was referring to the CMPS module. I wish I had photopost pro.:D


All times are GMT. The time now is 09:41.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.