vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - VB Pro Garage Timeslips (https://vborg.vbsupport.ru/showthread.php?t=236888)

Dylanblitz 10-30-2011 02:51 AM

Quote:

Originally Posted by cdoyle (Post 2262028)
Turning the cache off, fixes the latest image block. Also on forum home, is the 'random image' using the same query as the 'latest image'? because I noticed that the images appear to be the same ones that are displayed in the Latest Image block.

I would really like forumhome to just randomly select any image from any garage in the database. Seeing the same images over and over, is not making users want to click.

Thanks for the fix on the comments too, that's all working now.

On the forumhome, you only have 8 vehicles with images. The block will only show 1 image from each vehicle and it's the vehicles primary image. So you really only have 8 images to cycle through right now. When you have more vehicles in there it will start showing a bigger range of images.

cdoyle 10-30-2011 01:10 PM

Quote:

Originally Posted by Dylanblitz (Post 2262814)
On the forumhome, you only have 8 vehicles with images. The block will only show 1 image from each vehicle and it's the vehicles primary image. So you really only have 8 images to cycle through right now. When you have more vehicles in there it will start showing a bigger range of images.

Is there anyway to make it pick a random image from the db, not just the primary images?

BajaBoatOwners 10-30-2011 06:06 PM

Is there a setting or template change to allow for # of engines option? We have mainly boats on our forum most have 2 engines

cdoyle 11-01-2011 02:57 PM

Quote:

Originally Posted by Dylanblitz (Post 2262814)
On the forumhome, you only have 8 vehicles with images. The block will only show 1 image from each vehicle and it's the vehicles primary image. So you really only have 8 images to cycle through right now. When you have more vehicles in there it will start showing a bigger range of images.

Also, I changed my primary image and it's still showing the last image I uploaded.
Is there any way, to make it just select a random image from the db?

Dylanblitz 11-02-2011 07:13 PM

Quote:

Originally Posted by BajaBoatOwners (Post 2262967)
Is there a setting or template change to allow for # of engines option? We have mainly boats on our forum most have 2 engines

No real setting for that, if you want a basic 2 engines, 3 engines type field it can be done through a plugin though.

Dylanblitz 11-02-2011 07:23 PM

Quote:

Originally Posted by cdoyle (Post 2263467)
Also, I changed my primary image and it's still showing the last image I uploaded.
Is there any way, to make it just select a random image from the db?

ACP -> Plugins&Products -> Plugin Manager
Edit the plugin
VB Pro Garage Forum Home Pictures

Find

PHP Code:

$pic_query $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " TABLE_PREFIX "garage_images gi LEFT JOIN " .TABLE_PREFIX "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' GROUP BY gi.vehicle_id" $orpic); 

replace with

PHP Code:

$pic_query $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " TABLE_PREFIX "garage_images gi LEFT JOIN " .TABLE_PREFIX "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' ORDER BY rand(NOW()) LIMIT " $displayrecords); 

That should do it

BajaBoatOwners 11-02-2011 07:39 PM

Quote:

Originally Posted by Dylanblitz (Post 2263852)
No real setting for that, if you want a basic 2 engines, 3 engines type field it can be done through a plugin though.

Where would I find that or how would I add that? I'd like to have choices of 1,2,3 engines.

cdoyle 11-03-2011 03:22 AM

Quote:

Originally Posted by Dylanblitz (Post 2263855)
ACP -> Plugins&Products -> Plugin Manager
Edit the plugin
VB Pro Garage Forum Home Pictures

Find

PHP Code:

$pic_query $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " TABLE_PREFIX "garage_images gi LEFT JOIN " .TABLE_PREFIX "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' GROUP BY gi.vehicle_id" $orpic); 

replace with

PHP Code:

$pic_query $vbulletin->db->query("SELECT gi.vehicle_id, gi.attach_thumb_location, guv.user_id FROM " TABLE_PREFIX "garage_images gi LEFT JOIN " .TABLE_PREFIX "garage_user_vehicle guv ON gi.vehicle_id = guv.vehicle_id WHERE guv.active = '1' ORDER BY rand(NOW()) LIMIT " $displayrecords); 

That should do it

that worked perfectly thank you!

One last question, and I think I'll have this exactly like I want.
The latest image within the garage, does not seem to be updating. I just added an image, and it's not appearing there.

Where is this query for this located?

Dylanblitz 11-03-2011 07:53 PM

Quote:

Originally Posted by BajaBoatOwners (Post 2263859)
Where would I find that or how would I add that? I'd like to have choices of 1,2,3 engines.

I can create it for you. Do you just want a select dropdown with 1 2 and 3 as the options with the text for it "# of engines"?

Dylanblitz 11-03-2011 08:02 PM

Quote:

Originally Posted by cdoyle (Post 2263975)
that worked perfectly thank you!

One last question, and I think I'll have this exactly like I want.
The latest image within the garage, does not seem to be updating. I just added an image, and it's not appearing there.

Where is this query for this located?

Is it a vehicle image? It is in the order of the last updated date for the images, or do you want to open it to all images, not just vehicle images?
I restricted it to vehicle images because the timeslip images are usually just a scan of the timeslip, and those aren't too exciting to display in the blocks heh


All times are GMT. The time now is 05:01 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.02188 seconds
  • Memory Usage 1,763KB
  • 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
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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