Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #42  
Old 12-31-2008, 09:21 AM
SSJB_7 SSJB_7 is offline
 
Join Date: Jul 2008
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot it's very nice looking now
Reply With Quote
  #43  
Old 01-18-2009, 04:23 PM
sundarmobiles sundarmobiles is offline
 
Join Date: Oct 2007
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont have any change to make in the FORUMHOME bit

Here is my extract for forumhome_forumbit_level1_nopost:
Code:
<tr>
			  <td class="thead" style="width: 4%;">&nbsp;</td>
			  <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
			  <td class="thead" style="width: 26%;" nowrap="nowrap">$vbphrase[last_post]</td>
			  <td class="thead" style="width: 5%; text-align: center;">$vbphrase[threads]</td>
			  <td class="thead" style="width: 5%; text-align: center;">$vbphrase[posts]</td>
			  <if condition="$vboptions['showmoderatorcolumn']">
			  <td class="thead">$vbphrase[moderator]</td>
			  </if>
		</tr>

still it is not aligned
Reply With Quote
  #44  
Old 01-20-2009, 06:10 PM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was looking for this thanks a lot!
Reply With Quote
  #45  
Old 01-24-2009, 08:55 PM
arabswell arabswell is offline
 
Join Date: Dec 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Many thanks
Reply With Quote
  #46  
Old 02-09-2009, 04:57 PM
2dub 2dub is offline
 
Join Date: Dec 2007
Location: Moyock, NC
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was wondering if this could be made to work in other columns my issue is not in the last post area. If so how would I fix my issue (see attached image)?

Thanks,
Warren
Reply With Quote
  #47  
Old 05-26-2009, 04:59 AM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

exactly what i need!!!!!! love it!
Reply With Quote
  #48  
Old 05-29-2009, 01:14 AM
magicman17 magicman17 is offline
 
Join Date: Jan 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i need help i fu$$ed my template up and need someone to look at it asap please pm me will pay to get it fixed!!
Reply With Quote
  #49  
Old 06-22-2009, 04:08 AM
Dingo14 Dingo14 is offline
 
Join Date: Dec 2007
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah thanks for this a great fixed realigned the site back to how it should be
Reply With Quote
  #50  
Old 08-07-2009, 07:59 AM
Zacaretas Zacaretas is offline
 
Join Date: Mar 2009
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I created a new style and noticed that the alignment was off. I did a quick search on Google and this thread came up. This hack fixed the problem and it was just what I was looking for. It's working on 3.8.2.

(:
Reply With Quote
  #51  
Old 10-09-2009, 08:03 AM
scool scool is offline
 
Join Date: Sep 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

greetings to all.

Am i missing something?
i followed the steps from the developer..but still my forum home is not aligned perfectly , as i saw other forums..

my website is this one -> GameBattles.gr

as you can see in index..the lines are not aligned.
i have done exactly the steps as the developer said.

can you help plz?
thanks in advance!
Reply With Quote
Reply


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:11 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.08148 seconds
  • Memory Usage 2,313KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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