vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - Show XboxLive Gamertag In Postbit (https://vborg.vbsupport.ru/showthread.php?t=211327)

ctforumsdotorg 04-15-2009 10:00 PM

Show XboxLive Gamertag In Postbit
 
1 Attachment(s)
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.

ctforumsdotorg 04-15-2009 11:58 PM

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

Reserved.

pein87 04-16-2009 03:24 PM

So now they swicthed the profiles to just the avatar for xboxlive now nice mod btw?

ctforumsdotorg 04-16-2009 09:06 PM

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>


RichieBoy67 05-25-2009 03:42 PM

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

betts02 07-22-2009 08:32 PM

does not work for me,cant see where it pulls the info from to show avatar ?


All times are GMT. The time now is 04:40 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.01090 seconds
  • Memory Usage 1,730KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete