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
  #12  
Old 04-24-2010, 02:56 PM
sploodge sploodge is offline
 
Join Date: Jan 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still cannot get this to randomize banners.. Works for individual forums ( by naming the image as the forum number )..

Any suggestions?

EDIT: Fixed it..... Being a tool
Reply With Quote
  #13  
Old 04-28-2010, 01:44 AM
Contra Fates's Avatar
Contra Fates Contra Fates is offline
 
Join Date: Sep 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been waiting for this mod, thanks!

The only issue I'm having is that the user selected portion isn't working. =( Any suggestions?
Reply With Quote
  #14  
Old 05-01-2010, 09:41 PM
rdbrown rdbrown is offline
 
Join Date: Feb 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can get the logo to be random on my site, but I can't get the forced option to work. For example I edited the header/header.php file and changed the forced to .jpg instead of the .png. I then placed a logo named 33.jpg into the header/forums folder. When I goto the forum with the id of 33, It is still giving me random images. Has anyone else had this problem? Or am I doing something wrong?

I also have a question as to wether or not I did the right thing in the StyleVars>ImagePaths>titleimage. Instead of the default image that was there, I replaced it with header/header.php.

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

titleimage should be:

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

not

header/header.php
Reply With Quote
  #16  
Old 05-04-2010, 08:01 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

the above script can it be modified to just show specif imgs in specific forums , Not Random?
Reply With Quote
  #17  
Old 05-07-2010, 06:26 PM
rdbrown rdbrown is offline
 
Join Date: Feb 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I went Into the Style Variable Editor and replaced the title image with header/header.php?fid={vb:var forum.forumid}&pid={vb:var bbuserinfo.field9}. I placed my image in header/forums and named it as 33.png and when I goto forum 33 it doesn't load this image. It still does the random image. I am not really interested in the user select option. I am only interested in random and forum specific logos. Am I placing the variable in the wrong place? Maybe I have to manually edit the header code instead of replacing the variable?



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

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

not

header/header.php

Quote:
Originally Posted by harleyparts View Post
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

the above script can it be modified to just show specif imgs in specific forums , Not Random?
Reply With Quote
  #18  
Old 05-07-2010, 10:31 PM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rdbrown View Post
I went Into the Style Variable Editor and replaced the title image with header/header.php?fid={vb:var forum.forumid}&pid={vb:var bbuserinfo.field9}. I placed my image in header/forums and named it as 33.png and when I goto forum 33 it doesn't load this image. It still does the random image. I am not really interested in the user select option. I am only interested in random and forum specific logos. Am I placing the variable in the wrong place? Maybe I have to manually edit the header code instead of replacing the variable?

jaxel is so busy on media he has no time to even come look at this :<

give him time, it does work random and its kind of kool
Reply With Quote
  #19  
Old 05-08-2010, 05:18 PM
rdbrown rdbrown is offline
 
Join Date: Feb 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Disregard my previous question. I ended up putting it into my header template and it now works.

I did notice that the forced logo only works on the forum, but not the threads in that forum. Is there a way to make it work on all of the threads in forum that is forced?
Reply With Quote
  #20  
Old 05-12-2010, 11:43 AM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rdbrown View Post
I did notice that the forced logo only works on the forum, but not the threads in that forum. Is there a way to make it work on all of the threads in forum that is forced?
Yes ! that would very nice ! I rewrite the codes for this ability . Now it can show them on "threads in forum that is forced " too .
Just use the attached file .
Attached Files
File Type: zip RandomHeader.zip (3.6 KB, 44 views)
Reply With Quote
  #21  
Old 05-20-2010, 10:07 PM
rdbrown rdbrown is offline
 
Join Date: Feb 2009
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Golzarion, that was an great fix. Thanks.
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:12 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.10046 seconds
  • Memory Usage 2,323KB
  • 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
  • (3)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
  • (2)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