vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Profile Enhancements - Halo 3 Service Tag Grab (https://vborg.vbsupport.ru/showthread.php?t=216192)

OcR Envy 06-14-2009 09:00 PM

Halo 3 Service Tag Grab
 
1 Attachment(s)
Halo 3 Service Tag Grab(Beta)

Compatible with vB 3.5.x, 3.6.x, 3.7.x, 3.8.x

What it Does:
This little mod will add a users Halo 3 Service Tag to the end of their forum name. By default the template edit shown is postbit, however it can be added to any part of your forum.

Install:
1. Upload includes directory to your forum root.
2. Install Product via AdminCP-Plugin & Products-Add/Import Product-Allow Overwrite=Yes
3. Go to User Profile Fields
If you have a field for xbox live gamertags already you do not need to create a new one.
  • Click Add New User Profile Field
  • Single-Line Text Box and click Continue
  • Title: XBL Gamertag
  • Description: Users Gamertag
  • Field Editable By User: Yes
  • The Rest of the Options are your choice and click Save.
  • Remember the profile field number for the settings.
  • Click Add New User Profile Field
  • Single-Line Text Box and click Continue
  • Title: Halo 3 Service Tag
  • Description: Service Tag
  • Field Editable By User: No
  • Private Field: Yes
  • The Rest of the Options are your choice and click Save.
  • Remember the profile field number for the settings.
4. Go To vBulletin-Options-Halo 3 Servicetag and fill out options.
  • In the gamertag field option enter just the field # of the gamertag. IE "5".
  • In the service tag field option enter just the field # of the servicetag. IE "7".
  • In the usergroup field option enter any usergroups you wish the script to pull the service tag for, seperate each by a , IE: "5,6,7".
  • For all usergroups leave this field at "0".
5. Go To Scheduled Tasks-Scheduled Task Manager
  • Find Halo 3 Service Tag and click Run Now(only necessary first install)
  • By default the script is set to run at 11PM everyday.
  • To change this click Edit and set the cron job as you see fit.
6. Go To Style & Options-Search in Templates
Search for Text:
HTML Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
Replace with:
HTML Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername] -    <if condition="$post[field(Service Tag Field #)]"> - $post[field(Service Tag Field #)] </if></a>
(Service Tag Field #) = The second user profile field # you created. Yours should look something like this after you fill it out.
HTML Code:

<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername] -    <if condition="$post[field5]"> - $post[field5] </if></a>

Notes:
The script will run 1 query per user. Meaning if you have 20 users in the usergroup(s) you have chosen the script will have 20 queries.
By default the template edit shows postbit, however you can add userfields to any template you desire you simply need to change the $post variable to whatever (Member Info template would be $userinfo etc..).

Demo: http://www.outcastreborn.com/showthread.php?t=17419
Screen:
https://vborg.vbsupport.ru/attachmen...3&d=1245080048

Future Versions:
  • Auto Template Edits
  • Usergroup Styling
Comments/Questions/Suggestions welcome. Support given only if installed!

saadessa 06-15-2009 04:21 PM

thank you for this great hack .....i will try

OcR Envy 06-15-2009 04:34 PM

My pleasure, I will be releasing more "Bungie.net" related mods shortly :)

AzzidReign 06-16-2009 01:11 AM

Nice job on this mod! I just think H3 is getting a lil "dated"...more and more people are not playing it anymore; or at least on a regular basis.

Did you make the mod that you have on that site "Who's on XBL?"? That seems pretty cool...maybe a little server intensive? Either way, it's a pretty sick feature.

OcR Envy 06-16-2009 09:49 AM

I realize Halo3 might be a bit "dated" to the less hard core crowd. ODST should resolve that soon enough :)

Yes the Who's on XBL is also a custom mod. The issue there doesn't lay with queries but with the XBL Presence Stream we use. The stream isn't all to stable and my fear is that releasing such a mod would only cause more instability.

Maybe in the future though ;)


All times are GMT. The time now is 02:20 AM.

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.01819 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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