vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How to reduce the signature border's width? (https://vborg.vbsupport.ru/showthread.php?t=280346)

Emeralda 03-19-2012 01:44 PM

How to reduce the signature border's width?
 
It's the line that splits the post from the signature. It seems to be always 100%, and I'd like to set it to 80% for example. How could I do it, since the stylevars seems to have only the size (width) of that line, and not it's width (length).



http://img708.imageshack.us/img708/1...94f826828d.png

http://img210.imageshack.us/img210/3...c51bd3f5e4.png

Emeralda 03-23-2012 11:45 PM

bump

setishock 03-24-2012 01:45 AM

Found this in > postbit.css. Added the left and right margins.
Code:

/*signature */
.signature {
        padding-top: 1em;
        border-top: {vb:stylevar signature_border};
margin-left: 50px;
margin-right: 50px;
        margin-top: 2em;
}

Just keep bumping the left and right margins till you get it like you want it.

Emeralda 03-24-2012 10:44 PM

<a href="http://img692.imageshack.us/img692/5756/11f828e5199b446c818d832l.png" target="_blank">http://img692.imageshack.us/img692/5...6c818d832l.png</a>

Hmmm, we might be getting somewhere, but the margins there influenced the whole signature space, and not only the top border line.

Adam H 03-24-2012 11:17 PM

You would have to add another class above the normal signature line in the postbit legacy. Use that for the border , then remove the border from the signature line and retain that 100% with.

The reason you would have to do it like this is because the entire signature container's width is control by the same class, the same class that controls the top border .

Emeralda 03-25-2012 09:47 AM

I could somehow understand the making new class thing, but how do you remove it from the current sig and add a new border like that?

HTML Code:

                                {vb:raw template_hook.postbit_signature_start}
                                <vb:if condition="$post['isfirstshown']">
                                        {vb:raw ad_location.ad_showthread_firstpost_sig}
                                </vb:if>
                                <vb:if condition="$post['signature']">
                                        <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
                                </vb:if>
                                {vb:raw template_hook.postbit_signature_end}

Is something about it there?

Adam H 03-25-2012 09:59 AM

you dont want to remove the current sig, you just want to remove the css line from the current signature class.

Emeralda 03-25-2012 04:50 PM

Ohhh, I get it now, yeah, I see the border top part in the css. But how would I go with inserting the line? In the template? What should I put there?

Adam H 03-25-2012 05:06 PM

You would just do something like this :

Add this to your additional.css to remove the current top border :

Code:

.signature {
    border-top: none;
    margin-top: 2em;
    padding-top: 1em;
}

Then in add this to the additional.css for your new border :

Code:

.signatureborder {
    border-top: 1px solid #DDDDDD;
    margin: auto;
    width: 80%;
}

Then goto postbit_legacy and find :

Code:

<vb:if condition="$post['signature']">
Directly under it do something like :

Code:

<div class="signatureborder"></div>
I havent tested it or anything but you get the general idea .


All times are GMT. The time now is 02:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01081 seconds
  • Memory Usage 1,731KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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