vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   XBL GamerCard Button (Appears just like IM buttons) (https://vborg.vbsupport.ru/showthread.php?t=104007)

Bluestrike2 12-29-2005 10:00 PM

XBL GamerCard Button (Appears just like IM buttons)
 
Everyone loves Xbox Live :D. 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 :D
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.

Bluestrike2 12-29-2005 11:31 PM

I'm going to reserve this for space... :D

(Don't know why though :D)

Zachariah 12-30-2005 01:24 AM

Thanks :)

Bluestrike2 12-30-2005 01:33 AM

Works ok? Awesome!

Zachariah 12-30-2005 01:44 AM

Quote:

Originally Posted by Bluestrike2
Works ok? Awesome!

- I give thanks for your time and energy
- Let ya know later if it worked :)

Zip the image w/ the text please. - helps when ppl download and install later.

Zachariah 12-30-2005 01:56 AM

what editor did you use ? - The text is a mess ?

edit:
MSWord opens it.

Save as a "dos" txt file w/o formating.

Bluestrike2 12-30-2005 02:31 AM

Hmmm....

I'm on a mac and I used Text Editor. That sucks - I'll redo the text file in the morning. Sorry!

Edit: Its morning somewhere so its done and updated :D.

Zachariah 12-30-2005 03:19 AM

ya the postbit still needs work :D
- I got a fake name in the profile to make it show up

The DIV tag shifts it to the next line.

Code:

<img src="$stylevar[imgdir_misc]/xbl.gif" border="0" />
allows you to place the image in - style / image / misc

pspcrazy 12-30-2005 05:52 AM

wow awesome man, im installing this baby. BTW your icon doesnt look to good for the xbox so i made a cleaner one.

pspcrazy 12-30-2005 06:03 AM

this might be better


All times are GMT. The time now is 07:33 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.01053 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete