Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2009, 04:29 PM
pts123's Avatar
pts123 pts123 is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing the width of a column . . .

I would like to change the width of the "Last Post" column on the leading edge by about 20 or 30 pixels. I'm finding if the user has a ID name of more than 5 or 6 characters the date and ID run into each other causing the whole Forum listing to be wider and I want to stop that. I've attached a screenshot of it.

I have looked at css settings, templates and I just can't seem to find the place to make this change? Does anyone know, thanks

JD in KC
Attached Images
File Type: jpg Last post.JPG (29.1 KB, 0 views)
Reply With Quote
  #2  
Old 09-06-2009, 04:38 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change the width in the template that has the title "Last Post". To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.
Reply With Quote
  #3  
Old 09-06-2009, 06:31 PM
pts123's Avatar
pts123 pts123 is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did what you said and where it lead me was to forumhome_lastpostby template, but no references that I could recognize that set the position or size? But thanks
Reply With Quote
  #4  
Old 09-06-2009, 06:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you are looking at the wrong area in the source code. The template should be something like forumhome_forumbit_level* (maybe forumhome_forumbit_level1_nopost ?).
Reply With Quote
  #5  
Old 09-06-2009, 07:59 PM
pts123's Avatar
pts123 pts123 is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK . . . I looked in those templates and I see allot of references to LastPost, but I see no references to size or position. I've learned allot and do most of the changes myself, but this one might be a bit much for my experience . . . Unless I was able to find out exactly where to go . . . don't think I'll find it.

But thanks - learning a little more everyday
Reply With Quote
  #6  
Old 09-06-2009, 08:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know there is no reference to the size because by default it just does whatever it wants. If you want it larger, you need to set the width:

HTML Code:
<td class="thead" width="25%">$vbphrase[last_post]</td>
Set to whatever you want. If the other columns have widths set, you can modify them also.
Reply With Quote
  #7  
Old 09-06-2009, 11:54 PM
pts123's Avatar
pts123 pts123 is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK . . . did a little looking at the source code on the main page and then I found another website that had the width the way I want mine. Here is what I believe to be the pertinent code and how I want to set it.

<tr align="center">
<td class="thead" width="5%">&nbsp;</td>
<td class="thead" width="60%" align="left">Forum</td>
<td class="thead" width="25%">Last Post</td>
<td class="thead" width="5%">Threads</td>
<td class="thead" width="5%">Posts</td>

If you notice the width percentage added to each section. OK, next below is my site the way it is now, no percentages. So if I add that it should force the change, but I can't find the location of this code? I searched on template search and nothing showed up? As you see the previous template ended and no template starts, just <!-- main --> Where is that??

<!-- END TEMPLATE: navbar -->

<!-- main -->

<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="left">Forum</td>
<td class="thead">Last Post</td>
<td class="thead">Threads</td>
<td class="thead">Posts</td>
Reply With Quote
  #8  
Old 09-07-2009, 03:20 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can try a Search in Templates for <!-- main --> and it should show up. It may also be the template named at the very top of the page.
Reply With Quote
  #9  
Old 09-07-2009, 05:27 PM
pts123's Avatar
pts123 pts123 is offline
 
Join Date: Oct 2007
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aha . . . found that code in FORUMHOME and after playing around with the percentages a bit, I got it perfect. Thanks for working me through it.
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 10:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04265 seconds
  • Memory Usage 2,261KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete