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

Reply
 
Thread Tools
Show XboxLive Gamertag In Postbit Details »»
Show XboxLive Gamertag In Postbit
Version: 1.00, by ctforumsdotorg ctforumsdotorg is offline
Developer Last Online: Jul 2009 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 04-15-2009 Last Update: Never Installs: 7
Template Edits
Re-useable Code Translations  
No support by the author.

This Mod Will Work On 3.6.x + Versions as Well !
Demo:http://360legit.com/showthread.php?p=14#post14
This is my first little modification so bear with me guys... if you like it, a little thanks would be nice.

If you got any questions just ask me, or pm me, and i will try to answer you.

Step 1: Add a new Profile Field with the following options:

* Single-Line Text Box
* Title: Gamertag
* Description: Enter your Xbox Live Gamertag here.
* Max length of allowed user input: 15
* Field Length: 25
* Private Field: No
* Field Searchable on Members List: Yes
* Show on Members List: Your choice
* Which page displays this option? Edit Your Details


Remember the Field ID.

Step 2: Modify the Postbit_legacy in your template:

1. Admin CP -> Styles & Templates -> Postbit Templates ->
postbit_legacy

Find
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>
After this add:
Code:
<if condition="$post[field5]"><fieldset><legend>Gamertag</legend>
<div>
<font color="green"><b><span class="postbit_text">$vbphrase[field5]</span> $post[field5]</div></b></font>
</div>
</fieldset></if>
Replace the $post[field#] with your field ID you used for your gamertag!

Step 3: Go to Edit Your Details to add your gamertag to your profile.

Step 4: You're done!

Note: the code that i have given u makes the Gamertag Bold and Green color, so you can change it if you want.

Screenshots

File Type: jpg avy.JPG (8.1 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 04-15-2009, 11:58 PM
ctforumsdotorg ctforumsdotorg is offline
 
Join Date: Jul 2008
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will make a few changed and modifications.... and will keep you guys up with the new modifications, thanks.

Reserved.
Reply With Quote
  #3  
Old 04-16-2009, 03:24 PM
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
Posts: 352
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So now they swicthed the profiles to just the avatar for xboxlive now nice mod btw?
Reply With Quote
  #4  
Old 04-16-2009, 09:06 PM
ctforumsdotorg ctforumsdotorg is offline
 
Join Date: Jul 2008
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

XBL new experience is out for a while now.... and they have avatars... with this mod, i just made to people to use on their gaming sites or they can use it on their xbox 360 sites.... also could be switched around and changed name to show the PSN name.

for the playstation one i use this...
Code:
<if condition="$post[field5]"><fieldset><legend>PSN ID</legend>
<div>
<font color="green"><b><span class="postbit_text">$vbphrase[field5]</span> $post[field5]</div></b></font>
</div>
</fieldset></if>
Reply With Quote
  #5  
Old 05-25-2009, 03:42 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks--Nice Option for members that have X-Box--

It would be nice to add a conditional so that nothing at all will show when a member doesn't have x-box or psn... either that or maybe a small message saying to add your psn or xbox..

What do you think?? What is shown now for members that don't have xbox? Just the empty table??

Thanks much..

Rich
Reply With Quote
  #6  
Old 07-22-2009, 08:32 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does not work for me,cant see where it pulls the info from to show avatar ?
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 06:46 PM.


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.04982 seconds
  • Memory Usage 2,266KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete