vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

andy626 05-20-2011 10:38 AM

Arrgh, sorry everyone I'm having problems.

I have uploaded the files into correct spots but I don't understand this step below

3) Edit settings in the Admin CP. (Integration settings are in the Groan Hack).

I have searched here for the groan hack for VB4 but there is no download for that hack and I'm not even sure what I'm supposed to do in this step?

Chase 05-23-2011 09:31 PM

I'm trying to figure out how to put the

Thanks: #
Thanked x times in x posts

in a BG box thingy.

I have this in my additional CSS

PHP Code:

.pbit {
padding-left3px;
padding-right0px;
padding-top2px;
padding-bottom2px;
background-color#F4F4F4;
border-top1px solid #D8D8D8;
border-right1px solid #D8D8D8;
border-left2px solid #AD1515;
border-bottom1px solid #D8D8D8;
margin-bottom2px;


And I need to place this somewhere in my post_thanks_postbit_info to get it in a BG box

PHP Code:

<div class="pbit">Thanks</div

Any ideas?

DS MrSinister 05-23-2011 11:13 PM

Quote:

Originally Posted by Chase (Post 2199256)
I'm trying to figure out how to put the

Thanks: #
Thanked x times in x posts

in a BG box thingy.

I have this in my additional CSS

PHP Code:

.pbit {
padding-left3px;
padding-right0px;
padding-top2px;
padding-bottom2px;
background-color#F4F4F4;
border-top1px solid #D8D8D8;
border-right1px solid #D8D8D8;
border-left2px solid #AD1515;
border-bottom1px solid #D8D8D8;
margin-bottom2px;


And I need to place this somewhere in my post_thanks_postbit_info to get it in a BG box

PHP Code:

<div class="pbit">Thanks</div

Any ideas?

try this replace your post_thanks_postbit_info template with this one. hope this helps.

Code:

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


Chase 05-24-2011 02:47 AM

Thanks that worked!

DS MrSinister 05-24-2011 02:52 AM

very welcome.

Chase 05-24-2011 02:54 AM

1 Attachment(s)
Only problem I have is that I can't get the "Thanked x Times in X Posts" to stay inside the box and not push on outwards. Take a look at the attached pic.

Any suggestions here?

Chase 05-24-2011 02:57 AM

How can I fix this without having to keep widening the postbit width?

raj4x 05-24-2011 07:35 AM

Thanks DS MrSinister and Chase, excellent! :)

Chase: perhaps have the second line wrapped?

Chase 05-24-2011 09:46 AM

thanks for the response! How would I wrap the secound line? :)

raj4x 05-24-2011 11:36 AM

Chase, here's what I found:

Look for "nowrap" and change to "wrap".

So in this case, for example:
PHP Code:

<dd style="white-space:nowrap; ... 

now becomes:
PHP Code:

<dd style="white-space:wrap; ... 

And it should work.

So the new code snippet for the "post_thanks_postbit_info" template (you'd have to play with where to use nowrap and wrap):

PHP Code:

<div class="pbit">
<
vb:if condition="$post['userid']">
    <
dt>{vb:rawphrase post_thanks_thanks}</dt> <dd>{vb:raw post.post_thanks_user_amount_formatted}</dd>
    <
vb:if condition="$post['post_thanks_thanked_times'] == 1">
        <
dd style="white-space:nowrap; display:inline;">{vb:rawphrase post_thanks_time_post}</dd>

    <
vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
        <
dd style="white-space:wrap; display:inline;">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>

    <
vb:else />
        <
dd style="white-space:wrap; display:inline;">{vb:rawphrase post_thanks_times_posts, {vb:raw post.post_thanks_thanked_times_formatted}, {vb:raw post.post_thanks_thanked_posts_formatted}}</dd>
    </
vb:if>
</
vb:if>
</
div


Hope this works for ya.

Cheers. :)


All times are GMT. The time now is 02:55 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.09614 seconds
  • Memory Usage 1,778KB
  • 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
  • (1)bbcode_code_printable
  • (7)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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