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)

Zorck 10-22-2007 04:44 PM

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 10-22-2007 10:56 PM

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 10-23-2007 12:28 AM

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 10-23-2007 12:35 AM

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

PHP Code:

// select the random image from the photo gallery
$result$vbulletin->db->query_read("SELECT imageid, userid, username, filename, title, description
       FROM " 
TABLE_PREFIX "ppgal_images 
       WHERE catid IN (
$includecatids)
       AND width  > 
$width
       AND views > 
$views      
       ORDER BY RAND(NOW()) 
       LIMIT 1"
); 

with this


PHP Code:

// select the random image from the photo gallery
$result$vbulletin->db->query_read("SELECT imageid, userid, username, filename, title, description
       FROM " 
TABLE_PREFIX "ppgal_images 
       WHERE  width  > 
$width
       AND views > 
$views      
       ORDER BY RAND(NOW()) 
       LIMIT 1"
); 


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 10-23-2007 01:00 AM

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

0ptima 10-23-2007 09:15 PM

Quote:

Originally Posted by goblues (Post 1366392)
Me neither. :( I was referring to the CMPS module. I wish I had photopost pro.:D

:o oops! I dont use CMPS, please go ahead and create a module.

993ti 10-23-2007 09:51 PM

It creates a topic every minute after midnight, lol.
Not sure what causes it but i've set it to execute at 00.01 now.
Will check what it does with that setting :)

goblues 10-23-2007 10:02 PM

Mine did the same thing the first night, however the second night went fine. :confused:

0ptima 10-23-2007 10:37 PM

Quote:

Originally Posted by 993ti (Post 1367048)
It creates a topic every minute after midnight, lol.
Not sure what causes it but i've set it to execute at 00.01 now.
Will check what it does with that setting :)

Sorry about posting a screen shot of the cron with an incorrect setting. I updated the screen shot in this thread and in the zip file.

TRR 10-24-2007 12:48 AM

0ptoma, would you ever consider doing this same exact thing from vbclassifieds, and zoints profiles? I really like this feature. :)


All times are GMT. The time now is 01:31 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.01179 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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