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

Reply
 
Thread Tools
RoG's Xbox Live Avatar in Posts Details »»
RoG's Xbox Live Avatar in Posts
Version: 1.00, by Shadawg Shadawg is offline
Developer Last Online: Aug 2016 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 01-20-2010 Last Update: Never Installs: 46
Template Edits
Code Changes  
No support by the author.

Okay this is my first release. for postbit legacy

Screenshot at the bottom.....

Create a new profile field or use an existing one for xbox live gamertag.

First step, you may have already done this.

In Postbit.css find

Code:
.postbitlegacy .after_content {
 position: relative;
 width: 100%;
 clear:both;
}
and replace with

Code:
.postbitlegacy .after_content {
 position: relative;
 width: 100%;
 clear:none;
}
Second Step.

In postbit.css

find

Code:
.postbitlegacy .signature, .postbitlegacy .lastedited {
underneath that code you will find

Code:
margin-top: ?em;
replace that number with 17, so it will look like this.
Code:
margin-top: 17em;
Step Three

Now go to the postbit_legacy and find

Code:
{vb:raw template_hook.postbit_messagearea_start}
add after

Code:
<vb:if condition="$post['fieldx']"><img src="http://avatar.xboxlive.com/avatar/{vb:raw post.fieldx}/avatar-body.png" align="right" width="150" height="300"/></vb:if>
Replace the x with xbox live profile field number.

Thats it

Hope you all enjoy it

Screenshots

File Type: jpg xbox-postbit.jpg (101.6 KB, 0 views)

Show Your Support

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

Comments
  #82  
Old 09-20-2012, 12:21 AM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by killerford View Post
I've done this and this code https://vborg.vbsupport.ru/showthrea...ight=gamercard and the other one to add it to your profile and it's only showing in people's profile when you click their name.. I'm using the same profile field for all three and it's not showing in the postbit on the posts nor is the avatar showing in the right hand side and I've done everything step by step.

I'm using 4.2
Your doing something wrong then. I just added it to my xbox360clans.net site, example post, after reading your post to try and help you. It works fine for me.

You don't need the other plugins/template edits/mods for this to work. You just need a Profile Field for the Xbox LIVE Gamertag, and the 3 red X's in this template edit to be that #.
Reply With Quote
  #83  
Old 09-22-2012, 04:07 PM
GamerPerfection's Avatar
GamerPerfection GamerPerfection is offline
 
Join Date: Feb 2006
Posts: 389
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure all the red X's are edited to reflect your profile field #?
Reply With Quote
  #84  
Old 09-28-2012, 03:38 PM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dam it, Thanks for the heads up guys.. I only changed the one x and there is two. Stupid me.
Reply With Quote
  #85  
Old 10-02-2012, 01:18 AM
GameOverViper GameOverViper is offline
 
Join Date: Jun 2011
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by killerford View Post
Dam it, Thanks for the heads up guys.. I only changed the one x and there is two. Stupid me.
There's actually 3 x's.
Reply With Quote
  #86  
Old 10-13-2012, 10:52 AM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GameOverViper View Post
There's actually 3 x's.
Only the two that I've found in the code. Well it's working fine anyways so I'll just leave it be.
Reply With Quote
  #87  
Old 10-15-2012, 10:00 PM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have VB 4.2.0 and I cant find this code

PHP Code:
{vb:raw template_hook.postbit_messagearea_start
any where in my postbit_legacy does this code

PHP Code:
<vb:if condition="$post['fieldx']"><img src="http://avatar.xboxlive.com/avatar/{vb:raw post.fieldx}/avatar-body.png" align="right" width="150" height="300"/></vb:if> 
have to follow the code above, or can I simply place it after the gamercard code?
Reply With Quote
  #88  
Old 10-15-2012, 11:51 PM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I found the code and I followed every thing step by step changed the field number looked every thing over and I still don't see my avatar
Reply With Quote
  #89  
Old 10-16-2012, 01:41 AM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found out what I was doing wrong Awesome mod 5 stars
Attached Images
File Type: jpg Avatar.jpg (85.5 KB, 0 views)
Reply With Quote
  #90  
Old 10-21-2012, 12:33 AM
killerford's Avatar
killerford killerford is offline
 
Join Date: Jan 2012
Location: United Kingdom
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason it's disappeared? How come?
Reply With Quote
  #91  
Old 10-29-2012, 02:37 AM
Harpo's Avatar
Harpo Harpo is offline
 
Join Date: Dec 2011
Location: Canada
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked. Its showing my avatar......

The only issue is there is a giant gap between my content and signature. Any fix for this? I included a screen capture in my attachment.

Help.

EDIT: Okay never mind I found the problem. Everything looks good now. I'll report back if any surprises show up.
Attached Images
File Type: png screencaptureerror.png (123.4 KB, 0 views)
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 12:15 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.11075 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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
  • (3)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete