vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Need a little help with a template (https://vborg.vbsupport.ru/showthread.php?t=90715)

Pion 05-18-2005 04:14 AM

Need a little help with a template
 
1 Attachment(s)
I have managed to dabble in the code a bit and changed it to the way it is now. How can I move left "newusername" so it's aligned with total members' #. Also how can I change so that the "Newest Member" stays bold but not the actual member name?

This is the template code that I have

Code:

<!-- Welcome Panel v1.0 :: Created By Zero Tolerance -->
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="3"><a style="float:right" href="#top" onclick="return toggle_collapse('forumhome_welcome_panel')"><img id="collapseimg_forumhome_welcome_panel" src="$stylevar[imgdir_button]/collapse_tcat.gif" alt="" border="0" /></a><div align='center'><b>{$welcome_message}</b></div></td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_welcome_panel" style="">
<tr>
<!-- Main Welcome Panel Block :: Begin -->
        <td class='alt1' width='1%'>
        <!-- Avatar Cell :: Begin -->
        {$welcome_avatar}
        <!-- Avatar Cell :: End -->
        </td>

        <td class="smallfont" class='alt2' width='55%' valign='top'>
        <!-- Forum Quick Stats :: Begin -->
        {$welcome_intro}
        <table width='100%' cellspacing='0' cellpadding='0' valign='bottom'><tr><td width='50%' valign='bottom'>
                <table width='100%' cellspacing='1' cellpadding='1' valign='bottom'><tr>
                <td width='85%'>
        {$welcome_topics}
                </td></tr>
                <tr><td width='85%'>
        {$welcome_posts}
                </td></tr>
                </table>
        </td>
        <td valign='top'>
                <table width='100%' cellspacing='1' cellpadding='1'  valign='bottom'><tr>
                <td width='85%' colspan=''>
        <b><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[newest_member_x]</phrase></b>
                </td></tr>
                <tr><td width='85%'>
        {$welcome_members}
                </td></tr>
                </table>
        </td></tr></table>
        <!-- Forum Quick Stats :: End -->
        </td>
                <if condition="$bbuserinfo[userid]!=0">
        <td class="smallfont" class='alt2'width='40%' valign='top'>
        <!-- User Stats :: Begin -->
                      <b>Users Online:</b> $totalonline<br />
                        <phrase 1="$numberregistered" 2="$numberguest" 3="$numberspiders">$vbphrase[x_members_and_y_guests]</phrase><br />
                        <phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase><br />
                      <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
        <!-- User Stats :: End -->
        </td>
                </if>
<!-- Main Welcome Panel Block :: End -->
</tr>
</tbody>
</table>
<!-- Welcome Panel v1.0 :: Created By Zero Tolerance -->


Tony G 05-18-2005 04:44 AM

With the bolding:

Replace:

Code:

<b><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[newest_member_x]</phrase></b>
With:

Code:

<b><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername"></b>$vbphrase[newest_member_x]</phrase>
That should work. o_o I don't think it'll interfere with the phase.

With the aligning,

I'd have to play around with that. But try:

Replace:

Code:


        <td valign='top'>
                <table width='100%' cellspacing='1' cellpadding='1'  valign='bottom'><tr>
                <td width='85%' colspan=''>

with:

Code:

        <td valign='top'>
                <table width='100%' cellspacing='1' cellpadding='1'  valign='bottom'><tr>
                <td width='85%'>

It's a bit of guess, so just replace with the old code if it doesn't work.

Pion 05-24-2005 09:03 PM

Neither one of them worked. The first change just changed the font to regular, both "Newest Member" and the username and the second change didn't do anything at all.

Tony G 05-25-2005 06:54 AM

Oh crap. With the first one, you have to change the variable calling the text itself. It's all in one, so you can't do that through templates. It'd involve going into your database or hacking.

Second one, can't really do unless I play around with the code. *shrugs* It should work already...


All times are GMT. The time now is 11:00 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.00953 seconds
  • Memory Usage 1,725KB
  • 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
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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