Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Halo 2 & Halo 3 Stats in Postbit Legacy Details »»
Halo 2 & Halo 3 Stats in Postbit Legacy
Version: 1.00, by ChU v2 ChU v2 is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 09-29-2007 Last Update: Never Installs: 11
Template Edits
Re-useable Code Translations  
No support by the author.

What is this?

This is a simple template edit modification to that displays the Halo 2 & Halo 3 logo in the
user's postbit linking them to there stats.

Things to do:

[2] Image Uploads
[2] Phrase Add-Ons
[1] Field Addition
[1] Template Edit

---------------------------------------------------------------------------------

1. Image Uploads

Upload the attached images (Halo2.gif) & (Halo3.gif) to /forum/images/misc/

2. Phrase Add-Ons

- Go to your ACP
- Go to the "Languages & Phrases" and click Phrase Manager.
- Scroll down to the bottom and click "Add New Phrase"
- Use the following to fill in the fields for the first phrase.
-- Phrase Type: GLOBAL
-- Product: vBulletin
-- Varname: view_halo2_stats
-- Text: View your Halo 2 Stats.
- Now add a second phrase using this information.
-- Phrase Type: GLOBAL
-- Product: vBulletin
-- Varname: view_halo3_stats
-- Text: View your Halo 3 Stats.

3. 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: What is your Gamertag for Xbox Live?
-- Max length of allowed user input: 15
-- Field Length: 25
-- Field Editable By User: Yes
- The rest of the fields really don't matter.
- IMPORTANT: Remember your field number! It will say in your Profile Field Manager screen.

4. Template Edit

- Go to your ACP.
- Select Styles & Templates and go to your style manager.
- From the drop down box of your skin, select edit templates.
- Select to edit your postbit_legacy template.
- You can choose to add the following code wherever you like, but I'll give some of the beginners a place to put it, if they don't know there way around the templates.

FIND:
HTML Code:
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
PASTE BELOW:
HTML Code:
<if condition="$post['fieldXX']">
<a href ="http://www.bungie.net/Stats/PlayerStatsHalo2.aspx?player=$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/halo2.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_halo2_stats]</phrase>" border="0" /></a>
</if>
<if condition="$post['fieldXX']">
<a href ="http://www.bungie.net/Stats/Halo3/Default.aspx?player=$post[fieldXX]"target="_blank"><img src="$stylevar[imgdir_misc]/halo3.gif" alt="<phrase 1="$userinfo[username]">$vbphrase[view_halo3_stats]</phrase>" border="0" /></a>
</if>
- Replace all the "XX" with the field number you created earlier. There are 4.

-----------------------------------------------------------------

Refer to the screen shot and the red arrows to view the modification.

It might take some tweaking to make it look right, but it's a nice addition. In my screenshot I have the XBL Gamescore added to make it look better. If you would like to add that to your forum... Visit this link: https://vborg.vbsupport.ru/showthread.php?t=157122

Then you would just add the above code below that.

Enjoy! Please click Install!!

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-01-2007, 04:16 AM
Bilderback's Avatar
Bilderback Bilderback is offline
 
Join Date: Sep 2007
Location: Illinois
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks - great addition to the gaming forums.
One typo- you call a custom phrase1 in the image alt="" but didnt include it in your phrase.
I put mine as follows:
Quote:
2. Phrase Add-Ons

- Go to your ACP
- Go to the "Languages & Phrases" and click Phrase Manager.
- Scroll down to the bottom and click "Add New Phrase"
- Use the following to fill in the fields for the first phrase.
-- Phrase Type: GLOBAL
-- Product: vBulletin
-- Varname: view_halo2_stats
-- Text: View {1}'s Halo 2 Stats.
- Now add a second phrase using this information.
-- Phrase Type: GLOBAL
-- Product: vBulletin
-- Varname: view_halo3_stats
-- Text: View {1}'s Halo 3 Stats.
Thanks again
Reply With Quote
  #3  
Old 10-01-2007, 08:22 AM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very, very nice! Thanks for sharing.
Reply With Quote
  #4  
Old 10-01-2007, 08:57 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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: What is your Gamertag for Xbox Live?
-- Max length of allowed user input: 15
-- Field Length: 25
-- Profile Field Type: Single
-- Field Editable By User: Yes
- The rest of the fields really don't matter.
- IMPORTANT: Remember your field number! It will say in your Profile Field Manager screen.
I don't have that option on my site for 3.6.8 and I installed it as best I could that you said except for the red area shown and I do not see that profile anywhere. What did I do wrong?
Reply With Quote
  #5  
Old 10-02-2007, 02:49 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any suggestions? If not, I will uninstall this add-on till someone comes out with a better one.
Reply With Quote
  #6  
Old 10-02-2007, 03:32 AM
Bilderback's Avatar
Bilderback Bilderback is offline
 
Join Date: Sep 2007
Location: Illinois
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
I don't have that option on my site for 3.6.8 and I installed it as best I could that you said except for the red area shown and I do not see that profile anywhere. What did I do wrong?
vb 3.6.8 "Single-Line Text Box"
Title: XBox Live Gamertag
Descrtiption: What is your Gamertag for Xbox Live?
Max length of allowed user input: 15
The above is all you should have to add.
The rest should default at sufficient values.

It appears you have the right entries for the profile field.
Did you add the number of your created profile field in place of the XX in your postbit code?
PHP Code:
<if condition="$post['fieldXX']"
If you created field5 then:
PHP Code:
<if condition="$post['field5']"
Reply With Quote
  #7  
Old 10-02-2007, 05:33 AM
SuperTaz's Avatar
SuperTaz SuperTaz is offline
 
Join Date: Apr 2007
Location: Pennsylvania
Posts: 744
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes everything else was entered correctly. It was just the highlighted area that I did not have.
Reply With Quote
  #8  
Old 10-02-2007, 12:40 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
I don't have that option on my site for 3.6.8 and I installed it as best I could that you said except for the red area shown and I do not see that profile anywhere. What did I do wrong?
When you click "Add New Profile Field" from the User Profile Fields in the ACP, select Single Line Textbox. It should be the default value. Click continue. Then don't worry about it from there. Hope that helps.
Reply With Quote
  #9  
Old 10-03-2007, 07:25 PM
VGPelega VGPelega is offline
 
Join Date: Jul 2007
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice little addition to any gaming community. I have edited the image, as my site contrasts in colours to your site, so for any members with a light coloured website, here is the image I have used:

Demo: http://www.worldofclans.com/forums/s...everybody.html

Fantastic Mod, thank you.
Reply With Quote
  #10  
Old 10-04-2007, 07:55 AM
Bilderback's Avatar
Bilderback Bilderback is offline
 
Join Date: Sep 2007
Location: Illinois
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warden-B- View Post
Yes everything else was entered correctly. It was just the highlighted area that I did not have.
You dont have to worry about the highlighted area.
If it still does not show...VVV
The only thing I can think of is that you did not upload the images to your Styles misc directory.
When $stylevar[imgdir_misc] is used, the images must be placed in every misc folder for every Style that your board uses- not just the default.
If thats not the case, check the Stylevars location for your Style-try adding a full url-
You may have a mod disrupting your css somewhere which requires the complete url.
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 02:11 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.04561 seconds
  • Memory Usage 2,308KB
  • 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
  • (2)bbcode_html
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete