Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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
  #2  
Old 04-17-2010, 04:22 AM
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Location: California
Posts: 589
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks very nice, tagged for later
Reply With Quote
  #3  
Old 04-17-2010, 07:16 AM
sploodge sploodge is offline
 
Join Date: Jan 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you get it to display an image in the main forum list ( forum.php ).. I have it working for individual forums but naming the png by the forum ID but I get no image in the forum index not the CMS.

Installed though ..
Reply With Quote
  #4  
Old 04-17-2010, 10:53 AM
WassoufTunClub WassoufTunClub is offline
 
Join Date: Jan 2010
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Jaxel thnx. I wait a new version for Video directory vb4
Reply With Quote
  #5  
Old 04-17-2010, 01:12 PM
Poeta Poeta is offline
 
Join Date: Oct 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just to let you know that there is a malware on your forum found with Avast!. Ciao
Reply With Quote
  #6  
Old 04-18-2010, 12:19 PM
pjcnlv pjcnlv is offline
 
Join Date: Jul 2007
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool! IS there a way to set a group of header images per forum:

Forum33_1.png
Forum33_2.png
Forum33_4.png

etc

Where only Forum 33 would show the above images randomly?
Reply With Quote
  #7  
Old 04-18-2010, 11:09 PM
JohnMcClane JohnMcClane is offline
 
Join Date: Jan 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feature request - could you possibly include an option to change the header + thread title strips + footer? Would be cool if all 3 or even just header and footer could be changed at once.
Reply With Quote
  #8  
Old 04-19-2010, 03:21 AM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can easily use this mod multiple times by creating multiple folders and linking to each header.php differently.
Reply With Quote
  #9  
Old 04-19-2010, 09:06 PM
Jaxel Jaxel is offline
 
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... just uploaded a new version. Fixes a big with the SELECT OPTION. Now if someone selects an image, and then later decides to go back to RANDOM, it will be handled correctly.
Reply With Quote
  #10  
Old 04-19-2010, 09:20 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Only see Random Header, wheres the original script gone mate ? or is that it

Strike that LOL< I thought I was on your Media MOD !!!

I am a terwatt
Reply With Quote
Reply


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 02:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.15770 seconds
  • Memory Usage 2,314KB
  • Queries Executed 24 (?)
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
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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