vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User info in a colored table (https://vborg.vbsupport.ru/showthread.php?t=84388)

Grunt 08-30-2002 11:56 AM

User info in a colored table
 
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..

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

Code:

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

Code:

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

Code:

$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. :)


All times are GMT. The time now is 07:18 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.01128 seconds
  • Memory Usage 1,751KB
  • 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
  • (15)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