vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Change width of "Last Post" on forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=252222)

patt1293 10-18-2010 04:38 AM

Change width of "Last Post" on forumdisplay
 
Hey guys, as you can see here, i need to increase the width of the "Last Post" Box on my forumdisplay for my new sub-forums.

Picture:
http://screensnapr.com/u/7hg24a.png

Any idea?

BigJohnny 10-19-2010 11:14 AM

search around for "last post alignment fix" there is a chunk of code that has no width attributes and needs them set.

patt1293 10-21-2010 11:33 PM

Quote:

Originally Posted by BigJohnny (Post 2111617)
search around for "last post alignment fix" there is a chunk of code that has no width attributes and needs them set.

EDIT*

Thanks!!

BigJohnny 10-22-2010 01:02 AM

here, this was corrected by me to include the if statement and allow for correct alignment if the moderator column is on or off. Also because it uses percentages instead of hard coded values it will maintain its ratio no matter what the users resolution.

Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr align="center">
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead" width="5%">&nbsp;</td>
          <td class="thead" width="55%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="20%">$vbphrase[last_post]</td>
          <td class="thead" width="5%">$vbphrase[threads]</td>
          <td class="thead" width="5%">$vbphrase[posts]</td>
          <td class="thead" width="10%">$vbphrase[moderator]</td>
          <else />
          <td class="thead" width="5%">&nbsp;</td>
          <td class="thead" width="60%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="25%">$vbphrase[last_post]</td>
          <td class="thead" width="5%">$vbphrase[threads]</td>
          <td class="thead" width="5%">$vbphrase[posts]</td>
          </if>
        </tr>
$forumbits
<tbody>
        <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>&nbsp; &nbsp;</strong></div></td>
        </tr>
</tbody>
</table>



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