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

Reply
 
Thread Tools
XBL GamerCard Button (Appears just like IM buttons) Details »»
XBL GamerCard Button (Appears just like IM buttons)
Version: 1.00, by Bluestrike2 Bluestrike2 is offline
Developer Last Online: Mar 2012 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-29-2005 Last Update: 12-31-2005 Installs: 22
Template Edits
Additional Files  
No support by the author.

Everyone loves Xbox Live . Anyhow, there are a few other ways to get the gamertag into the postbit templates but wow does that look ugly!

So I figured "wouldn't it be cool if it looked like the Skype logos?" With that said I looked around and did a lot of fooling around on my test board. This is the end result:

XBL GamerCard as a IM button esque thing
1 - Step one - Create a user profile field (Admin CP => User Profile Fields => Add New

Single Line Text Box
Title: Xbox Live GamerTag
Description: Enter your Xbox Live GamerTag
Show on Member List: On
Field Searchable on Members List: On
The rest of the values are yours to mess in if you want to

2 - Take note of the field value (mine is field9)

3 - Time to edit your template (postbit/postbit_legacy) The path to do so from the Admin CP panel is : Admin CP => Styles and Templates => Template Manager => (Select 'Edit Templates' in the drop down menu for the template you wish to edit => Press [? ?] beside 'Postbit Templates' => [Customize] either 'postbit' or 'postbit_legacy'

Find:
Code:
    <td align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</td>
Replace with:

Code:
<td align="center">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]<!-- Xbox Live Icon by Bluestrike2 of the MLGPwnCast.com -->
<if condition="$post[field5]"><a id="gamertagmenu_$post[postid]" href="#" title="View Xbox Live! profile for $post[musername]"><img src="$stylevar[imgdir_misc]/xbl.gif" border="0" /></a><script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script><div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://gamercard.xbox.com/$post[field5].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field5]</iframe> </div> </if>
<!-- /Xbox Live Icon by Bluestrike2 of the MLGPwnCast.com --></td>
Do NOT forget to change 'field5' to whatever field yours is. The image goes in your style's misc. folder.

That's all folk!

Credit: Stonyarc's thread here for inspiration.

Because of my Mac's TextEdit difficulties (isn't compatible for some reason but has been in the past ) I've attached the logo and a PDF of these instructions.

Show Your Support

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

Comments
  #12  
Old 12-31-2005, 12:55 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nicey!
Reply With Quote
  #13  
Old 12-31-2005, 02:02 PM
obsidian's Avatar
obsidian obsidian is offline
 
Join Date: Apr 2003
Location: Austin Tx
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here are the instructions with the /images/misc directory and formatted in dos text. Great hack. You solved the only problem I had with installing the other hack which was collapsing it down.
Reply With Quote
  #14  
Old 12-31-2005, 05:30 PM
Bluestrike2 Bluestrike2 is offline
 
Join Date: Nov 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pspcrazy - just so you know that image isn't a transparent .gif. I'll try and remake it .
Reply With Quote
  #15  
Old 12-31-2005, 11:23 PM
Breath Breath is offline
 
Join Date: May 2003
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lots of beer and 10 mins of faffing around and i've got the icon to lineup with the rest correctly.

Code:
<!-- Xbox Live Icon by Bluestrike2 of the MLGPwnCast.com -->
<if condition="$post[field5]"><a id="gamertagmenu_$post[postid]" href="#" title="View Xbox Live! profile for $post[musername]"><img src="$stylevar[imgdir_misc]/xbl.gif" border="0" /></a><script type="text/javascript"> vbmenu_register("gamertagmenu_$post[postid]", true); </script><div class="vbmenu_popup" id="gamertagmenu_$post[postid]_menu" style="display:none"><iframe src="http://gamercard.xbox.com/$post[field5].card" scrolling="no" frameBorder="0" height="140" width="204">$post[field5]</iframe> </div> </if>
<!-- /Xbox Live Icon by Bluestrike2 of the MLGPwnCast.com -->
An example can be found here
Reply With Quote
  #16  
Old 12-31-2005, 11:26 PM
Bluestrike2 Bluestrike2 is offline
 
Join Date: Nov 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you my friend. I'll change the stuff to reflect that.
Reply With Quote
  #17  
Old 12-31-2005, 11:40 PM
Breath Breath is offline
 
Join Date: May 2003
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bluestrike2
Thank you my friend. I'll change the stuff to reflect that.

No problem!

You might want to change my field5 options back to field9 so it matches up with your example. Also as you can see from my demo it works on the normal postbit too!
Reply With Quote
  #18  
Old 01-01-2006, 12:07 AM
Bluestrike2 Bluestrike2 is offline
 
Join Date: Nov 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Done and done! Thanks again.

Anyhow, I've updated everything. Should be good to go! Happy gaming!
Reply With Quote
  #19  
Old 01-01-2006, 12:20 AM
predatorkill predatorkill is offline
 
Join Date: Apr 2005
Location: Greece
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack!! Can you make it to appear when i pass the mouse over the button?That would be more easy to everyone!!

Thank you very much!
Reply With Quote
  #20  
Old 01-01-2006, 12:23 AM
pspcrazy pspcrazy is offline
 
Join Date: Apr 2005
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by predatorkill
Great hack!! Can you make it to appear when i pass the mouse over the button?That would be more easy to everyone!!

Thank you very much!
Kill me lol, damn fireworks, i need to learn photoshop rofl. Tranparency doesnt even work lol.
Reply With Quote
  #21  
Old 01-01-2006, 03:00 PM
Bluestrike2 Bluestrike2 is offline
 
Join Date: Nov 2005
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

psp - you quoted the wrong thing .

Anyhow, to make a transparent GIF:
  • Create New Document
  • Select 'Transparent' Background
  • Do your work
  • Save as .GIF with 'Transparency' selected

You can also use .PNG and preserve transparency .
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 01:20 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.07295 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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