vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Add-On Releases - TC - Photo Of The Day (Photoplog) (https://vborg.vbsupport.ru/showthread.php?t=166025)

TCooper 12-23-2007 10:00 PM

TC - Photo Of The Day (Photoplog)
 
Info:
This mod has been tested on PhotoPlog: The Lite Gallery and 0ptima's hack vbGallery Addon: Photo of the Day. 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 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:
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 and Nominate for MOTM

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

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
Quote:

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

Code:

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

Quote:

Originally Posted by TCooper (Post 1412912)
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

Quote:

Originally Posted by TCooper (Post 1413270)
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

Quote:

Originally Posted by Mrdby (Post 1417505)
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

Quote:

Originally Posted by safakuygur (Post 1435756)
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

Quote:

Originally Posted by EvErDrEaMs (Post 1435784)
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 -
Code:

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

Quote:

Originally Posted by Mesohu (Post 1453617)
can i store images in another subdomain / host ?
like : images.mydomain.com

You should be able to do so.

Quote:

Originally Posted by butch3r (Post 1453460)
Feature request:

do you plan to add tags for thread?

I will look into it and see what is involved for you.

Quote:

Originally Posted by katilkuzu (Post 1451263)
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

Quote:

Originally Posted by Mrdby (Post 1495129)
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?


All times are GMT. The time now is 06:05 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.01438 seconds
  • Memory Usage 1,830KB
  • 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_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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