![]() |
Randomize your background every refresh!
1 Attachment(s)
this is a simple .php file, and small "Style Vars" edit to make it so your background changes on your forum every time you refresh the page, using the popular extensions, such as .jpg, and .png.
rotate.php PHP Code:
Make sure to change the directory to the background images you want! Changing the Style Var via doc_background
And your finished! Demo: http://gamingsync.com Credits Darkness I did not create this, but tested it, and had the idea for it, had permission to share this. |
Search vbulletin.css codes click Add ?
url(forum/rotate.php) background:{vb:stylevar doc_background }; deleted? |
No. you don't touch vbulletin.css; you can do it from the Style Vars Editor...
http://img413.imageshack.us/img413/4275/28323435.png |
Here's a lot more info on the file and how it works. http://www.alistapart.com/articles/randomizer/
Credit goes to Dan Benjamin who first made the file. |
I cannot get this to work and I have no idea why. I can get any of my 50ish backgrounds to show on their own but once I add the script how I should it just shows no background. Anyone willing to check it out for me and see if I am doing something wrong? I am using the warrior theme.
|
wow that is cool
but i think it make some load in the server |
Still looking for an answer to this...
|
I am getting this error with the script when I go directly to the script url
Warning: Cannot modify header information - headers already sent by (output started at /home/content/05/5148505/html/toplolclips/images/warrior/backgrounds/rotate.php:1) in /home/content/05/5148505/html/toplolclips/images/warrior/backgrounds/rotate.php on line 21 What am I doing wrong? |
didnt work for me i dont know why :(
|
Quote:
And for those who are still having issues, I will get my developer to answer your questions asap. EDIT: tbh I forgot I released this. |
Quote:
Make sure rotate.php is in your ROOT directory, not your images directory. |
Quote:
|
Quote:
What errors are you getting? |
no error just nothing appear as background
i check paths and all redo but still nothing appear i have 4.3 |
Quote:
Also, the script has been slightly modified. I uploaded and pasted the wrong code but it shouldn't have caused any errors either way. |
I attempted to use this, thought it would be a fun update for the website, however I only get a black background when I try.
Location of rotate.php: Root directory - www.distortedguild.com/rotate.php Location of background images: /images/backgrounds/ - http://www.distortedguild.com/images.../Cataclysm.jpg Second line of rotate.php: $dir = 'images/backgrounds/'; (attempted using $dir = '/images/backgrounds/'; also, but still was not successful. The background image field of doc_background in Style Vars: url(rotate.php) Hope that info helps. |
rotate.php is detecting that the directory isn't found.
try another directory.. "directory not found" I will get my developer to help you out as soon as I can. |
This is working awesome for me ... though I'm only rotating 5 backgrounds. :)
|
I installed this, but it's not working for me. Can anyone help me? You can only see it while the page is changing. But once its finished loading, its the same background on it, the one that's set by the style.
My guess is the style is custom coded differently or something? IDK. Would appreciate any help. I set the stylevar image url to: url(images/backgrounds) |
Great mod thanks :D
|
Quote:
|
1 Attachment(s)
Quote:
|
Installed on v4.1.2
|
Quote:
|
does this work for vb 4.1.3?
thank u |
I've seen this php code to get randomized images from a folder. The idea is really good, but we can do it better. I don't like the solution, to send headers with the randomized image, but first step, a little code cleanUp.
Works with php 5.3+ PHP Code:
PHP Code:
Cheers |
screenshot please...
|
Any one got this working?
|
is this working on vb 4.1.5
|
@HagbardCeline: Nice clean up. Thank
@Lemonwater: Why you need an Screenshot? simple. you can change the background or any css variable and random it. @temsamane: its an external php code, to ramdom images, if the php server run, it will run.. @ALL: If you put too many big pictures to the background, your server will have a serveral load tranfering images. Ex. If you have: 10 diferents images, of 100kb. 200 users, read 5 diferent post, you will tranfer: 200x5x100= +-100 mb only to show a diferent background? |
is there any update/same mod for this one?
|
All times are GMT. The time now is 06:35 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:
|