vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Signature forced to bottom (postbit_legacy) (https://vborg.vbsupport.ru/showthread.php?t=128951)

flindersredclaw 07-30-2007 05:59 PM

The original code worked spot on on 3.6.8

flindersredclaw 08-01-2007 03:38 PM

... However I have not worked out how to apply this to the postbit template

EvilKitty 08-02-2007 02:47 AM

Quote:

Originally Posted by ACIKillJoy (Post 1258187)
For those who are using postbit_legacy templates that do not include this line:
PHP Code:

<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px"

I have found a fix.

You need to find this:
PHP Code:

<tr valign="top">
    <
td class="alt2" width="175">
            
            <
div id="postmenu_$post[postid]"

then change it to this:
PHP Code:

<tr valign="top">
    <
td class="alt2" width="175" rowspan="2">
            
            <
div id="postmenu_$post[postid]"

Then delete this:
PHP Code:

$template_hook[postbit_signature_start]
       
        <if 
condition="$post['signature']">
        <!-- 
sig -->
            <
div>
                
__________________<br />
                
$post[signature]
            </
div>
        <!-- / 
sig -->
        </if>
       
        
$template_hook[postbit_signature_end

find this:

PHP Code:

<!-- / edit note -->
        </if>
    
    </
td>
</
tr

and after add this:
PHP Code:

<tr>
    <
td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        
$template_hook[postbit_signature_start]
            <if 
condition="$post['signature']">
        <!-- 
sig -->
                <
hr size="1" style="color:$stylevar[tborder_bgcolor]/>
                <
div valign="bottom">
                <
center>$post[signature]</center>
                </
div>
        <!-- / 
sig -->
            </if>
        
$template_hook[postbit_signature_end]
    </
td>
</
tr

I added a center tag around my $post[sig] code just to make it look better on my site. feel free to remove it if you want.
This is working on 3.6.7
To see it working on my site here is a link to a post
http://www.anticheatinc.com/forums/s...02&postcount=1


This almost solved it for me - only there's a sort of ugly white long above the black line now.

Ohiosweetheart 08-05-2007 04:25 PM

I've had a problem with this hack dividing the message side of my postbit_legacy. See my screenshot. It's the same problem that EvilKitty seems to be having.

There are 2 or 3 fixes on this thread in addition to the original post. Do any of them actually work now?

DrussRob 08-24-2007 11:37 PM

I'm by no means good at this, so just a suggestion here.
Would that line maybe be a function of the css?

DrussRob 08-25-2007 03:47 AM

ok, so I investigated my own advice and think I came up with a fix.

This is what I did to get rid of the line.

AdminCP>Styles & Templates>Style Manager>Main CSS>

Now scroll down to "First Alternating Color". You'll see something like this:
Code:

border-left: 1px solid #212121;
border-right: 1px solid #212121;
border-top: 5px solid #212121;
border-bottom: 5px solid #212121;

Change the 5's to 0's and save. I'm not sure if you have to do it in the "Second Alternating Color", but I did and it didn't seem to hurt.

Cigarcritic 08-27-2007 12:38 AM

Thanks.....SecTa , works great!

Grunt 09-05-2007 01:12 PM

I ran into the same thing awhile back with this mod - yes it is the borders defined in alt1/2 tags.

Instead of losing your alt borders throughout your forums just for this mod (unless it's of no consequence), create two 'Additional CSS Definitions' that are duplicates of your alt's minus the borders, which more than likely only leaves the background color. Then, in your postbit_legacy template replace all instances of alt1 and alt2 with the newly created definitions.

Code:

.alt1a {background-color: #F5F5FF;}
.alt2a {background-color: #E1E4F2;}

Or something along those lines..

SliceofLife 09-10-2007 11:09 AM

Thank you for this! It works well on my forum. Exactly what I wanted :D

SliceofLife 09-10-2007 11:34 PM

For some reason, the original code started making all the posts double up, but this code below seems to work fine. Thank you :D

Quote:

Originally Posted by SecTa (Post 1255194)
The line
HTML Code:

<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
is not that good, cause it's used for "Last edited" separation, so, it's better to leave the original one. Also, when applying this hack, "last edited' info is shown ABOVE the signature, which is not good. And there's signature hooks appear to be misplaced.
Here's my alternative to this hack, with needed fixes:

In postbit_legacy, find:
HTML Code:

        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Change to:
HTML Code:

        <td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
Then find:
HTML Code:

                $template_hook[postbit_signature_start]
               
                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
               
                $template_hook[postbit_signature_end]
               
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
       
        </td>
</tr>


Replace With:
HTML Code:

        </td>
</tr>
<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
                $template_hook[postbit_signature_start]
                <if condition="$post['signature']">
                <!-- sig -->
                        <div valign="bottom">
                            __________________<br />
                            $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                $template_hook[postbit_signature_end]
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>
                </td>
</tr>

Works with vB 3.6.7
Sledgstone, could you please update your first post? :rolleyes:



All times are GMT. The time now is 08:18 PM.

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.01227 seconds
  • Memory Usage 1,801KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_html_printable
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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