![]() |
The Ultimate Random Header Mod
1 Attachment(s)
This mod has been rewritten for vB4x here: https://vborg.vbsupport.ru/showthread.php?t=240629
THIS SCRIPT DOES NOT USE JAVASCRIPT! I wrote this mod for my own website last year (http://www.8wayrun.com/). I was looking for a way to create a random header situation, while also letting people select the random header through their UserCP and FORCE a header depending on what forum they are on. If you go to my website (http://www.8wayrun.com/), a random character will appear on your header, if you ctrl+refresh, a new character will show up... if you go to our character specific forums, the character in the random header will be FORCED to the character of that specific forum... I have done my best to make this script as simple as possible. Product Demo: http://www.8wayrun.com/Installation Procedure:
If you want to donate, I'm all for it... as I'm an unemployed computer programmer... |
how nice :)
but where is the header.php? ;) btw. it would be cool if it COULD use more extensions at once... like you said, now it just can either .jpg OR .png or.... but it would be awesome if it could do all at once. since I am waiting for the header.php... could you just answer me the question... will it pick ALL the images from the folder (with the right extensions e.g. .jpg) or just if I name them like "1.jpg", "2.jpg" etc.? edit: found this up there... thanks... even mentioning my example :D Regards, John Henry |
You can get it to take more than one file type for the RANDOMIZER by adding the following in the
// DEFINE VALID EXTENSIONS AND CONTENT TYPES area... $extList['gif'] = 'image/gif'; $extList['jpg'] = 'image/jpg'; However, the FORCED and the USER SELECTION options will only display the SINGLE filetype defined in the // VALIDATE CURRENT IMAGE DATA, CHECK FID, CHECK PID area. |
Quote:
vote for motm :) the only thing I am worrying is, what happens if you use some Seo Component (like me)... will this "user selects header..." thing be possible, as the ID is "different"... i mean, in database it isn't different (is it?) but you don't see the id in the sections... |
add an HTACCESS file to the directory turning the rewrite engine off... thats what I did on my forum and it works fine. Besides, the data is being pulled from the $forumid and $bbuserinfo... SEO and modRewrite has no access to that information; if they changed those, your forum wouldn't work.
|
that is so cool. Just checked your site. Noice!
|
|
|
Jaxel, I was hoping that you'd share how that works! :D
I'm definitely going to work with this one in the near future. Thanks for sharing! :up: |
thanks 4 this good work
|
All times are GMT. The time now is 06:23 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:
|