vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Postbit Legacy - Signature Inside a Cell (https://vborg.vbsupport.ru/showthread.php?t=194721)

Boosted Panda 10-26-2008 10:00 PM

Postbit Legacy - Signature Inside a Cell
 
1 Attachment(s)
Ever hate the horizontal line in the signatures? Well here is a great way to separate your signatures and give your forum a nice and clean vertical look. This is for the Postbit_Legacy template layout. I will help with this mod. I am not an expert coder so if anyone wants to give advice it is totally welcomed in a constructive fashion. Enjoy!!!

Find:
PHP Code:

$template_hook[postbit_signature_start]

Remove Code in Between Here

$template_hook
[postbit_signature_end

Find:
PHP Code:

        $template_hook[postbit_controls]
        <!-- / 
controls -->
    </
td>
</
tr>
</
table

Add Below:
PHP Code:

<table class="signature" width="100%">
        <if 
condition="$post['signature']">
            <
tr>
            <
td class="alt2">
                <!-- 
sig -->
                <
div>
                    
$post[signature]
                </
div>
                <!-- / 
sig -->
            </
td>
            </
tr>
        </if>  
</
table

Add in the additional CSS Area of Your Template
PHP Code:

.signature 
border-leftsolid 1px #0B198C;
border-rightsolid 1px #0B198C;
border-bottomsolid 1px #0B198C;
background#FFFFFF;


For the above code I suggest matching this with your .tborder values. Enjoy!


</span></span>

Leo Brazil 10-28-2008 11:43 AM

Great Idea. Installed !!!

lazydesis 10-28-2008 12:07 PM

thats looks very good :)

dmknights 11-12-2008 04:06 PM

does this work on 3.7.4?

Leo Brazil 11-12-2008 05:13 PM

Yes, it does work on 3.7.4

eTiKeT? 11-13-2008 04:33 AM

good ınstalled :)

Knightmane 12-18-2008 01:19 AM

Great mod. This is running smoothly. Thanks a lot.

DarkGizmo 12-18-2008 02:26 AM

Looks crappy, sorry but I won't be installing this one.

Boosted Panda 12-19-2008 06:19 PM

Quote:

Originally Posted by NegativeSmoke (Post 1687753)
Looks crappy, sorry but I won't be installing this one.

Its not for everyone.

Keesa 12-29-2008 05:54 AM

this is awesome! Thanks for your work!

ragtek 12-29-2008 05:58 AM

hi
i would also take the templatehooks into the modification!

RTMdotORG 12-30-2008 04:04 PM

how can i make the border not as wide? I Got It...

the border color looks better the same as background color

Boosted Panda 12-30-2008 06:41 PM

Thanks everyone, if people want to post there variation, post it up here in the thread. This is a super simple but clean way of organizing those pesky signatures.

Vaupell 02-12-2009 10:21 AM

tx installed, but moved it all inside the post table, but below the reply bottons.

lovely.

trulylowcarb 02-16-2009 09:34 PM

1 Attachment(s)
Quote:

Thanks everyone, if people want to post there variation, post it up here in the thread. This is a super simple but clean way of organizing those pesky signatures.
Thanks so much for your post, and your graciousness too.
I ultimately used your post as pointers on where to change the stock signature. I wasn't totally happy with the changes as you wrote them, so I haven't marked as installed, but I used your post to help me modify the signature to look better.... I always hated that stupid __________ line, and always wanted a different background, so instead of doing just as you said, and adding anything to the exra css, I simply changed the postbit legacy code a bit, and I am much happier with the appearance now.

As per your encouragement to share, here is my template hook for the sig now:
Code:

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
    <if condition="$post['signature']">
  <!-- sig --><br /><br />
  <div span class='alt2'>
    <hr>
    $post[signature]
  </div>
  <!-- / sig -->
  </if>
  $template_hook[postbit_signature_end]

This is what mine looks like now - I also moved it to above the controls.

Boosted Panda 02-19-2009 09:34 PM

Quote:

Originally Posted by trulylowcarb (Post 1746282)
Thanks so much for your post, and your graciousness too.
I ultimately used your post as pointers on where to change the stock signature. I wasn't totally happy with the changes as you wrote them, so I haven't marked as installed, but I used your post to help me modify the signature to look better.... I always hated that stupid __________ line, and always wanted a different background, so instead of doing just as you said, and adding anything to the exra css, I simply changed the postbit legacy code a bit, and I am much happier with the appearance now.

As per your encouragement to share, here is my template hook for the sig now:
Code:

$template_hook[postbit_signature_start]
$ad_location[ad_showthread_firstpost_sig]
    <if condition="$post['signature']">
  <!-- sig --><br /><br />
  <div span class='alt2'>
    <hr>
    $post[signature]
  </div>
  <!-- / sig -->
  </if>
  $template_hook[postbit_signature_end]


Good pointer! I actually used some CSS code to put a height contrained box with scroll bars for sigs. Nice and clean! That ______ is so annoying! Ever replacing with an HR makes it looks cleaner.

Leo Brazil 02-20-2009 09:55 AM

Hi guys, do you mind in sharing screenshoots for your new ideas ? May be not all will use but would be nice to have even more new ideas, you know, like people say: images "say" more than words.

Tks

trulylowcarb 02-20-2009 03:10 PM

Quote:

Originally Posted by Leo Brazil (Post 1749781)
Hi guys, do you mind in sharing screenshoots for your new ideas ? May be not all will use but would be nice to have even more new ideas, you know, like people say: images "say" more than words.Tks

You are right!
I just added a screenshot to my original post with the applicable code. If you like the avatar block's look, check out the Postbit Tabs mod by Digital Jedi that I incorporated at the same time. I just need to make myself some smaller control buttons now, and I think I will be happy/done for a while. :)

Leo Brazil 03-02-2009 01:53 PM

Thanks trulylowcarb for screeny, great idea and thank you for sharing.

matrixc0d3 03-02-2009 05:11 PM

thx good work :)

l_amhed 03-10-2009 12:29 PM

Hi, this is my version with very very few modifications :

Code:

<table class="tborder" width="100%" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0">
        <if condition="$post['signature']">
            <tr>
            <td width="175" class="alt2">
        &nbsp;
            </td>
            <td class="alt2">
                <!-- sig -->
                <div>
                    $post[signature]
                </div>
                <!-- / sig -->
            </td>
            </tr>
        </if> 
</table>

I put an already existent class so no need to add an extra CSS part.

Boosted Panda 03-27-2009 06:53 PM

Don't forget those who use the <HR> that property is not very mature.


All times are GMT. The time now is 04:13 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.01275 seconds
  • Memory Usage 1,773KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete