vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Liquid style - lining up tables. (https://vborg.vbsupport.ru/showthread.php?t=64201)

ixian 04-21-2004 04:04 PM

Liquid style - lining up tables.
 
1 Attachment(s)
I'm using the fine Forums arranged in columns on Forumhome hack, and adding images. I've been futzing around with the templates to get everything to line up right, and I am almost there, but I've run into a roadblock.

Per the attached screenshot - I can line things up just fine with a fixed-width forum, but I cannot get it to line up with a liquid style. This is seriously annoying:). Here's the code from the column template:

PHP Code:

<td colspan="1">
<
img src="$stylevar[imgdir_statusicon]/forums/forum_$forum[forumid].gif" alt="forum_$forum[statusicon].gif" title="">
</
td>
<
td colspan="40">
        <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>

<
div class="smallfont">$forum[description]</div>


<if 
condition="$show['lastpostinfo']">
<
div class="smallfont" align="$stylevar[left]">
    <
div class="smallfont">
        <
a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostuser[trimthread]</strong></a>

        <
phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]2="$lastpostinfo[lastposter]">last post <strong>$vbphrase[by_x]</strong></phrase>
    </
div>
    
<
div align="$stylevar[right]">
        
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>

        <
a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]border="0"></a>
    </
div>
</
div>

<else />

    
$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostuser[lastpostuser]</span></if>
</if>
<
td class="alt2" colspan="15" border="0"><center>$forum[replycount]</center></td

and here's the relevent bit from forumhome_forumbit_level1_nopost:

PHP Code:

<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<if 
condition="$childforumbits">
<
tbody id="collapseobj_forumbit_$forumidstyle="{$collapseobj_forumid}">
<
tr align="center">
      
      <
td colspan="2" class="thead" align="left" width="90%" align="$stylevar[left]">$vbphrase[forum]</td>
          <
td class="thead" align="left">$vbphrase[posts]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
          <
td class="thead" width="90%" align="left">$vbphrase[forum]</td>
      <
td class="thead" align="left">$vbphrase[posts]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
      
    </
tr>
<if 
condition="$forum['subforumcolumns'] > 1">
    <
tr>
        <
td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<
table style="border: none; width: 100%;">
            
$childforumbits
</table>
        </
td>
    </
tr>
<else />
    
$childforumbits
</if>
</if>
</
tbody

Notice from the screen shot how "Posts" and "Forum" don't line up right on the left - they don't "stick" to the top of their respective columns.

Can anyone lend a hand here? It's seriously driving me nuts.

Thanks!

Boofo 04-21-2004 05:08 PM

You need to go to vbulletintemplates.com for any templates questions. ;)


All times are GMT. The time now is 02:23 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.02233 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)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