Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Last Post Alignment Fix in Forum Home Details »»
Last Post Alignment Fix in Forum Home
Version: 1.00, by Super Jinni Super Jinni is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.0 Rating:
Released: 05-28-2008 Last Update: Never Installs: 72
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:

Comments
  #2  
Old 05-29-2008, 07:56 PM
pureturk pureturk is offline
 
Join Date: Jun 2007
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

someone please tell me what this thing does?
Reply With Quote
  #3  
Old 05-29-2008, 08:19 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my fault

edited...

see the first post

Reply With Quote
  #4  
Old 05-29-2008, 08:54 PM
zionsworld zionsworld is offline
 
Join Date: Apr 2008
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tnx that helped me a lot

kudos
Reply With Quote
  #5  
Old 05-29-2008, 09:15 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad to heat that

don't forget to mark as installed

Reply With Quote
  #6  
Old 05-31-2008, 05:59 AM
mark370 mark370 is offline
 
Join Date: Feb 2008
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many-thanks for thiis mod Super J works a treat :up:
Reply With Quote
  #7  
Old 05-31-2008, 07:01 AM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you're welcome
glad you like it
Reply With Quote
  #8  
Old 05-31-2008, 11:04 AM
digicom's Avatar
digicom digicom is offline
 
Join Date: Apr 2006
Location: England Uk
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apprciated,Thankyou:up:
Reply With Quote
  #9  
Old 05-31-2008, 02:01 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 05-31-2008, 03:40 PM
Super Jinni Super Jinni is offline
 
Join Date: Mar 2008
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:05 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.06480 seconds
  • Memory Usage 2,296KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete