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)

sitwi 06-16-2012 12:50 PM

I'm afraid I'm another one with the alignment issue - and I've been right through this thread, tried various solutions, and I'm still stumped. Currently I have my post_thanks_postbit_info as:

Code:

<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 {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd {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>
        </vb:if>
</vb:if>

... but still a slight misalignment on the last field:

https://vborg.vbsupport.ru/

It's a customised template (default style works fine). Does anyone have any suggestions, please?

Valter 06-16-2012 01:42 PM

channelfuse and Hippy, Thanks for the fixes.

Ary Braga 06-16-2012 03:01 PM

Well.
How to remove the thanks made ​​by a particular User.
I have to remove only the thanks received by a single User.
Eg: Liked 1245 time in 896 post(s)

I'm using Post Thank you Hack latest version.

Please no need remove the code, only thanked votes. (clear table content only, to this individual user).

In other words, I need to reset the count of received Thanks.

In "Post Thank You Hack" installed only is possible to remove the User Thanks given

Any Help is welcome.

Regards.

Disco_Dave 06-16-2012 08:46 PM

Quote:

Originally Posted by Hippy (Post 2339999)
What password

Quote:

Originally Posted by BirdOPrey5 (Post 2340019)
The file has no password. :confused:

If you're getting asked for a password to open the zip your download may have been corrupted- try downloading again.

No one would be allowed to post a password protected file on vBulletin.org.

I was using a computer from work, must of been that....sorry for the hassle

Hippy 06-17-2012 10:07 AM

Quote:

Originally Posted by sitwi (Post 2340045)
I'm afraid I'm another one with the alignment issue - and I've been right through this thread, tried various solutions, and I'm still stumped. Currently I have my post_thanks_postbit_info as:

Code:

<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 {vb:stylevar left};">{vb:rawphrase post_thanks_time_post}</dd>
        <vb:elseif condition="$post['post_thanks_thanked_posts'] == 1" />
                <dd {vb:stylevar left};">{vb:rawphrase post_thanks_times_post, {vb:raw post.post_thanks_thanked_times_formatted}}</dd>
        <vb:else />
                <dd {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>
        </vb:if>
</vb:if>

... but still a slight misalignment on the last field:

http://sitwining.co.uk/images/align.jpg

It's a customised template (default style works fine). Does anyone have any suggestions, please?

did you try this ? https://vborg.vbsupport.ru/showpost....postcount=2670

Quote:

Originally Posted by Valter (Post 2340056)
channelfuse and Hippy, Thanks for the fixes.

Valter thanks , Back at you for all your help @vb.org I'm glad I could help..

Quote:

Originally Posted by Ary Braga (Post 2340080)
Well.
How to remove the thanks made ​​by a particular User.
I have to remove only the thanks received by a single User.
Eg: Liked 1245 time in 896 post(s)

I'm using Post Thank you Hack latest version.

Please no need remove the code, only thanked votes. (clear table content only, to this individual user).

In other words, I need to reset the count of received Thanks.

In "Post Thank You Hack" installed only is possible to remove the User Thanks given

Any Help is welcome.

Regards.

what archive are you using ?
your post_thanks_postbits should look like this
Code:

<div class="postbody"<vb:if condition="$vboptions['legacypostbit']"> style="margin-{vb:stylevar left}: 0"</vb:if>>
        <div class="postrow">
        <vb:if condition="$bbuserinfo['usergroupid'] == 6 || $post['show_thanks_remove_option']">
        <div class="smallfont" style="float:{vb:stylevar right}">
                <vb:if condition="$bbuserinfo['usergroupid'] == 6">
                        <a href="post_thanks.php?do=post_thanks_remove_all&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_all({vb:raw post.postid}, <vb:if condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove}</a>
                </vb:if>
                <vb:if condition="$bbuserinfo['usergroupid'] == 6 && $post['show_thanks_remove_option']">
                        |
                </vb:if>
                <vb:if condition="$post['show_thanks_remove_option']">
                        <a href="post_thanks.php?do=post_thanks_remove_user&amp;p={vb:raw post.postid}"<vb:if condition="$vboptions['disable_ajax'] != 2"> onclick="return post_thanks_remove_user({vb:raw post.postid}, <vb:if condition="$vboptions['post_groan_integrate']">true<vb:else />false</vb:if>);"</vb:if> rel="nofollow">{vb:rawphrase post_thanks_remove_user}</a>
                </vb:if>
        </div>
        </vb:if>
        <h2 class="<vb:if condition="!$vboptions['legacypostbit']">post</vb:if>title">
                <vb:if condition="$post['post_thanks_amount'] == 1">
                        {vb:rawphrase post_thanks_user_says, {vb:raw post.username}}
                <vb:else />
                        {vb:rawphrase post_thanks_users_say, {vb:raw post.post_thanks_amount_formatted}, {vb:raw post.username}}
                </vb:if>
        </h2>

<vb:if condition="$post['post_thanks_amount'] > 10">
<style type="text/css">

.togList
{
font-family: verdana;
}

.togList dt
{
cursor: pointer; cursor: hand;
}

html.isJS .togList dd
{
display: none;
}

</style>
<script type="text/javascript">

/* Only set closed if JS-enabled */
document.getElementsByTagName('html')[0].className = 'isJS';

function tog(dt)
{
var display, dd=dt;
/* get dd */
do{ dd = dd.nextSibling } while(dd.tagName!='DD');
toOpen =!dd.style.display;
dd.style.display = toOpen? 'block':''
dt.getElementsByTagName('span')[0].innerHTML
= toOpen? '-':'+' ;
}
</script>

<dl class="togList">
<dt onclick="tog(this)"><center><font style="font-size:12px"><span>+</span> Show/Hide list of the thanked</font></center></dt>
<dd>
<br />
<span id="thanks">
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
</span>
</dd>
</dl>
<vb:else />
<span id="thanks">
        <div class="content">
                <div id="post_thanks_bit_{vb:raw post.postid}">
                        <blockquote class="postcontent restore">
                                {vb:raw post.post_thanks_bit}
                        </blockquote>
                </div>
        </div>
</span>
</vb:if>

        </div>
</div>
<hr />

Quote:

Originally Posted by tricksodave (Post 2340177)
I was using a computer from work, must of been that....sorry for the hassle

no problems
glad it worked out

edytwinky 06-17-2012 12:56 PM

Does anybody know what code in this hack is the portion that helps this appear in the notifications bar?

I'm trying to do some coding but can't figure out what makes it appear in notifications

Hippy 06-17-2012 01:33 PM

This mod will do what your looking to do https://vborg.vbsupport.ru/showthread.php?t=280109

HansMuenchen 06-17-2012 05:31 PM

Hello,

does this mod also works with 4.2 or does a Version exist for VB4.2?

Thnx for the answers
Hans

Hippy 06-17-2012 11:38 PM

Quote:

Originally Posted by HansMuenchen (Post 2340463)
Hello,

does this mod also works with 4.2 or does a Version exist for VB4.2?

Thnx for the answers
Hans

yes

tareqbd 06-18-2012 03:10 PM

ForceHSS bro can I use this post thanks hack with vbulletin mobile style premium. If yes, can you please advise me, how to make the thanks option work with mobile style provided by vbulletin itself. my board version is 4.1.3 PL8
Thankful to you.


All times are GMT. The time now is 02:54 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.03408 seconds
  • Memory Usage 1,769KB
  • 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
  • (7)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