Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
XBOX Gamer tag in user profile & postbit_legacy Details »»
XBOX Gamer tag in user profile & postbit_legacy
Version: 1.00, by ArabOZ.com ArabOZ.com is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 02-01-2008 Last Update: Never Installs: 20
Template Edits
Code Changes  
No support by the author.

Function

Now add xBox Gamer tag in your forum from Mygamertag.net
Size 150?100 Not 204?140



Important

First always backup the files that you're going to edit so you can revert to the old version if something goes wrong.

We do appreciate if you gave us the due credits for these functions.


Installation

This modification was tested on vbulletin 3.5.x 3.6.x 3.7.0 beta 4.
You might have to put some codes on another location in your files depending on the version of vbulletin your have.


1. Add a gamertag field to your user (editable in profile) =>

vBulletin features a wide array of input options for you to gather information from your members through the creation of custom profile fields. With these fields you can present a list of options for the user to choose from or you can ask the user to give their own input.

Go to the adminCP and add a custom field => User Profile fields => Add New User Profile Field

You need a "Single-Line Text Box"

Title => Gamertag
Description => Xbox Live Gamertag
Default Value => Leave empty
Max length of allowed user input => 30
Display Size => 30
Display Order => put something like 10 or 15
Field Required => No as default but you can change if you want
Field Editable by User => Yes because gamertags do tend to change
Private Field => No the field is public
Field Searchable on Members List => No
Show on Members List => Yes
Regular Expression => leave empty

Save the field

Go to the User Profile Field Manager and look for your custom field you just added and look for the name column there is an ID for the field.
Something like "fieldXX" where XX is a number. Make sure you remember this value.

2. Go to the template you are using (Styles & Templates/Style Manager) and select Edit templates.

Go to "postbit templates" and select the template you are using (probably postbit or postbit_legacy).
and add the following code:

fieldXX is the field value you got from step 1.

You can embed the code in a div or a special table construction but that is up to you.

USE THIS CODE .. change [fieldXX] 3 time

Code:
<if condition="$post[fieldXX]">
<iframe src="http://card.mygamercard.net/mini/$post[fieldXX].png" scrolling="no" frameBorder="0" height="101" width="151">$post[fieldXX]</iframe>
</if>

Support

For support contact us through the feedback forum. ALL MODIFICATIONS ARE DONE AT YOUR OWN RISK. ArabOZ.com NOT RESPONSIBLE FOR ANY LOSS OF DATA.


Credits

All code is (c)2008 ArabOZ.com and NG-Game.com.

Thanks for XBOX USERS GROUP

Show Your Support

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

Comments
  #2  
Old 05-02-2008, 10:29 AM
dannykilla's Avatar
dannykilla dannykilla is offline
 
Join Date: Jun 2007
Location: Manchester, UK
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

u got a demo ?
Reply With Quote
  #3  
Old 05-06-2008, 03:03 AM
Pirat3 Pirat3 is offline
 
Join Date: Dec 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does not work on 3.7.0
Reply With Quote
  #4  
Old 05-07-2008, 02:58 PM
figu120 figu120 is offline
 
Join Date: Feb 2008
Location: medellin
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it(he,she) works for 3.7 loque it is necessary to do is to look for the suitable location, good I seek to put it under the avatar and the code for that you must look in control yourself posbit_legancy it(he,she) is:

fine

Code:
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
After this to add

Code:
<if condition="$post[fieldXX]">
<iframe src="http://card.mygamercard.net/mini/$post[fieldXX].png" scrolling="no" frameBorder="0" height="101" width="151">$post[fieldXX]</iframe>
</if>
I wait serve you
Reply With Quote
  #5  
Old 05-12-2008, 10:43 AM
freebase69's Avatar
freebase69 freebase69 is offline
 
Join Date: May 2005
Location: Gateway to the West
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look for:

Code:
<div>
					$vbphrase[posts]: $post[posts]
				</div>

and underneath add:

Code:
<!-- / XBLGT Start -->
<if condition="$post[fieldXX]"><a href="http://profile.mygamercard.net/$post[fieldXX]">
<img src="http://card.mygamercard.net/mini/$post[fieldXX].png" width="150" height="100" border="0"></a></if>
<!-- / XBLGT End -->
It will look like below.

If you want it under your avatar add the code under here after the </if>:

Code:
<if condition="$show['avatar']">
				<div class="smallfont">
					&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
				</div>
			</if>
Reply With Quote
  #6  
Old 06-30-2008, 05:18 PM
Qwest Qwest is offline
 
Join Date: Jun 2004
Location: United States
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So does this work for 3.7 or not?
Reply With Quote
  #7  
Old 08-27-2008, 12:12 PM
dkawika dkawika is offline
 
Join Date: Mar 2008
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^^ wondering the same thing
Reply With Quote
  #8  
Old 10-03-2008, 07:46 AM
SnapOff Racing SnapOff Racing is offline
 
Join Date: Apr 2006
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to get this to work if you don't have vertical postbit? (default is horizontal and that's what my users are accustomed to)
Reply With Quote
  #9  
Old 12-05-2008, 10:43 AM
Slam Da Brakes Slam Da Brakes is offline
 
Join Date: Oct 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the mod. Will credit on my forum.

Had alignment trouble but freebase69 made it work!
Reply With Quote
  #10  
Old 12-30-2008, 11:36 PM
Uber_Tiny Uber_Tiny is offline
 
Join Date: Jun 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone know how to place this in the signature and only in certain forums?

Any help with this is greatly appreciated.
Reply With Quote
Reply


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 09:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04613 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete