PDA

View Full Version : User info in a colored table


Grunt
08-30-2002, 11:56 AM
i searched High and low and im sure its out there, but alas i could not find it - prolly wrong search 'terms'.

i would like to put the userinfo in the postbit into a table and color it - like this:

http://www.clanice.org/_tmp/vbultable.gif

i know its a simple html edit but im not that proficient at html. heres the part of my postbit where im certain that it goes..

<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><br><p><div align="center">
$post[avatar]<br><p><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>
<p></div>
<br><smallfont>Member Since: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]<br>
$onlinestatus</smallfont</tr></td>

<td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>

Tony G
08-30-2002, 12:21 PM
We have it at KSF. Once the server is back up I'll fetch the code for you.

Grunt
08-30-2002, 12:25 PM
ty!

Grunt
09-01-2002, 04:25 AM
*bump*

Grunt
09-05-2002, 06:54 AM
buhler...buhler?

Tony G
09-05-2002, 08:07 AM
Do you want the code to be exactly the same as the screenshot? (The layout as well)

Grunt
09-05-2002, 08:28 AM
well heres what my actual board looks like now:

http://www.clanice.org/_tmp/userinfobefore.gif

and the code:
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="{tablebordercolor}" {tableouterextra} width="{contenttablewidth}" align="center"><tr><td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr>
<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
<a name="post$post[postid]"></a>
$post[firstnewinsert]
<normalfont><br><p><div align="center">
$post[avatar]<br><p><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>
<p></div>
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont></td>

<td bgcolor="$post[backcolor]" width="100%" height="100%" valign="top">
<table width="100%" border="0" cellpadding="0" align="left" height="100%">
<tr>

what i would like it to look like:
http://www.clanice.org/_tmp/userinfoafter.gif

Tony G
09-05-2002, 11:00 AM
No border?

Grunt
09-05-2002, 12:48 PM
nah..i like the plain look i guess :p

imported_plattopus
09-05-2002, 02:10 PM
This is a simple HTML edit as you anticipated. :)

Change this:

$post[avatar]<br><p><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br>
<p></div>
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont></td>
To this:

$post[avatar]<br><p><b>$post[username]</b></normalfont><br>
<table width="98%" cellpadding="3" cellspacing="0">
<tr>
<td width="100%" bgcolor="blue">
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>
</td>
</tr>
</table></td>
Change all values in red to whatever you prefer.

Note: this is untested, but should work fine.

Grunt
09-05-2002, 02:34 PM
thanks so much plattopus..many thanks..guess you got to it before Tony :p thanks also Tony..

here what the final code was..had to add in the User Title Info:

$post[avatar]<br><p><b>$post[username]</b></normalfont><br>
<smallfont>$post[usertitle]</smallfont><br><p>
<table width="98%" cellpadding="3" cellspacing="0">
<tr>
<td width="100%" bgcolor="#aaaaaa">
<smallfont>Registered: $post[joindate]<br>
Location: $post[field2]<br>
Posts: $post[posts]</smallfont>
</td>
</tr>
</table></td>

imported_plattopus
09-05-2002, 05:58 PM
Excellent... I'm glad you got it working.

Tony G
09-06-2002, 05:27 AM
Sorry, I just wanted to know exactly what you wanted.

Don't blame me for that. :p

Grunt
09-06-2002, 08:24 AM
no not at all tony...hope ya didnt take offense

Tony G
09-06-2002, 10:52 AM
I usually don't take any. :)

So all is well. :)