Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
8WayRun.Com - Random Header Details »»
8WayRun.Com - Random Header
Version: 4.0.2, by Jaxel Jaxel is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 04-16-2010 Last Update: 08-13-2010 Installs: 59
Uses Plugins Template Edits
Additional Files  
No support by the author.

Don't forget to click INSTALL!
I'm an unemployed computer programmer... if you appreciate the work I have done on this mod, please don't hesitate in offering me a donation by clicking the "Support Developer" link to the right of this text.
I had to rewrite this mod because it stopped working in vB4x. It now requires a product installation; don't blame me, blame vB4x.

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/
http://www.8wayrun.com/customstyles/...der/header.php
Installation Procedure:
  1. Upload all the files in the "upload" directory of the attached zip file to your forum root.
    .
  2. Import the product file called "product-header.xml" in the Product Manager of vBulletin.
    .
  3. RANDOM OPTION: Put the images you want randomized into the "header" folder that you just uploaded in the previous step.
    This randomized option will work with any JPG, GIF or PNG image extension.
    .
  4. SELECTED OPTION: If you want, you can let users SELECT which header they want on places where the script would normally randomize.
    1. Create a new "Single-Selection Menu" profile field in your adminCP.
    2. For each selection option, enter an image's filename as an option.
    3. Set Default: None
    4. Field Required: No
    5. Field Editable: Yes
    6. Private Field: No
    7. Field Searchable on Members List: No
    8. Show on Members List: No
    9. Display Page: Options: Other
    After you submit, this field will be given a name (ex: field9). Make sure to remember this name.
    This selected option will work with any image extension defined in an image's filename
    .
  5. FORCED OPTION: If you want to FORCE an image on specific forum, upload the image, to the "header/forums" directory.
    Images are forced by their forum ID, so if the forum you want to force is forum 38, then name the image "38.png".
    By default, this selected option will only work with the PNG image extension.
    If you want to change this extension to something else, open up the included "header/header.php".
    Find and edit the fourth line in this file which by default should state: $forced = ".png";
    .
  6. NOTE: This script has a heirarchy of importance when searching for images.
    1. The first thing it will look for is the FORCED OPTION.
    2. If it doesn't find a forced image, it will use the SELECTED OPTION.
    3. If it doesn't find a selected image, it will use the RANDOM OPTION.
Usage Procedure:
Anywhere you want to use this random script, just link to this script, instead of an image.
header/header.php?fid={vb:var forum.forumid}&pid={vb:var bbuserinfo.field9}
Notice the field9 above, this should match the field name given to you in a previous step.
You can use this script anywhere you would normally use an image; whether it be your logo image, or even the background image to your header or website.

Download Now

File Type: zip RandomHeader.zip (3.7 KB, 309 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-31-2010, 08:56 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxel View Post
titleimage should be:

header/header.php?fid={vb:var forum.forumid}

not

header/header.php
I had a custom style and nothing worked until this edit. Thanks... Working perfectly now.
Reply With Quote
  #23  
Old 07-19-2010, 03:53 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is awesome can it be used on None vbulletin pages?

Thanks
Reply With Quote
  #24  
Old 08-13-2010, 10:10 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod has been globalized, so now the FID and PID will work on everypage.

And yes, Animemike, header.php can be used on ANY page; not just VB. All the product file does is send the registers for FID and PID. With the VB3 version, it didn't even need a product since you didn't have to register anything.
Reply With Quote
  #25  
Old 08-23-2010, 11:22 PM
Xencored Xencored is offline
 
Join Date: Sep 2008
Location: UK, Scuny
Posts: 1,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jaxel View Post
Animemike, header.php can be used on ANY page; not just VB. All the product file does is send the registers for FID and PID. With the VB3 version, it didn't even need a product since you didn't have to register anything.
Awesome thanks man :up::up:
Reply With Quote
  #26  
Old 09-09-2010, 07:57 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One important question : Dose this mod causes the high server load ? ( cpu usage )
I think may be it is better not to use this mod on big forums with heavy traffics...
Any idea ?
Reply With Quote
  #27  
Old 09-29-2010, 11:30 AM
utahwildlife utahwildlife is offline
 
Join Date: Aug 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am really interested in this mod. I am assuming this will work with vb 4.0.7?
Reply With Quote
  #28  
Old 11-20-2010, 09:52 PM
8thos's Avatar
8thos 8thos is offline
 
Join Date: Aug 2010
Location: Pensacola, FL
Posts: 772
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting.
Reply With Quote
  #29  
Old 11-21-2010, 02:14 AM
Santori Santori is offline
 
Join Date: Apr 2010
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but I don`t understand this purpose, Vbulletin can do this without any mod.
Create a style for each forum with a different logo.
Then go to the forum desired and in the options force the forum to see in other style.
Reply With Quote
  #30  
Old 11-21-2010, 04:30 AM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Golzarion View Post
One important question : Dose this mod causes the high server load ? ( cpu usage )?
This is the only reason I haven't installed this, I don't know how resource intensive this is, if you load a new banner everytime you open a new page in your forum.
Reply With Quote
  #31  
Old 11-23-2010, 06:13 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Destron View Post
This is the only reason I haven't installed this, I don't know how resource intensive this is, if you load a new banner everytime you open a new page in your forum.
That doesn't make it resource intensive... that makes it BANDWIDTH intensive... Loading an image takes almost no server resources. And bandwidth is CHEAP. However, if you wanted to save on bandwidth, you could set your htaccess to simply cache images.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:10 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
  • Page Generation 0.07752 seconds
  • Memory Usage 2,318KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete