vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Tables (https://vborg.vbsupport.ru/showthread.php?t=226951)

Hex_legend 10-28-2009 11:31 AM

Tables
 
I am looking to do something like shown: http://www.net-model.com/Portfolios/...&cmd=&linking=

Look from "General Information" onwards (the tables)

Here's their code:

PHP Code:

<tr>
                            <
td id="contentBar" valign="top" width="100%">
                              <
span class="whtMediumBold">General Information</span>
                            </
td>
                          </
tr>
                          <
tr>
                            <
td id="contentWindow" valign="top" width="100%">

                              <
table width="100%" border="0" cellpadding="4" cellspacing="1">
                                <
tbody><tr>
                                  <
td>
                                    <!-- 
Start Statistics-->
                                    <
table width="100%" border="0" cellpadding="0" cellspacing="0">
                                      <
tbody><tr>
                                        <
td valign="top" width="50%" align="left">
                                          <
table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">
                                            <
tbody><tr>

                                              <
td id="contentSubBar" colspan="2" valign="center" align="left"><span class="blkMediumBold">Statistics</span></td>
                                            </
tr>
                                            <
tr>
                                              <
td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Age</span></td>
                                              <
td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">24</span></td>
                                            </
tr>
                                            <
tr>

                                              <
td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Gender</span></td>
                                              <
td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">Female</span></td>
                                            </
tr>
                                            <
tr>
                                              <
td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Eye Color</span></td>
                                              <
td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">Blue</span></td>
                                            </
tr>

                                            <
tr>
                                              <
td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Hair Color</span></td>
                                              <
td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">Black and red</span></td>
                                            </
tr>
                                            <
tr>
                                              <
td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Height</span></td>
                                              <
td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">5'5</span></td>

                                            </tr>
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Weight</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">120</span></td>
                                            </tr>
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Chest</span></td>

                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">34"DD</span></td>
                                            </tr>
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Waist</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">26"</span></td>
                                            </tr>
                                            
                                            <tr>

                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Hips</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">37"</span></td>
                                            </tr>
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Dress Size</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">10</span></td>
                                            </tr>

                                            
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Shoe Size</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">UK 5.5</span></td>
                                            </tr>
                                          </tbody></table>
                                        </td>
                                        <td valign="top" align="right">
                                          <span class="blkMediumBold">&nbsp;</span>

                                        </td>
                                        <td valign="top" width="50%" align="right">
                                          <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">
                                            <tbody><tr>
                                              <td id="contentSubBar" colspan="2" valign="center" align="left"><span class="blkMediumBold">Location / Experience</span></td>
                                            </tr>
                                            
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Location</span></td>

                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">london, Greater London</span></td>
                                            </tr>
                                            
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Country</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">United Kingdom</span></td>
                                            </tr>
                                            <tr>

                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Will Travel</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">Yes</span></td>
                                            </tr>
                                            <tr>
                                              <td id="contentSubWindow" valign="center" width="175" align="left"><span class="blkMedium">Experience</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">Advanced</span></td>
                                            </tr>

                                            <tr>
                                              <td id="contentSubWindow" valign="top" width="175" align="left"><span class="blkMedium">Will Work For</span></td>
                                              <td id="contentSubWindow" valign="center" align="left"><span class="blkMedium">
                                                <img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Pay<br>
                                                <img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Photos<br>
                                                <img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Negotiable</span>
                                              </td>

                                            </tr>
                                          </tbody></table>
                                          <br>
                                          <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">
                                            <tbody><tr>
                                              <td id="contentSubWindow" valign="top" width="175" align="left"><span class="blkMedium">Member Since</span></td>
                                              <td id="contentSubWindow" valign="top" align="left" nowrap="nowrap"><span class="blkMedium">02-02-2005 07:16am</span></td>
                                            </tr>

                                            <tr>
                                              <td id="contentSubWindow" valign="top" width="175" align="left"><span class="blkMedium">Last Active</span></td>
                                              <td id="contentSubWindow" valign="top" align="left" nowrap="nowrap"><span class="blkMedium">10-28-2009 06:59am</span></td>
                                            </tr>
                                            
                                          </tbody></table>
                                          <!-- IM Information -->
                                          <br>
                                          <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">

                                            <tbody><tr>
                                              <td id="contentSubWindow" valign="center" align="left">
                                                <table width="100%" border="0" cellpadding="1" cellspacing="1">
                                                  
                                                  <tbody><tr>
                                                    <td align="center"><span class="blkMedium">You must be logged in to see IM information.</span></td>
                                                  </tr>
                                                  
                                                </tbody></table>
                                              </td>

                                            </tr>
                                          </tbody></table>
                                                  
                                        </td>
                                      </tr>
                                    </tbody></table>
                                    <!-- End Statistics -->
                                    <br>
                                    <!-- Start Modeling Assingments of Interest -->
                                    <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">

                                      <tbody><tr>
                                        <td id="contentSubBar" colspan="3" valign="center" align="left"><span class="blkMediumBold">Assignments of Interest</span></td>
                                      </tr>
                                      <tr>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Runway</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Tradeshow</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Spokesmodel</span></td>

                                      </tr>
                                      <tr>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Bodyparts</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Print (Catalog)</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Print (Editorial)</span></td>
                                      </tr>
                                      <tr>

                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Print (Advertising)</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Print (Fitness)</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Print (Swimwear)</span></td>
                                      </tr>
                                      <tr>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Swimwear</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Fitness</span></td>

                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Lingerie</span></td>
                                      </tr>
                                      <tr>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Sheer / See-Thru</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Semi-Nudes</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Artistic / Figure Nudes</span></td>
                                      </tr>

                                      <tr>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;"Playboy" Style Nudes</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-False.jpg" width="12" height="12">&nbsp;Erotic</span></td>
                                        <td id="contentSubWindow" width="33%"><span class="blkMedium"><img alt="" src="../images/Box-DarkOrchid-True.jpg" width="12" height="12">&nbsp;Fetish</span></td>
                                      </tr>
                                    </tbody></table>
                                    <!-- End Glamour Assingments of Interest -->

                                    <br>
                                    <!-- Start Detailed Description -->
                                    
                                    <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">
                                      <tbody><tr>
                                        <td id="contentSubBar" valign="center" align="left"><span class="blkMediumBold">Models Notes</span></td>
                                      </tr>
                                      <tr>
                                        <td id="contentSubWindow">
About Me
</td>

                                      </tr>
                                    </tbody></table>
                                    <!-- End Detailed Description -->
                                  </td>
                                </tr>
                              </tbody></table>
                            </td>
                          </tr>
                          
                          <!-- End Agency Information -->

                        </tbody></table>
                        <!-- End Tab = 1 -->
                        <!-- Start Tab = 2 -->
                        
                      </td>
                    </tr>
                  </tbody></table>
                </td>
              </tr>
            </tbody></table>

          </td>
        </tr>
      </tbody></table>
      <!-- End Tabbing -->
      <!-- Start Homepage Link -->
      <br>
      <table width="100%" bgcolor="#000000" border="0" cellpadding="4" cellspacing="1">
        <tbody><tr>
          <td id="contentWindow">

            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tbody><tr>
                Homepage link
                </td>
                
              </tr>

            </tbody></table>
          </td>
        </tr>
      </tbody></table>
      <!-- End Homepage Link -->
    </td> 

How would I do this with vBulletin Tables?
Can anyone please provide the code?

Lynne 10-28-2009 02:58 PM

What do you mean "How would I do this with vBulletin Tables?" vB doesn't have any tables, or table code. You just add what you have up there into your template. Of course, if this is stuff you are grabbing from your database, you will have to put a query in your page to get the data. Then, in your table above, you would put in variable names instead of just the text.

Hex_legend 10-28-2009 03:12 PM

When I copy that code into my template, it doesn't look too good, just keeps a basic background with no borders or category headings.

I need to have it look like the vb category headings and table classes as shown here:

PHP Code:

 <table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>

<
td class="tcat" width="100%">
<
div style="text-align: center;">
New 
Table Title
</div>
</
td>

</
tr>

<
tr>

<
td class="alt1" width="100%">
<
div class="smallfont">
This is a vBulletin tableTable class: <strong>tborder</strong>. 1st Td class: <strong>tcat</strong>. 1st Td text align: <strong>center</strong>. Second Td class: <strong>alt1</strong>. Border0. Width100%. Aligncenter.
</
div>
</
td>

</
tr>
</
table

I have tried replacing things but it messes up the whole style of the table. I just want to create a table that looks similar to the profile link above but with the table code I've just posted.

bobster65 10-28-2009 03:15 PM

hey bro.. you also need to grab their CSS for any ID's and Classes associated with it.. just add the appropriate CSS elements to your style in the additional CSS area..

Hex_legend 10-28-2009 03:21 PM

Ive tried replacing ContentSubBar with tcat to no avail :(


All times are GMT. The time now is 10:09 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.03359 seconds
  • Memory Usage 1,949KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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