Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Random Images Anywhere Details »»
Random Images Anywhere
Version: .1, by jugo jugo is offline
Developer Last Online: Oct 2009 Show Printable Version Email this Page

Version: 3.5.0 RC2 Rating:
Released: 08-15-2005 Last Update: 08-15-2005 Installs: 121
Uses Plugins
 
No support by the author.

1st of all I really love this plugin stuff.

Now for the Release. Please be gentle as this is my first release ever.

I want to thank Loneranger because I used his XML file as a template for mine. This was fun to make. I hope you guys enjoy it.

This will allow you to display random images anywhere you want.

Features:
  • Reads from a specified directory.
  • Only reads files whose filenames contain your specified text delimeter.
  • Can specify file extensions to display (GIF JPG PNG)
  • Perfect for babe of the week, etc.

See a working example here: http://www.freaks-network.com/forum/

The header images on the left will change whenever the page is refreshed.

Note: This generates a variable. Just insert the following wherever you want the random image to appear:

PHP Code:
$randpic 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-19-2005, 11:52 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Brinnie
so can i display it on an extenal page or a completly different website if I wanted?

Ummmm...yes to the top one as long as you include GLOBAL.PHP (correct me if I am wrong Master Coders) :nervous: ..

And no to the second one because it creates the variable for the current page.

Quote:
Originally Posted by Living in music
In order to works,how do I declare(means that:to view 2 or 3 image,how I fill that blank) information at Image Filename Delimeter frame for this mod?
if your delimeter is "rand" then the filenames of your random images shoulr start or contain "rand" in it.

for example, in your images directory you have the following files:

image_01.gif
paramond.lpg
test.png
randcrazy.gif
randplay.png
collosal.gif
randjugo.jpg

Since the delimeter is "rand" the only files that will be cycled in the script are:

randcrazy.gif
randplay.png
randjugo.jpg

Quote:
Originally Posted by GrendelKhan{TSU
did I do this right?
[list=1]for the PATH and URL to Images, I used:
h ttp://ww w.mysitename.com/forums/images/random/
(I created a folder called "random")

The URL is correct BUT the PATH has to be the filesystem path as in "/home/name/public_html/forums/images/random/"
Reply With Quote
  #23  
Old 08-19-2005, 12:11 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I use this in multiple locations on my site? Say one in a portal and one in a forum dedicated to a specific subject?

Almost ready to hit install
Reply With Quote
  #24  
Old 08-19-2005, 01:39 PM
Cyricx Cyricx is offline
 
Join Date: Aug 2002
Location: Missouri
Posts: 1,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thought for ya Jugo on the per style thing.

What if the delimiter was set per style?

Then as you describe it would only grab the images that started with that delimiter so if for example if you had the images

style_a_image1
style_a_image2
style_b_image1
style_b_image2

then you would set the delimiter for style a to "style_a" and similiar for style b

It may be completely off from how it would have to be done, just spitting ideas out from my insane noggin for ya as I know the style thing is giving ya a headache
Reply With Quote
  #25  
Old 08-19-2005, 02:29 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ggiersdorf
Can I use this in multiple locations on my site? Say one in a portal and one in a forum dedicated to a specific subject?
Right now it just uses one variable, so it will display the same image on every page. I just paused my brain and though of it, it is definitely possible. But I'm gonna try and figure out the following request first.

Quote:
Originally Posted by Cyricx
Thought for ya Jugo on the per style thing.

What if the delimiter was set per style?

Then as you describe it would only grab the images that started with that delimiter so if for example if you had the images

style_a_image1
style_a_image2
style_b_image1
style_b_image2

then you would set the delimiter for style a to "style_a" and similiar for style b

I got the settings all set for this, except that for some reason the code is not parsing correctly....it's still using the same image for both and it's not picking up the style ID correctly...

been trying to get some help from the "Master Coders" here but two posts and no response yet....i'll wait and explore until i get it though, cause I like this idea.
Reply With Quote
  #26  
Old 08-21-2005, 07:40 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jugo any anwsers on my post? Or are you working on something else?
Reply With Quote
  #27  
Old 08-28-2005, 07:58 AM
Sai01 Sai01 is offline
 
Join Date: Dec 2004
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i don't get this...where do i put the picture and how many picture can be rotated?
Reply With Quote
  #28  
Old 08-29-2005, 12:28 PM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ggiersdorf
Jugo any anwsers on my post? Or are you working on something else?
Read the post right above yours...i answered it.

Quote:
Originally Posted by Sai01
i don't get this...where do i put the picture and how many picture can be rotated?
Put the images wherever you want...Just make sure that their names includes the "delimeter" you speify in the settings and that they are within your web accessible directories. There's no limit to the number of images (although I don't recommend having hundreds and thousands of images because that may slow down the script...
Reply With Quote
  #29  
Old 08-29-2005, 02:40 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Jugo I have an Idea that you might be able to help with. I want to place the random image in the background of the New Thread/ Reply Box and set the Size of those boxes to a fixed size. Would you know how to accomplish this?

It would make a Unique experience. (Obvoiusly the images need to be somewhat translucent)
Reply With Quote
  #30  
Old 08-30-2005, 11:43 AM
jugo jugo is offline
 
Join Date: Feb 2004
Location: Reading your emails.
Posts: 573
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ggiersdorf
Would you know how to accomplish this?

You can use this as well. Just use the variable as your background image like this:

HTML Code:
style="background: URL($randpic);"
and that should cycle through the images and place them as the background image.
Reply With Quote
  #31  
Old 08-30-2005, 12:31 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jugo
You can use this as well. Just use the variable as your background image like this:

HTML Code:
style="background: URL($randpic);"
and that should cycle through the images and place them as the background image.
Jugo sorry to be a twit, but how can I use this in the CSS section: I dont want to add the HTML I cant to apply it to the WYSIWYG editor in the CSS section. What command would that use?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.13378 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_php
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete