vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - RoG's Xbox Live Avatar in Posts (https://vborg.vbsupport.ru/showthread.php?t=233751)

Shadawg 01-20-2010 10:00 PM

RoG's Xbox Live Avatar in Posts
 
1 Attachment(s)
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

Shadawg 01-21-2010 04:08 PM

I will help people out who are struggling with this.

Found a problem when a quote is being used, it goes over the avatar.

Fix for it is here.

Find the template called bbcode.css

Find

Code:

.bbcode_container div.bbcode_quote
add underneath it

Code:

width:80%;
if you have any bugs report them here, i will do my best to get them fixed

TunerNetwork 01-22-2010 03:22 PM

tagged, will see how others like it and then give it a whirl, good idea!

betts02 01-27-2010 01:33 PM

Having a problem with the members sigs

A line abopve the sigs runs in to the avatars

Shadawg 01-27-2010 08:01 PM

Okay, i'll check your site out.....

Shadawg 01-27-2010 08:04 PM

You need to find this in postbit.css

Code:

.postbitlegacy .signature, .postbitlegacy .lastedited {
there you will find

Code:

margin-top: ?em;
you need to replace whatever number you have before the "em;" and put 17

it will look like this...

Code:

margin-top: 17em;
this was stated in the first post....

betts02 01-27-2010 09:02 PM

I know it was stated mate and i tried to follow that, BUT

Code:

margin-top: ?em;
Was not like this, I can not remember exactly what it was but it was slightly different

The code i have is

Code:

.postbitlegacy .signature, .postbitlegacy .lastedited {
  margin-top: 17em;
  padding: 0 {vb:stylevar padding};


Shadawg 01-27-2010 09:23 PM

then that should work then, 17 makes the signature line underneath the avatar.....

If you like you could contact me on aim so i can take a closer look at your template...

betts02 01-27-2010 09:52 PM

I am currently on my old pc as my newer 1 is getting fixed, This pc is really XXXXXX

So it willnot install aim, i have msn at betts02@tiscali.co.uk or if you view the thread at>>>http://www.nextgenerationgamers.co.u...0557#post10557

And scroll to post number 11 you will see the lads sig with the line above it, Please forget the gamer card image rolling over as i am trying to fix that now, but you will see the line i mean

What i have is

Code:

.postbitlegacy .signature, .postbitlegacy .lastedited {
  margin-top: 17em;
  padding: 0 {vb:stylevar padding};

What i had was

Code:

.postbitlegacy .signature, .postbitlegacy .lastedited {
        margin-top: 0;
        padding: 0 {vb:stylevar padding};

This is for the default theme and the same for my style theme

Shadawg 01-28-2010 12:43 AM

thats strange it didnt have em after it, try replacing the 17em with just "17" there, if that does not work, try "17px"

betts02 01-28-2010 07:27 PM

Quote:

Originally Posted by Shadawg (Post 1968512)
thats strange it didnt have em after it, try replacing the 17em with just "17" there, if that does not work, try "17px"

Tried both of these and both do nothing

I am running v4.0.0, will this make a difference ? is the "em" changed in v4.0.1 ?

Shadawg 01-28-2010 08:51 PM

that could be it, templates are alot different between the versions...... i'll get you added on msn

Shadawg 01-28-2010 09:32 PM

Okay have fixed the problem, for 4.0.0 users only.

Find
Code:

.postbitlegacy .postrow.has_after_content {
  padding-bottom: ?em;
}

Change the ? what ever number you may have to 17

Example

Code:

.postbitlegacy .postrow.has_after_content {
  padding-bottom: 17em;
}


dannyheath 02-25-2010 12:37 PM

1 Attachment(s)
hi m8 i have trobles with this look at the limage
https://vborg.vbsupport.ru/external/2010/02/9.jpg

NO deadliner 02-25-2010 04:40 PM

Great work i like this one. You have a clue how i can add the Xbox Gamercard on the Leftside in postbit ? i have try to make it like in version 3.8 but that dosent work :/ maybe you can help me out ?

Shadawg 02-26-2010 10:30 AM

Quote:

Originally Posted by dannyheath (Post 1991220)
hi m8 i have trobles with this look at the limage
https://vborg.vbsupport.ru/attachmen...5&d=1267109640

Please make these changes

Find the template called bbcode.css

Find

Code:

.bbcode_container div.bbcode_quote
add underneath it

Code:

width:80%;

Shadawg 02-26-2010 10:31 AM

Quote:

Originally Posted by NO deadliner (Post 1991365)
Great work i like this one. You have a clue how i can add the Xbox Gamercard on the Leftside in postbit ? i have try to make it like in version 3.8 but that dosent work :/ maybe you can help me out ?

Im sure i would be able to help you out, add me on aim "rog shadow rv"

dannyheath 02-26-2010 11:21 AM

Quote:

Originally Posted by Shadawg (Post 1991898)
Please make these changes

Find the template called bbcode.css

Find

Code:

.bbcode_container div.bbcode_quote
add underneath it

Code:

width:80%;

ok thanks if ok now but if i use https://vborg.vbsupport.ru/showthread.php?t=235328 it do the same

NO deadliner 02-27-2010 12:31 PM

Quote:

Originally Posted by Shadawg (Post 1991900)
Im sure i would be able to help you out, add me on aim "rog shadow rv"

Sorry dont habe AIM maybe MSN or Skype ?

Shadawg 02-27-2010 12:41 PM

Quote:

Originally Posted by dannyheath (Post 1991923)
ok thanks if ok now but if i use https://vborg.vbsupport.ru/showthread.php?t=235328 it do the same

Just had alook at the coding for that, it shouldnt be a problem, i see 1 instance of 100% width, just replace the 100 to 80 and it should be fine.

Quote:

Originally Posted by NO deadliner (Post 1992804)
Sorry dont habe AIM maybe MSN or Skype ?

Okay send me your msn thru pm, i wont be back on my main computer till monday so you'll have to wait abit........

betts02 02-28-2010 09:44 AM

If possible can you help me again ?

I have a new theme from last time you did the fix for me if you remember ?

The awards mod goes through the avatar and the fix you did for my postbit_legacy gamer card

If possible can you help with bith ?

cheers in advance

JVCode 02-28-2010 09:30 PM

Quote:

Originally Posted by NO deadliner (Post 1991365)
Great work i like this one. You have a clue how i can add the Xbox Gamercard on the Leftside in postbit ? i have try to make it like in version 3.8 but that dosent work :/ maybe you can help me out ?

In Postbit_Legacy

Find: <dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>

ADD BELOW

<vb:if condition="$post['fieldx']">
<center><img src="http://avatar.xboxlive.com/avatar/{vb:raw post.fieldx}/avatar-body.png" width="100" height="200">
</center>
</vb:if>

Replace the x with xbox live profile field number.

betts02 03-02-2010 08:17 PM

For th xbox gamer card to appear, its

Code:

<vb:if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.fieldXX}.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe></td></tr></vb:if>

I need to try to make the postbit_legacy wider to accomodate this but am stuck

x YNWA x 03-04-2010 10:22 AM

I have a problem with when people quote it goes over the avatar...

betts02 03-04-2010 10:35 AM

Quote:

Originally Posted by x YNWA x (Post 1996780)
I have a problem with when people quote it goes over the avatar...

https://vborg.vbsupport.ru/showpost....3&postcount=18

Shadawg 03-04-2010 08:25 PM

read the first page......

XLCR GODFATHER 03-25-2010 08:51 PM

This is the first template mod I have ever done too my site. VB Suite 4.0.2 pl2
Very easy to follow just had to scroll thru the comments to find the bbcode.css fix and worked like a charm.
Perfect!!!!
Thank You....:up::up:

XLCR GODFATHER 03-25-2010 09:19 PM

I have an Idea for another version of this code to show other Gamer info in the postpost bit using some of the code changes you used here with variations. Is there any problem reusing some of what you have done here if I give you credit for the original Idea in my mod

Shadawg 03-28-2010 01:14 PM

No problem at all, go right ahead :)

JasonReynolds 06-28-2010 10:45 AM

I really really love your layout :D

COL NIL SATIS 07-01-2010 02:08 PM

does this work on 4.0.3??

Shadawg 07-08-2010 11:36 AM

Yes it should do, if not i will get a working code.....

x626xblack 07-08-2010 12:53 PM

If I may suggest. Instead of editing the CSS templates and having revert issues for upgrades use the Extra CSS template. No code to revert or change when upgrading or updating.

EQmandingo 07-11-2010 06:10 AM

EXCELENT!!! Honestly one of the simplest template mods to implement and I might add for a gaming community one of the most worthwhile addons. Please continue to concoct some more brews similar to this one.

Shadawg 07-12-2010 02:47 PM

Quote:

Originally Posted by EQmandingo (Post 2067526)
EXCELENT!!! Honestly one of the simplest template mods to implement and I might add for a gaming community one of the most worthwhile addons. Please continue to concoct some more brews similar to this one.

Thanks man, i have another mod but its a mixpod.com playlist mod. Dunno to release that or not.....

top dogs 360 09-07-2010 06:11 AM

Quote:

Originally Posted by betts02 (Post 1995502)
For th xbox gamer card to appear, its

Code:

<vb:if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.fieldXX}.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe></td></tr></vb:if>

I need to try to make the postbit_legacy wider to accomodate this but am stuck

Did anyone figure this out as I can change the width to 190 to accommodate the postbit legacy but the gamercard cuts off.
http://www.xboxhounds.com/showthread...=3677#post3677


www.xboxhounds.com

top dogs 360 09-08-2010 01:26 PM

Quote:

Originally Posted by betts02 (Post 1995502)
For th xbox gamer card to appear, its

Code:

<vb:if condition="$post['fieldXX']"><tr><td class="vbmenu_option">
<iframe src="http://gamercard.xbox.com/{vb:raw post.fieldXX}.card" scrolling="no" frameBorder="0" height="140" width="204"></iframe></td></tr></vb:if>

I need to try to make the postbit_legacy wider to accomodate this but am stuck


I finally figured this out. In postbit.css find;


.postbitlegacy .userinfo {
float:{vb:stylevar left};
position: relative;
width: {vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}};
padding: 2px {vb:stylevar padding} {vb:math {vb:stylevar padding}/2};
font-size: {vb:stylevar small_fontSize};
display:block;
background: {vb:stylevar postbit_userinfo_background};
clear:both;


Okay what you want to change is the width from this:


{vb:math {vb:stylevar postbitlegacy_userinfo_width}-{vb:math {vb:stylevar padding}*2}}

to this:
205px;

N2L Fatality 09-09-2010 12:55 AM

Im running 4.0.6 and looking in the Postbit section I can not find anything with those code. It keep coming up blank. Anyone know what to do to add this to 4.0.6?

top dogs 360 09-09-2010 05:42 AM

Quote:

Originally Posted by N2L Fatality (Post 2095649)
Im running 4.0.6 and looking in the Postbit section I can not find anything with those code. It keep coming up blank. Anyone know what to do to add this to 4.0.6?

Make sure you in postbit.css for step 1 & 2 then postbit_legacy for step 3. In postbit_legacy its about 40% the way down right after this. {vb:raw template_hook.postbit_messagearea_start}

See it live @ XboxHounds

N2L Fatality 09-09-2010 11:37 AM

Yea the postbit_legacy i could find but in 4.0.6 i can find anything for step 1 and two?


All times are GMT. The time now is 08:37 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.02351 seconds
  • Memory Usage 1,837KB
  • 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
  • (25)bbcode_code_printable
  • (13)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
  • (40)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