![]() |
Random Images Anywhere
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:
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:
|
This hack has allowed a different asspect on our site. But you could use it for just about anything.
We diplay multiple games just to give a different look to the site... Job well done Jugo... :ninja: |
That's awesome!!!
Only thing I'd request is a way to do it based on the style rather then a global setting. That way you can have one style that scrolls through X banners, and another style that scrolls through a whole different set. |
good idea :)
|
umm you guys are forgetting to click install i think :P
Indeed it is....AWESOME. gentle enough for ya? (:P) Hopefully I can get this to work with the gallery.....so instead of the newest 5 showing...it gets 5 random ones. I'll try it out. |
i ddidnt install it cause i have not found a use for it yet but it sounds like a good idea
|
Quote:
Hmmm...I'll look for the style specific hook (if there is one). Thanks all. |
Hey do you mind if I copy some of your images on your site?
|
If he can make it work on a per style basis rather then a global setting, I'll most definately install it and click install :D
|
me too cause then i know i could use it :)
|
When you say stle specific vs global? are you talking about templates?
sorry n00b here If you have 1 style will thsi work fine? |
It's set up to work on any style. it will display the same group of random images on whichever style you set it up on.
What they want is a way to specify different sets of random image groups per style. (I working on it but it's a little frustrating). |
Great plugin. I would image if you run a portal for example. You could just add the random varable to an empty block and it would display random images there also as well as adding the varable to your forum page.
|
Correct...that is the beauty of it. That it just creates a global variable that you can pretty much put anywhere.
|
will this work with flash also .swf thanks
|
In order for this to work with flash, some modifications would need to be made including the rewrite of the output code to include the oblect embed code required for flash movies.
|
so can i display it on an extenal page or a completly different website if I wanted?
|
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?
|
bloody good job!, cheers, clicks install!
-b6 |
hmm..installed but couldn't get it to work
did I do this right?
all I got was an X and htt p://w ww.mysite.com/forums/images/random/ file path (notice it didn't actually find an image file :( ) what'd i do wrong? any help would be appreciated? |
Quote:
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:
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:
The URL is correct BUT the PATH has to be the filesystem path as in "/home/name/public_html/forums/images/random/" |
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 :) |
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 :) |
Quote:
Quote:
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. |
Jugo any anwsers on my post? Or are you working on something else?
|
i don't get this...where do i put the picture and how many picture can be rotated?
|
Quote:
Quote:
|
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) |
Quote:
You can use this as well. Just use the variable as your background image like this: HTML Code:
style="background: URL($randpic);" |
Quote:
|
can we have a link for the pic?
|
I need this for headers and calendar pics? How can I use it for both since they have separate pics? ;)
|
Quote:
Code:
background: URL($randpic); |
Quote:
I am working on an update that you can have multiple delimeters. This way you can have more than one variable. Thanks to you and the other people who suggested the idea. |
Quote:
|
just coming through... Jugo how goes the different templates thing?
|
I found the solution for the different style one and will be posting it in a couple of days.
Next i'll work on the Multiple variable version. |
sweet..
I had to do it the semi ghetto way... looking forward to seeing yours. :) |
Great hack cheers!
|
If you could add links to the images this would be a very effective and simple banner ad system for folks that don't need something fancy.
|
All times are GMT. The time now is 04:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|