vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Postbit reputation different than other fields? (https://vborg.vbsupport.ru/showthread.php?t=260993)

need2fart 03-27-2011 05:57 AM

Postbit reputation different than other fields?
 
I have the css:
Code:

.post_field {
        background: #1b1b1b;
        color: #fff;
        border: 1px solid #2c2c2c;
        padding: 3px 3px 3px 10px;
        margin-top: 2px;
        text-align:left;
}
.post_field strong {
        color: #fea619;
}
.post_field dt {
        color: #fea619;
        font-weight:700;
}

And I just call
Code:

<vb:if condition="$show['infraction'] OR $show['reppower']">
                                <dl class="user_rep">
                                        <vb:if condition="$show['infraction']">
                                        <dt>{vb:rawphrase infractions}</dt>
                                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                                        </vb:if>
                                        <vb:if condition="$show['reputation']"><div class="post_field">
                                                <vb:if condition="$show['reppower']">
                                        <dt>{vb:rawphrase reppower}</dt>
                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </div></vb:if>
                                        </vb:if>
                                </dl>
                                </vb:if><vb:if condition="$show['infraction'] OR $show['reppower']">
                                <dl class="user_rep">
                                        <vb:if condition="$show['infraction']">
                                        <dt>{vb:rawphrase infractions}</dt>
                                        <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd>
                                        </vb:if>
                                        <vb:if condition="$show['reputation']"><div class="post_field">
                                                <vb:if condition="$show['reppower']">
                                        <dt>{vb:rawphrase reppower}</dt>
                                        <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd>
                                                </vb:if></div>
                                        </vb:if>
                                </dl>
                                </vb:if>

The other fields show up fine except reputation^

https://vborg.vbsupport.ru/external/2011/03/4.png

How do I make it so reputation spans all the way across like the other fields?

Lynne 03-27-2011 06:02 PM

Can we get a link to see this?

need2fart 03-28-2011 02:45 AM

Quote:

Originally Posted by Lynne (Post 2178045)
Can we get a link to see this?

Sure: http://therunebay.com/showthread.php?90-Hello

Lynne 03-28-2011 03:49 AM

The other areas stretch 180px because of this:
HTML Code:

.postbitlegacy .userinfo .userinfo_extra {    float: left;    font-size: 11px;    width: 180px;}
The div you have the rep in is only set to be 80px wide.

need2fart 03-29-2011 12:43 AM

Quote:

Originally Posted by Lynne (Post 2178208)
The other areas stretch 180px because of this:
HTML Code:

.postbitlegacy .userinfo .userinfo_extra {    float: left;    font-size: 11px;    width: 180px;}
The div you have the rep in is only set to be 80px wide.

Hmm.. How can I fix that? If I put the width: 180px; inside the
Code:

.post_field {
        background: #1b1b1b;
        color: #fff;
        border: 1px solid #2c2c2c;
        padding: 3px 3px 3px 10px;
        margin-top: 2px;
        text-align:left;
        width: 180px;
}

Would that be a proper way to resolve this? Or would it be more proper to modify the reputation div? & is it safe to do that? lol.

Lynne 03-29-2011 03:35 AM

I don't even see post_field being used there - I see you using class vbipostbit.

But, what you want it to apply it here:
HTML Code:

.postbitlegacy dl.userinfo_extra, .postbitlegacy dl.user_rep{width: 180px;}

need2fart 03-29-2011 08:34 AM

Quote:

Originally Posted by Lynne (Post 2178607)
I don't even see post_field being used there - I see you using class vbipostbit.

But, what you want it to apply it here:
HTML Code:

.postbitlegacy dl.userinfo_extra, .postbitlegacy dl.user_rep{width: 180px;}

Oops. I was referencing that class from the other style. Thanks Lynnee it looks perfect now. :)


All times are GMT. The time now is 01:12 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.01052 seconds
  • Memory Usage 1,740KB
  • 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_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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