vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Halo 3 stats button in postbit (https://vborg.vbsupport.ru/showthread.php?t=160053)

Lag 10-11-2007 10:00 PM

Halo 3 stats button in postbit
 
This provides a button similar to the AIM icon in the post bit.

Here is a forum with the mod on it.

Screenshot:
http://tinyimg.us/i/arx1192155790o.png



Install Instructions:


1. Upload the all files in the upload folder to your forum root.


2. Field Addition

- Go to your ACP.
- Click the User Profile Fields tab.
- Click Add New Profile Field
- Select the option for "Single-Line Text Box" and click Continue.
- Use the following information to fill in the options.
-- Title: Xbox Live Gamertag
-- Description: Your XBL Gamerrag
-- Max length of allowed user input: 15
-- Field Length: 25
-- Field Editable By User: Yes
- The rest of the fields really don't matter.
-When it asks for Display Order choose the next number in the order. Add it like fieldX, where x is the number.
- IMPORTANT: Remember your field number! It will say in your Profile Field Manager screen.


3. Edit postbit and postbit_legacy

Find:
Code:

<div class="postbit_icons">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]

Under that paste:
Code:

<!--Start Halo 3 Service-->
<if condition="$post[fieldX]"><a href="http://www.bungie.net/Stats/Halo3/Default.aspx?player=$post[fieldX]" target="_blank">
<img src="/forum/images/misc/bungie.gif" border="0" alt="View Halo 3 service record"></a>
</if>
<!--End Halo 3 Service-->

Where the X is thats the field NUMBER you had to remember, put it there, you should add it twice!


When it's finished your all done!! Thanks !
Click INSTALLED when done!


The credits for this goes to one of my Smods (TacoSavage) actually. He came up with the idea and made the entire hack. I'm just posting it for everyone else to use.

michael5472 10-21-2007 05:40 PM

reserved thanks

pspcrazy 12-03-2007 08:28 PM

worked perfect thanks Lag!!


All times are GMT. The time now is 04:09 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.00943 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete