vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Last Post/Threads/Post Columns Misaligned (https://vborg.vbsupport.ru/showthread.php?t=183704)

pjkcards 06-27-2008 03:52 PM

Last Post/Threads/Post Columns Misaligned
 
Hello,
On this page, notice how the "Official WCA Competitions" subforum has the Last Post/Threads/Post Columns misaligned. Is there is quick fix for this? The support forum for the skin is no longer open, so I was wondering if it was something I could try fixing myself. How would I go about resolving the problem?

Thanks in advance.

ry215 06-27-2008 06:31 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=180937" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=180937</a>

pjkcards 06-27-2008 11:58 PM

Hello,
That didn't work. Here is my forumhome template at the part he said to correct:
Code:

<tr align="center">
          <td class="thead" width="30">&nbsp;</td>
          <td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[forum]</td>
          <td class="thead" width="<if condition="is_numeric($stylevar[outertablewidth])">200<else />250</if>" nowrap="nowrap">$vbphrase[last_post]</td>
          <td class="thead" width="60" nowrap="nowrap">$vbphrase[threads]</td>
          <td class="thead" width="50" nowrap="nowrap">$vbphrase[posts]</td>
       
        </tr>

And here is my forumhome_forumbit_level1_nopost template:
Code:

</table>
<if condition="$show['subforums']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="margin-bottom: 10px;">
<thead>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        </tr>
</thead>
<else />
<ca-hdr>
                <td class="tcat" width="100%">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                </td>
</ca-hdr>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="margin-bottom: 10px; border-top-width: 0;">
</if>
<tbody>
        <tr align="center">
          <td class="thead" width="30">&nbsp;</td>
          <td class="thead" align="$stylevar[left]" nowrap="nowrap">$vbphrase[forum]</td>
          <td class="thead" width="<if condition="is_numeric($stylevar[outertablewidth])">200<else />250</if>" nowrap="nowrap">$vbphrase[last_post]</td>
          <td class="thead" width="60" nowrap="nowrap">$vbphrase[threads]</td>
          <td class="thead" width="50" nowrap="nowrap">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead" width="0%">$vbphrase[moderator]</td>
  </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

Any ideas as to why it didnt work? Thanks

Dismounted 06-28-2008 05:06 AM

Tables will always stretch to display all the data inside them. You need to set a width that will be more than the width of any data.

ry215 06-28-2008 02:04 PM

this is work for me:

http://www.giaitriviet.de/forum/

pjkcards 06-28-2008 10:19 PM

Quote:

Originally Posted by Dismounted (Post 1560934)
Tables will always stretch to display all the data inside them. You need to set a width that will be more than the width of any data.

So what width should I use? Can you please post the code? Thanks

Dismounted 06-29-2008 01:13 PM

I don't know what width you should use. You need to find a width that will be longer than the truncate point.

pjkcards 06-30-2008 01:22 AM

1) Am I editing this part of the forumhome_forumbit_level1_nopost template:?
Code:

<td class="thead" width="0%">$vbphrase[moderator]</td>
I tried 30% and 50% in there, and neither seemed to do anything. 2) What is that [moderator] td supposed to do?

3) How do I find a width that will be longer than the truncate point? 4) What is the truncate point?


All times are GMT. The time now is 05:25 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.01077 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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