vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Rotating Pool of Images? (https://vborg.vbsupport.ru/showthread.php?t=304241)

JBc3 11-06-2013 11:59 PM

Rotating Pool of Images?
 
Hi all - not sure if this has been covered - or at least specifically for what I'm asking. I searched and found a number of links, but in reading them none seemed to be exactly what I'm after.

If anything is please link or point me to it.

Basically - I want to have a pool of vendor images that are all available to see in my sidebar - but are changed up in their ordering each time a page is loaded or refreshed. An exact example is right here :: www.pro-touring.com -- simply hit refresh a couple times and you'll see the images are all there, just randomized in order.

Any thoughts?
Thanks a lot!

tbworld 11-07-2013 12:42 AM

I did not see anything rotate on that page, I tried the latest Firefox and Chrome with no cache.

Everything is possible, but you would use more server resources implementing that method unless it was carefully coded.

JBc3 11-07-2013 12:47 AM

They don't "rotate" per say - the images simply switch positions, randomly. Try clicking on the forum and them a thread - you'll see the side bar images change locations randomly.

Should I simply do a straight non-changing list of images? Would that make more sense?

tbworld 11-07-2013 01:20 AM

I thought you were referring to the CMS, now I see what you are getting at.

That should not be too hard to implement. I was checking to see if they were doing it dynamically (JavaScript). Looks to me as if they are creating the HTML randomized in PHP and outputting the HTML through a variable to the template. This can easily be handled through a plugin.

JBc3 11-07-2013 01:24 AM

That's what it seems like to me as well. I actually used to have the code - I lost it a couple years back though when my old comp crashed.

tbworld 11-07-2013 01:31 AM

Quote:

Originally Posted by JBc3 (Post 2458774)
Should I simply do a straight non-changing list of images? Would that make more sense?

Ignore my first post, I was referring to the CMS. :)


All times are GMT. The time now is 05:54 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.01091 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete