vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Help with a simple template edit (https://vborg.vbsupport.ru/showthread.php?t=163316)

CrashPush 11-21-2007 10:41 PM

Help with a simple template edit
 
I need help with a simple template edit. So simple that I cannot figure out myself.

How do line up the user name under the avatar in postbit not postbit legacy?

I tried and tried and I can't it to work. This part of the code is a little too confusing for me.

example:

AVATAR
USERNAME
USER TITLE

default postbit:

AVATAR USERNAME
USERTITLE

Gray Matter 11-22-2007 01:34 AM

This should work (untested).

Find:

Code:

            <if condition="$show['avatar']"><td class="alt2"><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></td></if>
            <td nowrap="nowrap">
           
                <div id="postmenu_$post[postid]">

And replace it with:

Code:

            <td nowrap="nowrap">
                <if condition="$show['avatar']"><div><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>

                <div id="postmenu_$post[postid]">


CrashPush 11-22-2007 03:42 AM

Excellent! It worked like a charm. Thank you so much.

Can you also post the code for the avatar at the bottom of the user name and user title.

example:

USERNAME
USER TITLE
AVATAR


--------------- Added [DATE]1195749540[/DATE] at [TIME]1195749540[/TIME] ---------------

I figured it out based on the changes you made to the first edit. Thanks Gray Matter!

--------------- Added [DATE]1195749588[/DATE] at [TIME]1195749588[/TIME] ---------------

I figured it out based on the first changes you made. Thank you!


All times are GMT. The time now is 08:16 AM.

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.00922 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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