![]() |
Last post by column - how to add a 1 pixel width border to the left and right?
|
either for alt 1 or alt 2 add
border-left: 1px solid #e3e3e3 into the CSS from admincp |
Hi thanks,
1st Alt I have: border-right: 1px solid #e3e3e3; 2nd Alt I have: border-right: 1px solid #e3e3e3; But look at the problem. Unlike in the example of how I want the forum to look (http://i35.tinypic.com/e81udj.jpg), there is a line to the right of the statusicon column: https://vborg.vbsupport.ru/external/2008/11/11.jpg Also, I circled where the text is creeping over into the next column, but that's a separate issue :-/ |
change the length of the text that appears for the last post Its in the vbulletin options some where
Open your forumhome_forumbit_level2_post template (I think thats the one, usually the first or second line of code) and find the cell for the statusicons. <td class="alt2"> Change to <td style="background: #fff;"> |
Hi, thank you that solved the issue of the border near the icons.
Next, how do I add a thin border to the left of the message content? As you can see, there's a border to the left of the Thanks part. https://vborg.vbsupport.ru/external/2008/11/10.jpg |
You should have had one added there automatically my guess is your postbit_legacy template has been modified to remove the alt1 or alt2 from the Avatar side of things.
If you open up your postbit_legacy template, and search for the <td> that holds all the avatar information you should be able to add class="alt1" back into it. |
I have spent some time tweaking variables, inserting code and reverting back & forth.
I managed to get the line to appear last night, then reverted, now I cannot remember how I did it. This is my postbit_legacy code: Quote:
|
It is very difficult to read code in a quote tag. Please use the html tag for html and the php tag for php.
|
Quote:
To recap, I want to add a border running down the left side of the message content. Here is the postbit_legacy (HTML tag rather than PHP is correct?): HTML Code:
$template_hook[postbit_start] |
I compared your template to a default template and you have the correct css in there - it wasn't taken out.
HTML Code:
<tr valign="top"> HTML Code:
<tr valign="top"> |
Thanks, this is not the result when I replace $stylevar[cellspacing] with 1:
https://vborg.vbsupport.ru/external/2008/11/2.jpg White line breaking up the separator there. I think I want that to stay solid. On the defunct site I am trying to emulate, that part was solid. |
It looks like you edited the wrong area. You need to edit the row where the avatar and post contents goes not the row where the date/postcount is.
|
I feel like giving up. In the end I changed every instance of $stylevar[cellspacing] with 1. Still no line appearing, except for where Thanks are displayed.
https://vborg.vbsupport.ru/external/2008/11/1.jpg |
I don't know what else to suggest except to view your source code where it is working and duplicate that where it isn't working.
|
try changing
Code:
<tr valign="top"> Code:
<tr valign="top"> |
Thanks everyone, I think this is nearly cracked. Just two issues now;
(1) The small gaps that are circles - presumably this is because of the padding I inserted, so is it possible to have padding which only applies to the X axis? (2) How can I get a line to appear, where I marked in red? https://vborg.vbsupport.ru/external/2008/12/116.jpg Current postbit code: HTML Code:
$template_hook[postbit_start] |
<div id="post_message_$post[postid]">
to <div id="post_message_$post[postid]" style="border-top: 1px solid #3e3e3e;"> |
Thanks,
That produces a line just below where I want it :/ https://vborg.vbsupport.ru/external/2008/12/111.jpg |
<td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px" $post[scrolltothis]>
To <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-$stylevar[right]: 0px; border-bottom: 1px solid;" $post[scrolltothis]> |
Excellent, very nearly there. Just one small issue now, the small gaps, how can I delete those?:
https://vborg.vbsupport.ru/external/2008/12/110.jpg Once again, the Postbit code: HTML Code:
$template_hook[postbit_start] |
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|