PDA

View Full Version : Need a little help with a template


Pion
05-18-2005, 04:14 AM
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


<!-- 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:


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


With:


<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:



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


with:


<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...