![]() |
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
|
Looks very interesting, thanks!
|
Great work , thank you!
|
Great!
|
several errors with IE7/8 :(
EDIT: now it work very very very well (it was my fault! with another script)! GREAT MOD! |
I do not understand this mod.
|
Jaxel, do the images reside in the users cache with this mod?
I ask because it kinda has a quick 'scroll' down, even when you've already seen all of the images in rotation. Also I'm especially curious because my new forum has been running really well with it, but is currently slow, and only with the header images it seems. The forums load fine but the header images take a while (longer than usual). Hopefully this will pass. |
Yes, the images are cachable.
|
sorry, but I don't fully get it
is it either or? or can you do all? can you randomly select forum wide banners and also force certain banners on certain forums and allow users as well? I tried it now and even forced forum gets the other banners too.. I know I am not getting it Thanks |
1 Attachment(s)
Excellent thanks.
Jaxel can i ask what mod you are using for the sub forum set out on your forum please? or did you code it or something? thanks. screen shot |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=118935 |
Quote:
4.The script has a heirarchy of importance when searching for images. The first thing it will look for is the FORCED image from step 1. If it doesn't find a forced image, it will use the user defined image in step 2. If the user doesn't have a defined image, it will pick an image at random from the folder it resides in. |
Quote:
One other thing, I tried doing a forced header for a forum and could not get it to work. I'm not really worried about... just thought I'd report. |
Quote:
thanks anyway ;) |
Quote:
|
Quote:
|
Jaxel, sorry to bother you again, but can you confirm that images cache with this mod?
That would be really important to me. I don't understand why it has a 'scroll down' effect every time if the images is cached. I have a fast connection so I'm not sure can properly say that they're not caching--- they load fast either way for me-- but why the scrolling? I notice that that effect is pretty much nonexistent on your forum headers. Here's the url to my header.php if you can take a look to confirm: http://www.wetacollectors.com/forum/...es/header.php? I'd really appreciate it, thanks |
You have some weird setting on your directory... as I cant view your image...
If I go here: it will display a random image, and if I press enter on the address bar, it clearly pulls from the cache (as it loads immediately and doesnt have the scroll) http://www.8wayrun.com/customstyles/...der/header.php However, if I go to your script: it WONT display an image, instead it will give me a download prompt for your php file... which is something that it should never do. http://www.wetacollectors.com/forum/...ges/header.php |
Quote:
-Your direct header DOES scroll for me in Firefox, with the loading progress bar too. Although it still happens very fast, but it's definitely there, even in instances where the same image has appeared consecutively. I wish I could video it so you could see. -Your direct header does not scroll in Safari, as far as I can tell. It 'pops' in, which I think is the desired effect. -My header direct link works fine for me in Firefox (obviously) but trying it in Safari does indeed lead to a download prompt. (Though the header(s) work fine in the forum itself. -On my actual forum, which I've looked at plenty of times with both browsers and can confirm again-- the scrolling behavior is present on both browsers. From these results I would hazard to guess you are using Safari (my header direct link doesn't load for you, your header direct link loads 'good') but it's only a guess. Obviously I don't know further what is 'wrong', but I'm hoping you can find something in these results that might help. This is the link to the forum: http://www.wetacollectors.com/forum |
I use IE8 on this computer, and FF3 on my other computer... everything works fine on my website without issues.
But I found out what your issue is... You have the following meta tag: Code:
<meta http-equiv="Pragma" content="no-cache" /> |
Wow Jaxel you are so right, it even targets the headers specifically it looks like: <!-- no cache headers -->
How did that get there!? My Vbulletin is pretty vanilla, and quite new (only recently set up, and transferred from PHPBB3) If that is not a 'standard' part of the code, I honestly have no idea how/why it got there, I certainly did not add that. I will try and figure out how to remove it. Thanks a lot! |
Actually, upon further inspection, it seems to be a standard part of Vbulletin code?
The sites (not mine) that I looked at all have this. In fact VB.org has this if you view page source their home page. Even your forum has this!: PHP Code:
Edit: Further more reading, this is hardcoded into the forum home of Vbulletin, which explains that. It is not present for example, on a random forum page on my forum. So is this really the problem? :confused: |
How do you link the code to your homepage? Like link the image back to your forum home?
|
Jaxel -
I'm using your mod in conjunction with VB 3.8.4. I upgrade my PHP from 5.2.9 to 5.3, and this mod no longer functions. I'm not receiving any errors, just no banners at all. When I revert back to 5.2.9, all functions normally again. I'm not receiving any errors, just no banners at all. When I revert back to 5.2.9, all functions normally again. |
Jaxel -
I'm using your mod in conjunction with VB 3.8.4. I upgrade my PHP from 5.2.9 to 5.3, and this mod no longer functions. I'm not receiving any errors, just no banners at all. When I revert back to 5.2.9, all functions normally again. |
works great... but i have a lil issue...
check out this image http://images.tafreehmela.com/showor...5/untitled.jpg there is unwanted free white space above my logo? how is that? |
Does this mod work on 3.8.4? I did exactly as said and nothing happened. Where exactly is everyone placing the folder?
|
Is there any way to use this mod with flash animations(SWF) as Iam using them for my forums as a header?
Thanks for answer Cheers |
If i just want a rotating header (completely random) do i need to use these at all.?
I'm guessing i do or it wouldn't know how to connect to the images. lol (header.php)
My header template is weird, so im not sure if it is my template, or the 3.8.5 version.? Code:
<!-- bullseye background --> Also does this work with 3.8.5.? Thanks :cool: |
working fantastic on 3.8.4!!! I was looking for this, so this helped me out so much!!
|
Great Mod! Installed on 3.8.5.
|
All times are GMT. The time now is 02:31 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:
|