vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Last Post Alignment Fix in Forum Home (https://vborg.vbsupport.ru/showthread.php?t=180937)

Super Jinni 05-28-2008 10:00 PM

Last Post Alignment Fix in Forum Home
 
what is this for?

some times when we use another style beside the default style of vbulletin, th last post in the forum home be not aligned in each category and be different in width form category to another depending on the width of the title of the last post... (screenshoots below explain more).

and this simple mod is to fix that and make the width of last post table the same in every category. whatever the title width is..

1- go to you "FORUMHOME" template
2- look for the the following code:

HTML Code:

<tr align="center">
        <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="175">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
        </if>
</tr>

3- if it there remove it and save the template. if it not there just let the template as it is without any changes.

4- go to "forumhome_forumbit_level1_nopost" template

5- find the following code:

HTML Code:

<tr align="center">
        <td class="thead">&nbsp;</td>
          <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="175">$vbphrase[last_post]</td>
          <td class="thead">$vbphrase[threads]</td>
          <td class="thead">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead">$vbphrase[moderator]</td>
  </if>
</tr>

6- if it there, replace it with the following:

HTML Code:

<tr align="center">
          <td class="thead" width="5%">&nbsp;</td>
          <td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="25%">$vbphrase[last_post]</td>
          <td class="thead" width="10%">$vbphrase[threads]</td>
          <td class="thead" width="10%">$vbphrase[posts]</td>
          <if condition="$vboptions['showmoderatorcolumn']">
          <td class="thead" width="0%">$vbphrase[moderator]</td>
  </if>
</tr>

and save.

if it not there just add it exactly after the following code:

Code:

<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
then save and it's done.

if you like this one and find it useful, please mark it as Installed

A.M.

pureturk 05-29-2008 07:56 PM

someone please tell me what this thing does?

Super Jinni 05-29-2008 08:19 PM

my fault

edited...

see the first post

:)

zionsworld 05-29-2008 08:54 PM

tnx that helped me a lot :)

kudos

Super Jinni 05-29-2008 09:15 PM

glad to heat that

don't forget to mark as installed

:)

mark370 05-31-2008 05:59 AM

Many-thanks for thiis mod Super J works a treat :up:

Super Jinni 05-31-2008 07:01 AM

you're welcome
glad you like it
:)

digicom 05-31-2008 11:04 AM

Apprciated,Thankyou:up:

popowich 05-31-2008 02:01 PM

A minor irritation for me has been fixed, thanks!

BTW, I think 5% looks better than 10% for threads and posts.

On wide monitors it makes a big difference, without impacting the 800x600 viewers.

-Raymond

Super Jinni 05-31-2008 03:40 PM

maybe you are right

for me I didn't set the width of threads and posts count only the width of forum and last post..

the most important is that to set the forum and and the last post..

but if -in some cases with some styles- you have the alignment problem in the threads and post count table, then you should set them...

and after all, it depends on the style and on how you want it to be shown up..

and it's better not to set the last post less than 21% as I test it..


All times are GMT. The time now is 10:08 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.01044 seconds
  • Memory Usage 1,745KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete