vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   three random image script/code (https://vborg.vbsupport.ru/showthread.php?t=206074)

Chimpie 02-21-2009 12:55 AM

three random image script/code
 
I would like to have a module in vBadvanced pull three random images from a directory, making sure that it doesn't pull the same image twice in one load, and have the images each linked to a specific page.

For example:
When the page loads, the module shows image1.jpg, image2.jpg and image3.jpg. If you click on image1 it takes you to pageid=link1. Click on image2.jpg, you go to pageid=link2, and so forth.

Next page load may show image1, image6, and image4, with clicks taking you to link1, link6 and link4 respectively.

Is this possible? Does anyone know how to code this? Would anyone be willing to code this for me? :D

Dismounted 02-21-2009 02:55 AM

Quote:

Originally Posted by Chimpie (Post 1750297)
Is this possible?

Nearly everything is.
Quote:

Originally Posted by Chimpie (Post 1750297)
Does anyone know how to code this?

I'll be surprised if there isn't.
Quote:

Originally Posted by Chimpie (Post 1750297)
Would anyone be willing to code this for me?

If you know PHP, we can guide you through it. However, if you don't, you will have to find someone (the best chance you have is by posting a paid request).


All times are GMT. The time now is 07:04 AM.

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.01044 seconds
  • Memory Usage 1,711KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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