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)

IAWBody 12-20-2006 03:15 AM

thanks I've been needing this! :D

Daracon 12-22-2006 07:27 AM

thanks! *clicks install*

principino1984 12-22-2006 11:39 PM

i'll try to install it! I'll let you know...in any case this is a nice mod!

Marco

adonfun 12-26-2006 01:15 PM

Looks like a great mod if it works. Do you know if it'll work with 3.6.4 ?

Sledgstone 12-29-2006 08:19 PM

Quote:

Originally Posted by adonfun (Post 1145298)
Looks like a great mod if it works. Do you know if it'll work with 3.6.4 ?

Yes, it works fine with 3.6.4

adonfun 12-30-2006 05:25 PM

Quote:

Originally Posted by Sledgstone (Post 1147153)
Yes, it works fine with 3.6.4

:D Thank you Sledgstone :) Will install it in the beginning of 2007

Happy New year!!

Brew 01-04-2007 04:31 PM

I have been wanting this for a long time. I've always thought sigs look too close to the messages. Having them down at the bottom looks a lot better I think.

But I am having a problem with this hack...and it's not the authors fault....it's the skin I'm using. The following line is missing, so I can't even try some of the posts in this thread to fix this:

HTML Code:

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

There was a post in this thread about this problem who's attached image was what I am looking for but without the above code in my skin I can't figure out how to accomplish that.

I've been tinkering with this for hours but I just can't seem to be able to get the border from appearing above the sig. The code looks like this:

HTML Code:

<td class="alt2" BGCOLOR="white" BORDER="0" BORDERCOLOR=WHITE valign="bottom">

<if condition="$post['signature'] AND (($vboptions[warn_sig_thresshold]<0 AND $post[warning_level]>=$vboptions[warn_sig_thresshold]) OR $vboptions[warn_sig_thresshold]==0)">
<td class="alt2" BGCOLOR="white" BORDER="0" BORDERCOLOR=WHITE valign="bottom">               
                <!-- sig -->
                       
                        <div valign="bottom">
                                $post[signature]
                        </div>
                <!-- / sig -->
                </td></if>
                </td>


Another problem is that if someone does not have a sig the cell background is black.

If anyone would please go to one of the posts at my site and look at the source I would greatly appreciate it.

Here's one thread that has a few posts in it where you can see the line and an empty sig with the black background:

http://www.politicalforums.net/forum...ead.php?t=2552

I know this thread probably shouldn't be an HTML tutorial, but I am really stuck with this.

cfish 01-04-2007 05:50 PM

Thank you very much - works perfectly and should be part of the default vB style.

Click Install.

adnedarn 01-13-2007 05:40 PM

I ended up having a really wired screen. Turned out I ended up with a extra <tr> above the last data add. I don't know where it came from or if it was related to this... But, removing that fixed it. it looks great! thanks

akulion 01-29-2007 07:53 AM

couldnt get this to work

the last edit throws off my entire theme (black n blue)

dunn why

but good mod all the same

Sparticus_V2 02-01-2007 06:18 PM

any solutions for the problem of the skins that dont have the
Quote:

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

BillieJoe 03-24-2007 07:58 AM

great mod thx. *installed*

InTeNsE-HuMoR 04-16-2007 04:15 PM

Any way to get it to work for this?

Code:

<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
<br />

<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="98%" align="center" style="border-bottom-width:0px">
<tr>
        <td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="27" height="32" alt="Verified!" /></td>
        <td class="alt2"><strong><font size="2" color="#339900">V E R I F I E D</font></strong><br /><font size="1">This message was sent by an official <strong>$vboptions[bbtitle]</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>

<br />
</if>
<if condition="THIS_SCRIPT != 'private'">
<div class="tcat_top_iefix">
<table class="tcat_big" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
        <tr>
                <td class="tcat_left"></td>
                <td class="tcat">
                <if condition="$post['title']">$post[title]<else />Re: $thread[title]</if>
        </td>
                <td class="tcat_right"><img src="$stylevar[imgdir_misc]/skin/spacer.gif" class="spacer" alt="" /></td>
        </tr>
</table>
</div>

<div class="tborder_big">
<div class="tborder_big_right">
</if>
<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
<tr>
        <if condition="$show['announcement']">
                <td class="thead" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor];font-weight:normal;" colspan="2">
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
        <else />
                <td class="thead" colspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor];font-weight:normal;" $post[scrolltothis]>
                <div style="float: $stylevar[right];">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
                        <if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align: middle; padding:0px; margin: 0px 0px 0px 5px;" value="$post[checkbox_value]" />
                        </if>
                </div>
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
        </if>
</td>
</tr>
<tr valign="top">
<td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0; border-bottom: 0; border-top: 0; text-align: center;">
<img src="$stylevar[imgdir_misc]/skin/spacer.gif" style="width: 175px; height: 1px;" alt="" />
                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                <else />
                                $post[musername]
                                </if>
                        </div>
                       
                        <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                        <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
               
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if>
                       
                        <div class="smallfont">
                                &nbsp;<br />
                                <if condition="$post['joindate']"><div class="postbit_field"><span class="postbit_text">$vbphrase[join_date]:</span> $post[joindate]</div></if>
                                <if condition="$post['field2']"><div class="postbit_field"><span class="postbit_text">$vbphrase[location_perm]:<span> $post[field2]</div></if>
                                <if condition="$post['age']"><div class="postbit_field"><span class="postbit_text">$vbphrase[age]:</span> $post[age]</div></if>
                                <div class="postbit_field"><span class="postbit_text">
                                        $vbphrase[posts]:</span> $post[posts]
</div>
<!-- Start Post Thank You Hack -->
<if condition="$post[userid]"><div class="postbit_field"><span class="postbit_text">
$vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount]
<br />
<if condition="$post[post_thanks_thanked_times_on] == 1"><div class="postbit_field"><span class="postbit_text">
$vbphrase[post_thanks_time_post]
<else />
<if condition="$post[post_thanks_thanked_posts_on] == 1"><div class="postbit_field"><span class="postbit_text">
<phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase>
<else />
<phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase>
</if>
</if>
</if>
</div>
</div>
</div>
<!-- End Post Thank You Hack -->
<if condition="$post[FIELD_HASBLOG]"><div class="postbit_field"><span class="postbit_text">
  <a href="$vboptions[blog_url]/viewblog.php?$session[sessionurl]userid=$post[userid]">
  <span style="font-weight:bold; font-size:11px; text-decoration:none;">
    <phrase 1="$post[username]">
          $vbphrase[blog_visit_x_blog]
    </phrase>
  </span></a>
 </if>
                               
                                <if condition="$show['infraction']"><div class="postbit_field"><span class="postbit_text">$vbphrase[infractions]:</span> $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><if condition="$show['reppower']"><div class="postbit_field"><span id="reppower_$post[postid]_$post[userid]" class="postbit_text">$vbphrase[reppower]</span>: $post[reppower]</if></div><div class="postbit_field"><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                <if condition="$post[icqicon] OR $post[aimicon] OR $post[msnicon] OR $post[yahooicon] OR $post[skypeicon]"><div class="postbit_icons">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></if>
                        </div>
                $post[onlinestatus]
                <if condition="$show['reputationlink']">
                        <span id="reputationmenu_$post[postid]"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow" id="reputation_$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a></span>
                        <if condition="$show['popups']"><script type="text/javascript"> vbrep_register("$post[postid]")</script></if>
                </if>                               
                <if condition="$show['infractionlink']"><a href="infraction.php?$session[sessionurl]do=report&amp;p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/infraction.gif" alt="<phrase 1="$post[username]">$vbphrase[add_infraction_for_x]</phrase>" border="0" /></a></if>
                <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if>
                $post[iplogged]
                &nbsp;
        </td>

        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-bottom: 0; width: 100%;">
        <else />
        <td id="td_post_$post[postid]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-bottom: 0; width: 100%; height: 100%;" class="alt1">
        </if>
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title -->
                        <div class="smallfont">
                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <!-- / icon and title -->
                </if>
               
                <!-- message -->
                <div id="post_message_$post[postid]" class="overflow_parent"><div class="overflow_child">$post[message]</div></div>
                <!-- / message -->
       
                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">
                       
                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>
               
                        <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>
                       
                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>
                       
                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>               
                        </if>
                       
                        </div>
                <!-- / attachments -->
                </if>
               
                <if condition="$post['signature']">
                <!-- sig -->
                __________________
                        <div class="overflow_parent"><div class="overflow_child">

                                $post[signature]
                        </div></div>
                <!-- / sig -->
                </if>
</td>
</tr>
<tr valign="bottom">
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0; border-top: 0; ">&nbsp;</td>
        <if condition="$show['moderated']">
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0; text-align: right; padding: 3px; height: 23px;">
        <else />
        <td class="alt1" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0; text-align: right; width: 100%; padding: 3px; height: 23px;">
</if>
                <!-- controls -->
<!-- Start Post Thank You Hack -->
$post_thanks_button
<!-- End Post Thank You Hack -->
                <if condition="$post['editlink']">
                        <img style="display: none" id="progress_$postid" src="$stylevar[imgdir_misc]/progress.gif" alt="$vbphrase[loading_editor_please_wait]" />
                        <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
                </if>
                <if condition="$post['forwardlink']">
                        <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
                </if>
                <if condition="$post['replylink']">
                        <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
                </if>
                <if condition="$show['multiquote_post']">
                        <a href="$post[replylink]" rel="nofollow" onclick="return false"><img src="$stylevar[imgdir_button]/multiquote_<if condition="$show['multiquote_selected']">on<else />off</if>.gif" alt="$vbphrase[multi_quote_this_message]" border="0" id="mq_$post[postid]" /></a>
                </if>
                <if condition="$show['quickreply'] AND !$show['threadedmode']">
                        <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
                </if>
                <if condition="$show['moderated']">
                        <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
                </if>
                <if condition="$show['deletedpost']">
                        <img src="$stylevar[imgdir_misc]/trashcan.gif" alt="$vbphrase[deleted_post]" border="0" />
                </if>
                <if condition="$show['redcard']">
                        <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/redcard.gif" alt="$vbphrase[received_infraction]" border="0" /></a>
                <else />
                        <if condition="$show['yellowcard']">
                                <a href="infraction.php?$session[sessionurl]do=view&amp;p=$post[postid]"><img src="$stylevar[imgdir_button]/yellowcard.gif" alt="$vbphrase[received_warning]" border="0" /></a>
                </if>
                        </if>
                <!-- / controls -->
        </td>
</tr>
<if condition="$show['postedited']">
<tr>
        <td class="alt1" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0;" colspan="2">

                        <!-- edit note --><em class="smallfont">
                        <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><!-- / edit note -->
        </td>
</tr>
</if>
</table>
</div>
</div>
<div class="tbottom">
<div class="tbottom_left"></div>
<div class="tbottom_right"></div>
</div>
<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
        </table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->


jazzastudios 04-17-2007 12:27 AM

this was REALLY helpful, thank you SO much, i was looking everywhere and found my solution here. thank you

UaeStar 04-18-2007 08:12 PM

nice man

InTeNsE-HuMoR 04-20-2007 02:57 AM

[bump] any fix for my problem posted above?

dbirosel 04-25-2007 07:52 PM

Quote:

Originally Posted by Sledgstone (Post 1096869)
Thanks for the nice words everyone. :)

For those of you that have that extra line above your signature, this is because you have cellspacing set to 1 for your main postbit_legacy table. Most people use cellspacing="1" to add that border line inbetween the two main cells of the table and to add the border lines to seperate the online/reputation/etc icons and the edit/quote/etc buttons from their respective cells. As of vb 3.6 there is a border sperating the main cells so you don't need to add any extra code for that one, but for the bottom rows you can still keep those borders by doing the following:

(Before doing this, please look at the screenshots to see the before and after to make sure you like the results and that you still want to do this.)

In postbit_legacy

Find:

Code:

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
Replace with:

Code:

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
Find:

Code:

        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
Replace with:

Code:

        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 1px">
Find:

Code:

        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
Replace with:

Code:

        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 1px">
With cellspacing="1" (Notice the extra line above the sig.) Attachment 54666 After these code changes: Attachment 54667

Tried this and it still had a line. Am i doing something wrong???

GrendelKhan{TSU 05-03-2007 04:52 PM

OMG THANK YOU!!! been wanting this for this forever!!
(very happy now :))

<< installed!! :D :D

NaughtyStud 05-04-2007 08:17 AM

Very nice Mod, thank you and clicked install. ;)

SecTa 05-26-2007 09:15 PM

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:

Tulsa 05-27-2007 11:12 PM

Perfect on 3.6.7 Two thumbs up, this is even better now... Thanks for this SecTa.

dope15gd 05-29-2007 08:04 PM

Quote:

Originally Posted by SecTa (Post 1255194)
snip:

This worked perfectly for me. The OP's way screwed some things up, but yours is perfect. thanks for posting this

Skedoozy 05-30-2007 02:16 AM

Quote:

Originally Posted by dbirosel (Post 1235412)
Tried this and it still had a line. Am i doing something wrong???

these changes also did nothing for me

ACIKillJoy 05-31-2007 06:56 AM

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

Chadi 06-14-2007 02:44 AM

[edit: fixed, sorry]

foxfirediego 07-04-2007 08:15 PM

still haven't found a way to fix this line
i've already read the thread
thx for the mod..

Aneurysm 07-13-2007 04:41 AM

Thanks, it's a great look

4x4 Mecca 07-13-2007 05:40 AM

remove this line
Code:

                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
and that line will be gone

tmod 07-14-2007 01:55 AM

Quote:

Originally Posted by 4x4 Mecca (Post 1289766)
remove this line
Code:

                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
and that line will be gone

Actually that won't remove the line he/she is referring to.

That will remove the line that is directly above the signature which you can barely see in the image.

The line he is referring to is due to the rowspan="2" addition and the skin that he is running.

Tmod

tmod 07-15-2007 03:47 AM

Anyone that has a aftermarket skin may have the problem with that line that is directly under the post and then a big space and then the signature.

Well I hated the line there and played with some code until I got it looking the way I wanted it to.

So here is my edition of this mod.

Go to the postbit_legacy template for the skin you are working with.

Find This:
Code:

<td class="alt2" width="175">
Replace With This:
Code:

<if condition="$post['signature']">
<td class="alt2" width="175" rowspan="2">
<else />
<td class="alt2" width="175">
</if>

Find This:
Code:

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

Replace With This:
Code:

$template_hook[postbit_signature_start]
                <if condition="$post['signature']">
<tr height="1">
<td class="alt1" valign="bottom">
                <!-- sig -->
                        <div valign="bottom">
                                $post[signature]
                        </div>
                <!-- / sig -->
                </td>
</tr>
</if>

                $template_hook[postbit_signature_end]

Now save the template and refresh the forum and it should show a bit neater then it did before.

Tmod

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 01:05 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.01709 seconds
  • Memory Usage 2,074KB
  • 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
  • (15)bbcode_code_printable
  • (12)bbcode_html_printable
  • (12)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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