![]() |
Quote:
|
How do I put this into a module? for my CMPS?
|
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? |
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> |
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 /> |
Quote:
|
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. |
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! |
this works fine EXCEPT on index.php home page. What's going on?
|
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.
|
Quote:
|
Ditto on the CMPS thing. it doesn't work.
|
Is this thread abandoned? CMPS, anyone?
|
Quote:
In the vBulletin Options. |
Quote:
Sorry, been very busy lately. This should enable the variable in any template for any vB Powered page which includes the global_start hook. I will investigate if this is not the case and fix it. again, sorry for the absence. |
Does the $randpic variable work only in templates or also in phrases?
|
I've installed this hack and use it to display a random photo of certain forum members at the top of each page. Everyone likes this feature, but multiple people have asked if there is a way I can identify the person in the picture. At present I just a static (generic) "Forum Member" description under it.
It would be a awesome enhancement to this hack, if each image in the random pool could be associated with a particular short line of text for a description. The description could display under the image. Thanks! |
Worst case scenario, why not add the text to the 'image' itself? Just add a little band at the bottom and write you caption in Photoshop... Just a thought :knockedout:
|
This works great! Just what I was looking for!
|
Quote:
I managed to get it done. https://vborg.vbsupport.ru/showpost....3&postcount=69 I suppose you could tweak that to put the name underneath the picture using just some html. The trick is that the text is part of the filename. Another thing: that function looks for .jpg and strips it out. So, it messes up this name support for other file types. The random picture code will still work but the name will say "filename.gif" instead of "filename" |
Quote:
|
Where do i put the $randpic in this header ?
Quote:
|
Anywhere you want it to show up.
|
I really would like a time setting for the image to rotate so I can set it to change images every X seconds or hours.
|
Jugo: bcause it still not possible to use a different set of randem image for each template, then, is it possible to install this product twice, with, for each, different parameters ?
Thanks! |
Thanx!
Jacquii. |
Quote:
|
Quote:
Code:
<tr> |
Great Mod.
|
Will this work in 3.6.x generation? (Fingers crossed).
|
First off, this is a great little plugin... props to jugo!
one quick question... is anyone else having an issue with the images not being random in FireFox? It refreshes everytime and changes the image in Internet Explorer but in Firefox the same image remains time and time again. Just checking thanks! |
Quote:
I can get a box that looks as if it is collapsed, but that's it. (It is not collapsed, just small) The box will show with random pictures using the preview button in the module edit section, but does not work on any page. I am on vB 3.6.8 and I am wondering if that is where my problem lies?? Any help? |
A 'Heads Up' to people testing vB370RC2. This hack appears to still be working correctly/properly in vB370RC2.
Great hack. Easy to set up. Works. |
It works with 3.6?
|
Try it. I had written my own randomizer for 36x but it doesn't work in 37x so I tried this hack in 37x and, voilĂ , this hack worked in 37x.
Remember to use the (default) _rand_ as a file prefix for your pics (jpgs, gifs, pngs). ~OZ |
How do you use this?
Where are the instructions? |
Copy your pics you want displayed into Images/Misc, adding prefix _rand_ to the jpeg filenames.
Here's an example of adding $randpic to the Header template: <if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo] <else /> $randpic </if> ~OZ |
Huh?
|
tested/working on 3.8?
|
Hmm, is it possible to incorporate this with vBadvanced?
|
All times are GMT. The time now is 04:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|