PDA

View Full Version : Add-On Releases - TC - Photo Of The Day (Photoplog)


TCooper
12-23-2007, 10:00 PM
Info:
This mod has been tested on PhotoPlog: The Lite Gallery (https://vborg.vbsupport.ru/showthread.php?t=101368) and 0ptima's (http://www.photoplog.com]Photoplog Pro[/URL]. This idea came from [URL="https://vborg.vbsupport.ru/member.php?u=6106) hack vbGallery Addon: Photo of the Day (https://vborg.vbsupport.ru/showthread.php?t=160782). I have converted that hack into a product and to a file upload. Settings are now in the admin area under vbulletin options.

If you use vbGallery Addon: Photo of the Day (https://vborg.vbsupport.ru/showthread.php?t=160782) and like something like this with the settings and such I was thinking about making one but as I don't use vbGallery I have no need but will if others are interested. Just let me know.

Requirements:

vBulletin 3.7.0 Beta 3 (http://www.vbulletin.com)
Photoplog Lite (https://vborg.vbsupport.ru/showthread.php?t=101368) or Photoplog Pro (http://www.photoplog.com)


Features:

On/Off Enable or Disable Mod
On/Off Close Thread After Post
Ability To Add Default Title To Post
Forum Selector
Ability To Choose Who Posted
Ability To Choose What Category The Images Come From
Ability To Select Min Amount Views Required
Lite & Pro Version Automatic Dectection
Choose size of image in post


Coming Soon:

Ability To Choose New Thread Or Reply To Current Thread (May be delayed having issues with figuring datamanager for posting to a thread)
Choose Thread ID (Delayed as part of feature above)


Installation:

Import XML File (As A Product): AdminCP > Plugin System > Manage Products > [Add/Import Product]
Upload tc_potd.php into the cron dir


Notes:

This is my first hack and new to php & mysql and there is a good chance there are bugs that need to be fixed. I would appreciate any input on how to clean code up and so on and even get someone to help code more options.
To set hack options go to: AdminCP > vBulletin Options > TC - Photo Of The Day
If you like this hack please click INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=166025) and Nominate for MOTM (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=166025&type=1)


Versions:
v1.1.0 - January 1, 2008
- Changed forum id to a prepopulated selection box
- Added feature creates thread stating no new images for the potd
- Select image size to be posted
- Minor code changes
v1.0.2 - December 24, 2007
- Added Lite Version & Pro Version Detection
v1.0.1 - December 23, 2007
- Added Version Check URL
- Added Product URL
v1.0.0 - December 23, 2007
- First Release


LIVE DEMO (http://fraggersforever.com/forumdisplay.php?f=38)

TCooper
12-24-2007, 03:05 AM
CHANGELOG

Version 1.1.0 - 1/1/2008
- Changed forum id to a prepopulated selection box
- Added feature creates thread stating no new images for the potd
- Select image size to be posted
- Minor code changes

Version 1.0.2 - 12/24/2007
- Added Lite & Pro Version Detected Automatically

Version 1.0.1 - 12/23/2007
- Added Version Check URL
- Added Product URL

Version 1.0.0 - 12/23/2007
- First release

69lakalle
12-24-2007, 04:22 PM
niceeeeeee is it just me or the site demo is not workin
Firefox can't find the server at www.fraggersforever.com.

TCooper
12-24-2007, 04:25 PM
Well for some reason the .com domain has been acting up. I haven't been able to determine why it goes out from time to time as all my other domains seem to work on that same server and all my domains I go through enom so not sure if it is dns or what I have that domain registered as a .org and .net as I got those later on and havent made it so you can browse fully using those as it calls for most images by the .com domain so if the .com is not working there are going to be broken images.
*After I posted this I went and checked the site out and it is up and running using the .com domain and I changed the url for live to point directly to the forum itself.

TCooper
12-24-2007, 09:58 PM
You using pro? This should automatically set a cron to run once a day and submits a new thread then with a pic. If there is no picture to be posted nothing should post. I plan on having an option to have a post say no new pictures to pick a potd from.

hocphp
12-24-2007, 10:00 PM
i installed v1.0.2 . thx TCooper

Sofia
12-25-2007, 09:52 AM
Nice :) Thanks a lot ;)

TCooper
12-25-2007, 09:10 PM
thanks alot. first time releasing anything and new to coding but vbulletin makes it lot easier it seems. Feedback and suggestions are welcome and will try to support this as much as possible.

TCooper
12-25-2007, 09:11 PM
what error do u get? I reuploaded the zip file as i may have uploaded the wrong one.

TCooper
12-25-2007, 11:27 PM
I have now bought and tried the pro version and it appears to have worked correctly. Remember if you have any issues please give details other than you have had an error. Please tell me when you encountered the error and what the error said if anything was said. To see if this works without waiting for a day to go by, I would suggest to go to your Admincp->Scheduled Tasks->Scheduled Task Manager and find TC - Photo Of The Day (Photoplog) and click run task.

KURTZ
12-26-2007, 12:20 AM
the demo's url doesn't work ... :(

TCooper
12-26-2007, 03:04 PM
It should be up now as I was working on it for a few afterwards.

Feckie (Roger)
12-31-2007, 12:47 PM
I istalled it and it worked on 1 post,
then I get

Warning: Invalid argument supplied for foreach() in /includes/cron/tc_potd.php on line 105
No Forum ID!

and the forum is set

TCooper
12-31-2007, 10:53 PM
I have not made all error messages appear what is actually happening but my guess is either invalid userid, or no more images are available for potd. if all images have been used for potd then it will throw an error I plan on integrating a feature to make it post a new thread saying there were no new pics for the potd. But either way check to see if you have anymore pics available for potd if you need help you can contact me to login and check if need be.

Feckie (Roger)
01-01-2008, 09:57 AM
I have not made all error messages appear what is actually happening but my guess is either invalid userid, or no more images are available for potd. if all images have been used for potd then it will throw an error I plan on integrating a feature to make it post a new thread saying there were no new pics for the potd. But either way check to see if you have anymore pics available for potd if you need help you can contact me to login and check if need be.

Then that would be the problem...........

I am testing it on my pc and only have 1 pic.....

will try more pics :rolleyes:

TCooper
01-01-2008, 05:25 PM
Ok let me know how it goes. Don't forget to hit install and I just made a new update lastnight. It makes a new thread like before but stating no more pics that match the criteria could be found or what ever. Will see about phrases here shortly for the posts and such.

Feckie (Roger)
01-04-2008, 03:04 PM
Ok let me know how it goes. Don't forget to hit install and I just made a new update lastnight. It makes a new thread like before but stating no more pics that match the criteria could be found or what ever. Will see about phrases here shortly for the posts and such.

Ok i am now getting a red cross

there seems to be a // in the addreass for the image

TCooper
01-05-2008, 04:53 AM
Was it in the new updated version? Where was the extra / as I don't see it on my board, if needed pm a link to see it or which ever is easier for you.

Mrdby
01-08-2008, 12:56 AM
thanks

TCooper
01-08-2008, 02:30 AM
thanks

you are very welcome.

Mrdby
01-24-2008, 06:59 PM
my image doesn't show up

TCooper
01-27-2008, 01:44 AM
Want to pm me the site so i can see whats up?

safakuygur
02-04-2008, 01:53 AM
Warning: Unknown(/includes/photoplog_prefix.php): failed to open stream: No such file or directory in /admincp/plugin.php(1497) : eval()'d code on line 16

Fatal error: (null)() [function.require]: Failed opening required '/home/sanaacom/public_html/sevdimseni/includes/photoplog_prefix.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/sevdimseni/admincp/plugin.php(1497) : eval()'d code on line 16

???? help

EvErDrEaMs
02-04-2008, 03:08 AM
nice thanks :)

TCooper
02-04-2008, 04:17 AM
Warning: Unknown(/includes/photoplog_prefix.php): failed to open stream: No such file or directory in /admincp/plugin.php(1497) : eval()'d code on line 16

Fatal error: (null)() [function.require]: Failed opening required '/home/sanaacom/public_html/sevdimseni/includes/photoplog_prefix.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/sevdimseni/admincp/plugin.php(1497) : eval()'d code on line 16


???? help
What version of vb and photoplog are you using? Where did you see that error?

TCooper
02-04-2008, 04:26 AM
nice thanks :)
No prob. dont forget to hit install ;)

macc
02-22-2008, 07:10 PM
hello!

i get message when i test scheduled task - Warning: Invalid argument supplied for foreach() in /includes/cron/tc_potd.php on line 105


i use vbulletin 3.7.0 beta 5 and last photoplog ver (downloaded here) ...

some help?

regards
macc

katilkuzu
02-26-2008, 07:57 AM
i do not know what is the problem but it is not creating new thread. uploaded new photo but still waiting to crate a new thread :S

butch3r
02-29-2008, 06:32 AM
Feature request:

do you plan to add tags for thread?

Mesohu
02-29-2008, 12:18 PM
can i store images in another subdomain / host ?
like : images.mydomain.com

TCooper
03-16-2008, 05:15 AM
can i store images in another subdomain / host ?
like : images.mydomain.com
You should be able to do so.

Feature request:

do you plan to add tags for thread?
I will look into it and see what is involved for you.

i do not know what is the problem but it is not creating new thread. uploaded new photo but still waiting to crate a new thread :S
What versions of vb are you using?

GrendelKhan{TSU
03-31-2008, 03:16 PM
great job!!

Official request for teh VBADVANCED GALLERY of this !!!
:D :D

Guest210212002
03-31-2008, 03:25 PM
So how is the POTD determined? Solely on views?

dbirosel
04-01-2008, 03:25 AM
demo doesn't work? :(

traxxadd
04-18-2008, 01:40 AM
Stupid question- i installed and no photo has been uploaded to forum! How long does it take for first photo to be uploaded a full day or what??

Mrdby
04-20-2008, 12:09 PM
I TRIED TO UNINSTALL

Warning: Unknown(/includes/photoplog_prefix.php): failed to open stream: No such file or directory in /admincp/plugin.php(1497) : eval()'d code on line 16
Fatal error: (null)(): Failed opening required '/*****/local/home/********t/forum/includes/photoplog_prefix.php' (include_path='.:/*****/shared/apache/libexec/php4ext/php/') in /****/local/home******/forum/admincp/plugin.php(1497) : eval()'d code on line 16

WHY?

jim6763nva
04-27-2008, 10:26 AM
Great addon but I have one question. Is there any reason why when new threads get created by this addon, they end up in the moderation queue? The account that is creating the threads has the follow forum permissions set to yes for that forum, so I'm kind of at a loss. I don't know what's causing it.

Thanks in advance,
Jim

safakuygur
04-27-2008, 02:17 PM
WIPE, WANT, BECOME, IS GIVING THIS MISTAKE

Warning: require_once([path]/includes/photoplog_prefix.php) [function.require-once]: failed to open stream: No such file or directory in [path]/admincp/plugin.php(1504) : eval()'d code on line 16

Fatal error: require_once() [function.require]: Failed opening required '/home/saacom/public_html/forums/includes/photoplog_prefix.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/saacom/public_html/forums/admincp/plugin.php(1504) : eval()'d code on line 16

Mrdby
04-30-2008, 01:36 AM
3.7.0 final release?

Mrdby
04-30-2008, 10:53 AM
I TRIED TO UNINSTALL

Warning: Unknown(/includes/photoplog_prefix.php): failed to open stream: No such file or directory in /admincp/plugin.php(1497) : eval()'d code on line 16
Fatal error: (null)(): Failed opening required '/*****/local/home/********t/forum/includes/photoplog_prefix.php' (include_path='.:/*****/shared/apache/libexec/php4ext/php/') in /****/local/home******/forum/admincp/plugin.php(1497) : eval()'d code on line 16

WHY?

anybody?

Mrdby
05-01-2008, 10:59 PM
waiting

behcet
05-05-2008, 07:53 AM
Bunun vbgallery için olanı varmı acaba ?
B en bunu kurdum aynı hatayı bendede veriyor. Uninstal yapamıyorum.

jim6763nva
05-11-2008, 12:43 AM
I just tried to uninstall this and got the photoplog_prefix.php error. Has there been any resolution?

Doctor Death
05-11-2008, 06:21 PM
This mod works on my board... but it seems that unless they are my (administrator photos) they all appear as red "X" (Photo not found). You can, however, access them through link.

Any idea?

Recommend this mod also be able to be used on 3.7 albums.

Bundy
05-15-2008, 09:25 AM
I can not remove this mod!

Bundy:mad:

Mrdby
05-22-2008, 07:01 PM
why can't in uninstall this without some type of error?

Mrdby
06-17-2008, 11:58 PM
why can't i uninstall this?

Mrdby
07-15-2008, 11:24 AM
anybody?????

Mrdby
07-24-2008, 06:36 PM
this will not let me uninstall!!!

Doctor Death
07-26-2008, 05:02 PM
Tried to Uninstall this since I now just use albums and dont use photoplog... I get this error...

Warning: Unknown([path]/includes/photoplog_prefix.php): failed to open stream: No such file or directory in [path]/admincp/plugin.php(1512) : eval()'d code on line 16

Fatal error: (null)() [function.require]: Failed opening required '/home/vyxxxabh/public_html/forums/includes/photoplog_prefix.php' (include_path='/usr/lib/php:.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /home/vyxxxabh/public_html/forums/admincp/plugin.php(1512) : eval()'d code on line 16

Mrdby
10-01-2008, 10:15 PM
waiting`!!!

Doctor Death
01-29-2009, 04:28 PM
I have also tried reinstalling photoplog but to no success.

anyone have another idea of how to get rid of this?

saqib_jutt
02-11-2009, 01:06 AM
Tried to Uninstall this since I now just use albums and dont use photoplog... I get this error...


Hi..

I am also trying to uninnstall this hack and getting this msg.

Warning: require_once([path]/includes/photoplog_prefix.php) [function.require-once]: failed to open stream: No such file or directory in [path]/admincp/plugin.php(1522) : eval()'d code on line 16

Fatal error: require_once() [function.require]: Failed opening required '/home/content/j/a/g/jaguarxtype/html/forums/includes/photoplog_prefix.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/j/a/g/jaguarxtype/html/forums/admincp/plugin.php(1522) : eval()'d code on line 16

PLEASE URGENT ASSISTENT REQUIRED.
THANX
REGARDS.

Mrdby
05-10-2009, 12:00 PM
why can't i uninstall this?

Warning: Unknown([path]/includes/photoplog_prefix.php): failed to open stream: No such file or directory in [path]/admincp/plugin.php(1522) : eval()'d code on line 16
Fatal error: (null)(): Failed opening required '/hsphere/local/home/****/****.net/forum/includes/photoplog_prefix.php' (include_path='.:/hsphere/shared/apache/libexec/php4ext/php/') in /hsphere/local/home/****/***.net/forum/admincp/plugin.php(1522) : eval()'d code on line 16

Anopheles
06-06-2011, 05:40 PM
By the Way:
Run's on vBulletin 4.1.3 PL1;-)

tumanix
08-04-2011, 09:30 AM
hello,

give something for the umg gallery?

thx