Log in

View Full Version : Mini Mods - Show XboxLive Gamertag In Postbit


ctforumsdotorg
04-15-2009, 10:00 PM
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
<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:
<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...
<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 ?