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)

Sledgstone 10-12-2006 10:00 PM

Signature forced to bottom (postbit_legacy)
 
This mod will force all user's signatures to the bottom of their post. This is helpful if you have custom fields displayed under your avatars. Only 3 code changes are required in the postbit_legacy template. It'll take you about one minute to install this.

I have attached a couple screenshots showing what this mod does. I also have enabled this on my forums and you can see an example there:

http://forums.ancientclan.com/



In postbit_legacy, find:

Code:

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

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

Delete it.


Now find:
Code:

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

Directly underneath add:

Code:

<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

                <if condition="$post['signature']">
                <!-- sig -->
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <div valign="bottom">
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                </td>
</tr>

Before: Attachment 54617 After: Attachment 54618

DJ_aroms 10-13-2006 02:15 AM

nice mod, thanks. :)

kronikdj 10-13-2006 04:49 AM

awesome

/me clicks install

canpare 10-13-2006 09:13 AM

thanks , nice ;)

mhdhallak 10-13-2006 11:31 AM

AMAZING! Just what I've been looking for. This is how they should've done it from the beginning. Thanks alot. Installed :)

Acido 10-13-2006 12:58 PM

Excellent!
Thanx for sharing ;)

Kaleem 10-13-2006 04:44 PM

Great mod Intalled

eNforce 10-13-2006 05:12 PM

Can I have it completely any of the borders it adds?

Code:

<tr>
<td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" valign="bottom">
                <if condition="$post['signature']">
                <!-- sig -->
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <div valign="bottom">
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                </td>
</tr>

You can see here:
http://www.areyouserios.com/showthread.php?t=448

tekstylez 10-13-2006 08:52 PM

very nice

NeitherSparky 10-14-2006 04:55 AM

Some of my members were asking for this when we first moved from Proboards (on PB the sig is at the bottom so they had gotten used to it). Thanks!

miner 10-14-2006 08:17 AM

Thank you nice hack...

Sledgstone 10-14-2006 12:37 PM

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

Ohiosweetheart 10-14-2006 11:08 PM

FANTASTIC!!!! Thanks for the great mod!

An attached text file would be good ;)

NeitherSparky 10-16-2006 01:05 AM

Quote:

Originally Posted by Ohiosweetheart
An attached text file would be good ;)

I agree with this.

Also, thank you muchos for the instructions on how to get rid of that stupid line. ;)

As for my users: I presented them with the mod and they said they didn't like it! Said they didn't like the "space" in the middle of the posts. Mind you, when we first moved from Proboards, they were complaining about the space at the BOTTOM of the posts, and they asked me specifically if I could make the sigs go to the bottom. Geez. ;)

Pinky30 10-19-2006 01:20 PM

Don?t work with the Blue Vision Style from vBDesigns
What must I chance here?

My postbit_legacy Template:

Code:

<div class="frbg" $post[scrolltothis]>
      <div class="frbgl"></div>
      <div class="frbgr"></div>
      <div class="fortext" >
            <div  style="float:right;padding:0;margin:-2px 0 2px 0;">
                        &nbsp; [ <a href="showthread.php?p=$post[postid]#post$post[postid]"><strong>Diesen Beitrag direkt verlinken</strong></a> ]
                        &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>
        <if condition="$show['announcement']">
                        <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 />
                       
                        <!-- status icon and date -->
                        <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" />
                        $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->                                </if>
      </div>
</div>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center">
<tr valign="top">
        <td class="alt2" width="175">
                        <a name="post$post[postid]"></a>
                        <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 />
                                <div class="pibu"><div class="pib"><if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div></div></div>
                        </div>                                       
               
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]">
        <else />
        <td class="alt1" id="td_post_$post[postid]">
        </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]">$post[message]</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>
                                <br />
                                <fieldset class="fieldset">
 <legend><b>Signatur von $post[musername]</b></legend>
$post[signature]<br />
</fieldset>

                        </div>
                <!-- / sig -->
                </if>
               
                <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>
<tr>
        <td class="alt2"  >
                $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" align="$stylevar[right]">
        <else />
        <td class="alt1" align="$stylevar[right]">
        </if>
                <!-- controls -->
                <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>
<a href="cmps_index.php"><img src="$stylevar[imgdir_button]/bportal.gif" alt="$vbphrase[portal]" border="0" /></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>
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/btop.gif" alt="$vbphrase[top]" 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>
</table>

<!-- 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 -->


thepub 10-19-2006 04:45 PM

I cannot find the first set of code you are saying to look for in vb3.6.2 postbit legacy. I found it in one style but after carefully reading and searchin, the code is not in my other style :(

|oR|Greg 10-19-2006 05:15 PM

Well, Thanks for the hack first off, nice idea. However because my board is so heavily modded your code had to have lots of changes. I eventually got it all working, but one thing I did notice. If a user doesn't have a signature, it adds a small empty amount of space between the post and the controls beneath the post. It does this because your hack adds a new row whether or not the user has a signature. To overcome this you can do the following:

Find:
Code:

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

<if condition="$post['signature']">
<td class="alt2" width="175" rowspan="2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
<else />
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
</if>

Find:
Code:

<tr>
<td class="alt1" valign="bottom" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

                <if condition="$post['signature']">
                <!-- sig -->
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        <div valign="bottom">
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                </td>
</tr>

Replace with:
Code:

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


thepub 10-19-2006 06:29 PM

Quote:

Originally Posted by Sledgstone
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

ok I did this and my forum is completely screwed up! Seriously, I have tried to make it normal again and it's not working. my members are freaking out, I'm freaking out and I do not know what to do.

|oR|Greg 10-19-2006 08:05 PM

Revert your templates pub.

thepub 10-19-2006 08:34 PM

I did and now my vbplaza is gone and I dont know how to put it in for that template :(

|oR|Greg 10-20-2006 03:07 PM

Oy, yeah well... by revert I assumed you didn't have other hacks, you should have gone into the template history and compared the 2, and rebuilt the current one minus the changes made by this hack.

Download vbplaza again and go thru the product.xml to see what you're missing for that template, it might take a while, and a lot fo trial and error, but you'll eventually get it. It's just the postbit_legacy so it can't have screwed up plaza too badly.

pascalvisit 10-20-2006 07:20 PM

i tryed every code in the post and i still have the empty space :(

|oR|Greg 10-21-2006 03:01 AM

Pascal, I tried all of Sledgstones code as well and I too had the space. I ended up having to customize it for my site because I have so many hacks running.

What his code attempts is continue using cellspacing="1" overall for the template, but to override it in a few spots with the CSS code placement. You'll have to play with your template in order to get it looking right. It IS possible, don't give up. Take a look at mine.

http://www.amacny.com/vb/showthread.php?t=2522 (I'm GTOOOOOH BTW)

Ang3ls 10-21-2006 05:52 AM

Nice, Thanks for the great mod! :D

pascalvisit 10-21-2006 08:57 AM

Quote:

Originally Posted by |oR|Greg
Pascal, I tried all of Sledgstones code as well and I too had the space. I ended up having to customize it for my site because I have so many hacks running.

What his code attempts is continue using cellspacing="1" overall for the template, but to override it in a few spots with the CSS code placement. You'll have to play with your template in order to get it looking right. It IS possible, don't give up. Take a look at mine.

http://www.amacny.com/vb/showthread.php?t=2522 (I'm GTOOOOOH BTW)

Thank you for your answer but when i try to change the styles template, it doesn't appear correctly in the generated source.

BTW, i have nothing installed i try to hack the original (reverted) postbit_legacy so it s probably coz of my style css..

|oR|Greg 10-21-2006 02:20 PM

What's your site address?

Canis Firebrand 10-23-2006 01:49 AM

very Nice. I had a similar one installed that was in the 3.5.x section. It looked a bit similar, but it left gaps in the lefthand section with the avatar and all the icons.

this one takes care of that issue.

Nice job!

blacklancer 11-02-2006 08:07 PM

mine gets all screwed up cuz of rowspan="2" and looks like this :

Attachment 55444

any help???

DrewzR/T 11-03-2006 10:29 PM

I also had a different skin so my postbit was jacked. I figured it out. This is all I had for the first edit.

Code:

<td class="alt2" width="175">
Then this is what I did to make it work

Code:

<td class="alt2" width="175" rowspan="2">
May not help some but hopefully some can use it.

ogameclub 11-04-2006 05:05 PM

Thanks for useful hack.

thepub 11-16-2006 06:13 PM

I was able to install this somewhat successfully, but no when typing pm's the pm body box is stretched out side of the style (fixed style and it goes past it on the side)

Netaudio 11-16-2006 06:39 PM

Hello, Sledgstone

[Hello vbullet.org ... my 1.]

Don?t work with my postbit_legacy Template?!

Can You Help m, please?

Code:

<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="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]" 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>
                </td>
        <else />
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-right: 0px" $post[scrolltothis]>               
                        <!-- 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 -->                               
                </td>
                <td class="thead" style="font-weight:normal; border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px" align="$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>
                </td>
        </if>
</tr>
<tr valign="top">
        <td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">
                       
                        <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>$vbphrase[join_date]: $post[joindate]</div></if>
                                <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>
                                <if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
                                <if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
                               
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
                        </div>                                       
               
        </td>
        <if condition="$show['moderated']">
        <td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        <else />
        <td class="alt1" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">
        </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]">$post[message]</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>
<br />
<fieldset class="fieldset">
<legend><b><font color="#DF1818">$post[username]</font>'s Signatur</b></legend>
$post[signature]<br />
</fieldset>
</div>
<!-- / sig -->
                </if>
               
                <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>
<tr>
        <td class="alt2" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px">
                $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" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        <else />
        <td class="alt1" align="$stylevar[right]" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-left: 0px; border-top: 0px">
        </if>
                <!-- controls -->
                <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>
</table>

<!-- 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 -->


Flow Fusion 11-17-2006 01:43 PM

How would I add a text field at the bottom of the signatures? A field for like [fieldx]?

MustangLisa 11-18-2006 02:57 AM

Fantastic, thanks!!

ripsaw 11-18-2006 02:58 AM

Doesn´t work with my postbit_legacy Template either?!

Too bad. I'd love to do this.

picardtux 11-18-2006 07:27 AM

many thX

|oR|Greg 12-11-2006 02:03 PM

Works great with mine, try my version maybe...

DannyMilner 12-11-2006 02:50 PM

Thanks for sharing, wanted this for a while

maxicep 12-15-2006 01:30 PM

thanks installed.

krazycivik 12-18-2006 06:47 AM

awsome mod thank you makes my forums look alot cleaner and organized great work


All times are GMT. The time now is 06:16 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.01988 seconds
  • Memory Usage 2,062KB
  • 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
  • (26)bbcode_code_printable
  • (3)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