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"


All times are GMT. The time now is 06:12 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.05584 seconds
  • Memory Usage 1,739KB
  • 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
  • (16)bbcode_code_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