vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - Halo 3 Stats Displayed (https://vborg.vbsupport.ru/showthread.php?t=161257)

ChU v2 10-26-2007 10:00 PM

Halo 3 Stats Displayed
 
What is this?

This hack will display an image of your Halo 3 stats and update them as the player progresses.

Credit:

The credit for the stats system goes to Halobit.com. I just wrote the code for it to display on vB.

Instructions:

Step 1: Create a Profile Field

Admin CP > User Profile Fields > Add new profile field

Title: XBL Gamertag
Description: Enter your XBL Gamertag.
Max length of allowed user input: 15
Field editable by user: Yes
Private Field: No

Every other option is up to you.

Step 2: Template Edits

This is for the postbit/postbit legacy templates.

FIND:

HTML Code:

<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
ADD AFTER:

HTML Code:

<!-- ChU's Halo 3 Stats -->
<div>
<if condition="$post['fieldXX]">
<a href="http://www.halobit.com"><img src="http://halobit.com/sig/1_$post[fieldXX].png" border ="0" height="130" width="250"></a>
</if>
</div>
<!-- End ChU's Halo 3 Stats -->

Replace all the XX's with the profile field number that you created. For example: "5"

You will have to adjust the height and width to fit your forum.

To display in the MEMBERINFO template, also known as the user's profile.

FIND:

HTML Code:

                <if condition="$show['usernoteview']">
                                                <br />($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime]</span>)
                                        </if>
                                </div>
                        </div>
                        </if>

ADD AFTER:

HTML Code:

<!-- ChU's Halo 3 Stats -->
<div>
<center>
<fieldset><legend>Halo 3 Stats</legend>
<if condition="$post['fieldXX']">
<a href="http://www.halobit.com"><img src="http://halobit.com/sig/1_$post[fieldXX].png" border="0" height="125" width="350"></a>
</if>
</div>
</center>
</fieldset>
<!-- End ChU's Halo 3 Stats -->

Replace all the XX's with the profile field number that you created. For example: "5"

Lag 10-29-2007 09:41 PM

Pretty cool, any chance you will make your own stats system?

wattieuk 10-30-2007 08:36 AM

It didnt display for me. Do you have to register with that site first?

Snake 10-30-2007 06:41 PM

Not bad at all.

wattieuk 10-30-2007 09:28 PM

Still doesnt work for me. Useless if every user has to register on there and post at least 5 posts. A self contained version would be better.

Canis Firebrand 11-01-2007 04:32 PM

Nice idea, But I do not like having to register at an external site or require my users to do so.

ChU v2 11-03-2007 06:46 PM

Quote:

Originally Posted by wattieuk (Post 1372293)
Still doesnt work for me. Useless if every user has to register on there and post at least 5 posts. A self contained version would be better.

Quote:

Originally Posted by Canis Firebrand (Post 1373565)
Nice idea, But I do not like having to register at an external site or require my users to do so.

You do not have to register at the site in order for it work. I've tested that.

DoB Rhapsody 11-03-2007 06:54 PM

I don't like the image much. If you can find the script they used or create one of your own that we can run ourselves, that would be 10x better.

ChU v2 11-03-2007 07:16 PM

I talked to the Admin at Halobit, the code was changed so you DO have to be a registered user in there database, therefore this hack will not work without being registered at halobit.

Please remove this hack.


All times are GMT. The time now is 01:02 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.01981 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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