vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   I need some tag placement help (https://vborg.vbsupport.ru/showthread.php?t=295921)

edgeless 03-08-2013 10:15 PM

I need some tag placement help
 
I did (or am trying to do) this modification on vB 4.2.0:

https://vborg.vbsupport.ru/showthread.php?t=170238

I can't seem to get the bottom cell to extend down over the 'Thanked X Times in X Posts' field. I would sure appreciate it if someone could look at my tag placement and help me out.


https://vborg.vbsupport.ru/external/2013/03/44.png

In Post Thank You Hack's post_thanks_postbit_info, I have:
Code:

<vb:if condition="$post['userid']">
    <div class="postinfo_thanks"><dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd></div>
    <div class="postinfo_thanked"><vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
    <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
    <vb:else />
        <dd style="white-space:nowrap; display:inline; float: {vb:stylevar left};">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd></else>
    </vb:if>
  </div>
  </vb:if>

And in additional.css, I have:
Code:

.postinfo {
        border-top: solid 1px #E0E0E0;
        border-left: solid 1px #E0E0E0;
        border-right: solid 1px #D7D7D7;
        border-bottom: solid 1px #D7D7D7;
        margin: 3px 0px;
        padding: 2px;
        color: #AA7025;
        background: #FAFAFA;
        font-size: 10px;
}

.postinfo_thanks {
        border-top: solid 1px #E0E0E0;
        border-left: solid 1px #E0E0E0;
        border-right: solid 1px #D7D7D7;
        border-bottom: solid 1px #D7D7D7;
        margin: 3px 0px;
        padding: 2px;
        color: #AA7025;
        background: #FAFAFA;
        font-size: 10px;
}

.postinfo_thanked {
        border-top: solid 1px #E0E0E0;
        border-left: solid 1px #E0E0E0;
        border-right: solid 1px #D7D7D7;
        border-bottom: solid 1px #D7D7D7;
        margin: 3px 0px;
        padding: 2px;
        color: #AA7025;
        background: #FAFAFA;
        font-size: 10px;
}


Then, of course, in postbit_legacy I have the necessary references to .postinfo in additional.css.

Any guidance will be much appreciated!

nerbert 03-09-2013 01:33 AM

Would you consider a link to your site? I'm terrible with CSS but you can experiment with it with Chrome's (or other browsers') developer tools

edgeless 03-09-2013 02:03 AM

Quote:

Originally Posted by nerbert (Post 2408928)
Would you consider a link to your site? I'm terrible with CSS but you can experiment with it with Chrome's (or other browsers') developer tools

Well, right now the site is blocked from the public Internet... there's no way to access it unless your IP is exempted in the server's filter rules. Only a few of the admins currently have access to it. I'm terrible with CSS too, obviously. But I'm fairly sure the directives in additional.css are correct. I suspect the problem is with the </div> tag placement in post_thanks_postbit_info, but there may also be something which should be included in the code that's not. I'm just hoping someone can tell me what that 'something' might be and/or where I've gone wrong on the tag placement.

nerbert 03-09-2013 02:09 AM

Well, just to experiment try adding "overflow-y:hidden;" to the css for the <div> and you might try setting "display:block" for the <dd> style, but the latter is just a wild guess

edgeless 03-09-2013 02:38 AM

Quote:

Originally Posted by nerbert (Post 2408933)
Well, just to experiment try adding "overflow-y:hidden;" to the css for the <div> and you might try setting "display:block" for the <dd> style, but the latter is just a wild guess

Guess what? Adding "overflow-y:hidden;" to the CSS entirely fixed the issue! :)

I appreciate this more than I can express! You've really helped immensely!

nerbert 03-09-2013 02:45 AM

<i>Aw, shucks!</i>


All times are GMT. The time now is 08:25 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.01117 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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