The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Random Images Anywhere Details »» | |||||||||||||||||||||||||
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:
Show Your Support
|
Comments |
#82
|
|||
|
|||
Quote:
|
#83
|
||||
|
||||
How do I put this into a module? for my CMPS?
|
#84
|
|||
|
|||
its not working for me! HEEEEEEEEEEEELP!
I have tried everything! my site is "www.dawire.net" the PATH for my site is "public_html/forums/images/randompics/" My delimiter is "random" and I even went a inserted that in all my pics in that directory. I even put the "$randpic" code in the header template and I get is a big red X. Can someone help me please? |
#85
|
|||
|
|||
Has anyone figured out if certain browsers or I don't know what might cause the variable to not work?
I have one user that cannot see the images on his home computer, but can on his work computer. I got a copy of the source grabbed from View Source in IE and the IMG code that would normally get placed where the $randpic# variable is in the code is simply not there at all. It's like his browser doesn't process the variable. So instead of this: Code:
<td align="center"><img src="http://www.moparnuts.com/forums/images/banner/qnutsbobs70gtx2.jpg" border="0" alt="bobs70gtx2" width=200 /></a></td> Code:
<td align="center"></a></td> |
#86
|
|||
|
|||
Quote:
You're generating this for the images: Code:
<img src="attachment.php?attachmentid=35&stc=1&thumb=1" border=0 align="center"> Code:
<img src="http://www.moparnuts.com/forums/images/banner/qnutsbobs70gtx2.jpg" border="0" alt="bobs70gtx2" width=200 /> |
#87
|
|||
|
|||
Quote:
|
#88
|
|||
|
|||
Quote:
I think there's two ways to go about this. 1. drupal's index.php is pretty simple and has a couple of includes. Adding another would be pretty simple. 2. one of the includes that drupal has is common.inc which has a bunch of functions that get used by various modules of drupal. I am going to try and add the function from your xml file into that include file and see how it goes. I would suspect that any other portal solution would have similar architecture that one could take advantage of. Does anyone see any issues with either of these approaches? I guess that including global.php would be a good thing to do if there were other functions/features that we could take advantage of in the portal. I just started the portal stuff 3 days ago, so I have no idea if there is anything in global that would be beneficial. |
#89
|
||||
|
||||
Quote:
Code:
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]">$randpic </a></td> Some TOUGH mod to figure out at start but thanks to you i've managed to get there :nervous:. It's just what i was looking for Great mod! |
#90
|
|||
|
|||
this works fine EXCEPT on index.php home page. What's going on?
|
#91
|
|||
|
|||
I installed this on my FFXI message board, and it's a huge hit. I have about 107 game screenshots from my game group. Only having one show at a time, randomly, on the frontpage is a fun way to keep everyone's interest. Some members have claimed to just sit clicking refresh to see all the pics. For being a vBulletin newbie, I didn't have too much trouble getting it to work. Installing the plugin was pretty easy. I had a little trouble figuring out what the plugin wanted for the directory location (not the directory URL). The hardest part for me was making a table that looked like a vBulletin table and putting it on the page in a way that didn't break formatting or anything. But, as I mentioned, I'm still learning. It's a really cool plugin though - the first modification other than a style change I've done so far.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|