vb.org Archive

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

chompychan 12-01-2007 06:03 AM

Quote:

Originally Posted by BadgerDog (Post 1392573)
Anyone else getting this?

I select my own user profile and it says:




So, I select "Find all thanked posts by Badger" and I get this error message:

Sorry - no matches. Please try some different terms.

There are three valid posts and I have expressed "thanks" in all three, so why doesn't the mod list those three posts? :confused:

Regards,
Badger

The "Find all thanked...by" feature can only find posts by that member that were thanked. In this case there are none, so it finds none.

BadgerDog 12-01-2007 10:12 AM

Quote:

Originally Posted by chompychan (Post 1392787)
The "Find all thanked...by" feature can only find posts by that member that were thanked. In this case there are none, so it finds none.

Understood.... thanks... :up:

I read Find all thanked posts by Badger to mean Find all posts thanked by Badger , which I think is what confused me.

Perhaps it should read Find all posts Badger received thanks, or Find all thanked posts for Badger

Regards,
Badger

Skyline_GT 12-04-2007 03:27 AM

Quote:

Originally Posted by Big-K (Post 1390431)
I'm getting the Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183 error

Did a recounter and still having the issue

Please help

I also have this problem.

Jack Black 12-04-2007 06:13 PM

Problem sorted......

doc_sameer 12-05-2007 06:54 PM

I wanted to know the modifications needed to show up the thanks within the post itself rather than outside in a box

something like this:

https://vborg.vbsupport.ru/

Thanks.

btw, the mod is fantastic.

Abe1 12-07-2007 02:54 AM

Quote:

Originally Posted by chompychan (Post 1391909)
OK, the members no longer seem to care about old thanked posts.

However I do have a strange conflict where hovertext doesn't reflect what reps people have.

Almost all reputation points are given via thanks and it seems no thanked posts are being reflected in the reputation hovertext, yet it still contributes points and green dots.

The only way I've found to compensate for this issue is rebuilding rep points every day. This is not a very desirable way to go about it though.

Anyone know why this could be happening?

Can you please explain more.

doc_sameer 12-07-2007 07:42 PM

Quote:

Originally Posted by doc_sameer (Post 1395668)
I wanted to know the modifications needed to show up the thanks within the post itself rather than outside in a box

something like this:

http://img144.imageshack.us/img144/870/thankspt9.jpg

Thanks.

btw, the mod is fantastic.

still waiting for support! plz anyone?

unitedpunjab 12-08-2007 12:25 PM

how can i disable the Thanks listing for guests ?

Spinball 12-09-2007 10:22 AM

I noticed I was getting style warnings - 1 for each post in showthread.
I narrowed the problem down to this Thank you mod.
It exists in the postbit_display_complete plugin:
Quote:

if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post))
{
$display_thanks_image = '';
}
should be
Quote:

if (can_thank_this_post($post, $thread['isdeleted']) && !thanked_already($post))
{
$display_thanks_image = 'inline';
}
Having no value after display: throws up a warning error (in Firefox).
inline is the default which should be used to display the button normally.

Spinball 12-09-2007 10:26 AM

I found that the thanks information in postbit was taking up a couple of lines and looked untidy.
So I changed the post_thanks_postbit_info template to :
Quote:

<if condition="$post[userid]">
<div>$vbphrase[post_thanks_thanks]: Gave $post[post_thanks_user_amount_formatted], Got $post[post_thanks_thanked_times_formatted]</div>
</if>
Which while not grammatically quite as flowery, does the job using just 1 line.
Example

Spinball 12-09-2007 10:30 AM

I love the way that the thanks info is displayed in a separate box under the post. However, it was not being displayed with the same table border as the post itself.
I fixed this by editing post_thanks_postbit_legacy (or post_thanks_postbit if you use that style)
from (near the top)
Quote:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center">
to
Quote:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
which now makes the thanks info look correct.
Example

Ace hack - hope the feedback helps. :up:

tekguru 12-09-2007 12:28 PM

Cheers - fix applied!

mystic10 12-10-2007 09:35 PM

please help..everytime someone click on the thanks button this error comes
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
please guide

Nice_empire 12-12-2007 01:33 PM

hello, i need help
i merge 2 database, but dont import post thanks in destination database

whether there is a way to import post thanks from old database ???

please!!!!

Noctavia 12-14-2007 10:05 PM

Apologies if this has already been asked, 124 pages is a lot to read through hehe. But I was wondering if there's a way to make the thankyou box only appear after say 2 or 3 separate people have thanked the post? I'm wanting to use the hack to highlight the outstanding posts on my forum, and a couple of people seem the be very thankful for all sorts of things. I'd like it so that if the thank you box doesn't show until multiple people have said thanks for it.

busybeeburns 12-15-2007 12:04 PM

Hi,

I have uploaded all the files, but when it comes to importing the xml via Manage Products, I'm greeted with a blank page instead of confirmation that the product has been installed. Can anyone help please? :)

Big-K 12-15-2007 06:06 PM

Quote:

Originally Posted by Skyline_GT (Post 1394441)
Quote:

I'm getting the Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183 error

Did a recounter and still having the issue

Please help
I also have this problem.

Here's a fix a member of my board came up with. Hope it helps someone:
"it seems that there were empty arrays (i.e. lists of items) being passed to the function that generated the warning message. Honestly, I have no idea where these arrays were coming from or whether it is even all right for them to be empty - but I've asked the function not to try to process such arrays in future.

See board/includes/functions_post_thanks.php

After line 182
Code:

  //seems to be a problem when $thanks has no rows - so let's patch the problem
  //I have no idea about the underlying causes of this problem.
  if ($number_rows > 0)
  {
  //</SLB
          foreach ($thanks AS $thank)
          {
                  if ($cmpt<$number_rows)
                  {
                          $virg=",";
                  }
                  else
                  {
                          $virg="";
                  }

                  if (show_thanks_date($forumid))
                  {
                          $date_thank = vbdate($vbulletin->options['dateformat'], $thank['date'], true);
                  }

                  eval('$liste_user .= " ' . fetch_template('post_thanks_box_bit') . '";');
                  $cmpt++;
          }
  } //


JamesAB 12-16-2007 03:40 AM

Thanks for the great MOD. :)

I just installed and did a few tests.

One thing I noticed is that if you delete a thread that contains posts that were given "Thanks", that user's Thanked count is not decreased.

For example, it will still say:

Quote:

Thanked 2 Times in 1 Post
even when that 1 post has been deleted.

Forgive me if this has been asked before, but is there a fix or a workaround for this?

Antivirus 12-16-2007 03:49 AM

Quote:

Originally Posted by mystic10 (Post 1398809)
please help..everytime someone click on the thanks button this error comes
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
please guide

This is most likely due to your server being upgraded to run PHP version 5... read the following:
https://vborg.vbsupport.ru/showthread.php?t=125302

Traxdata 12-17-2007 06:52 PM

seems to work on 3.7.0 beta2 :)

Antivirus 12-17-2007 09:56 PM

Abe,
I'm trying to get the postbit template to refresh as well upon thanking a post (in order to update the "Thanked 4 Times in 4 Posts" text...

Within post_thanks.js I have modified function thanks_add_done() by adding an additional fetch_object (to call the respective postbit) as follows:

PHP Code:

function thanks_add_Done()
{
    if (
do_thanks_add.handler.readyState == && do_thanks_add.handler.status == 200)
    {
        
fetch_object('td_post_' do_thanks_add.postid).innerHTML do_thanks_add.handler.responseText;
        
fetch_object('post_thanks_box_' do_thanks_add.postid).innerHTML do_thanks_add.handler.responseText;
    }


Unfortunately, I'm pretty new at JS so it doesn't work. Any ideas what I am doing wrong and how to get it to refresh the respective postbit?

mystic10 12-18-2007 05:58 PM

the thread that you have suggested is for index php not functions.php...i couldnt find the array there please guide again

youradhere4222 12-18-2007 10:27 PM

I plan to install this on 3.7. Thanks!

Noctavia 12-19-2007 08:55 PM

Quote:

Originally Posted by Noctavia (Post 1401201)
I was wondering if there's a way to make the thankyou box only appear after say 2 or 3 separate people have thanked the post? I'm wanting to use the hack to highlight the outstanding posts on my forum, and a couple of people seem the be very thankful for all sorts of things. I'd like it so that if the thank you box doesn't show until multiple people have said thanks for it.

Would anyone have any idea on this? I've been looking over the .php and .xml files, but as I am not sure what to look for exactly, I am getting a bit stumped. Basically I don't want the thank you box to even show unless 3 or more people say thanks.

Jase2 12-19-2007 09:07 PM

I reverted my style and tried to re-install this - however it's not showing now... any help?

Regards Jason :)

Antivirus 12-19-2007 10:47 PM

Quote:

Originally Posted by Noctavia (Post 1404965)
Would anyone have any idea on this? I've been looking over the .php and .xml files, but as I am not sure what to look for exactly, I am getting a bit stumped. Basically I don't want the thank you box to even show unless 3 or more people say thanks.

Just create a simple plugin for hook location: post_thanks_function_post_thanks_off_end

Untested, but something like this:
PHP Code:

$sql $vbulletin->db->query_first("SELECT COUNT(post_thanks_votenum) AS qty FROM " TABLE_PREFIX "post AS post WHERE postid = " $postinfo['postid'] . " AND qty < 3");

if (
$sql['qty'])
{
     return 
true;


Within the query, change the 3 to minimum quantity of times a post should be thanked before displaying, and I think it'll give you what you need.

Abe1 12-20-2007 03:31 AM

VB 3.7 Hack Released hear: https://vborg.vbsupport.ru/showthread.php?t=165673 IT ALSO WORKS vb 3.6

zmmmzz 12-21-2007 05:01 AM

Quote:

Originally Posted by Antivirus (Post 1405039)
Just create a simple plugin for hook location: post_thanks_function_post_thanks_off_end

Untested, but something like this:
PHP Code:

$sql $vbulletin->db->query_first("SELECT COUNT(post_thanks_votenum) AS qty FROM " TABLE_PREFIX "post AS post WHERE postid = " $postinfo['postid'] . " AND qty < 3");

if (
$sql['qty'])
{
     return 
true;


Within the query, change the 3 to minimum quantity of times a post should be thanked before displaying, and I think it'll give you what you need.

thanks so much for this!!! it has been so helpful
have any idea how to make a hit counter for the thread so that everytime someone clicks the thanks button the counter increases??

Seiyaboy 12-21-2007 12:40 PM

Very nice. I currently run version 6.3, and I was wondering what extras were added to the modification and whether an upgrade is worth it or not. Thanks.

Mrdby 12-24-2007 02:35 AM

Anybody?

class101 12-24-2007 07:45 AM

Hmm Abe1 I can see the title says version 7.1 is the current one but no downloads are available, I think you forgot to attach the 7.1version :>

Abe1 12-24-2007 10:49 AM

Did you miss this????
Quote:

PLEASE CLICK ON THIS LINK FOR SUPPORT FOR THIS HACK: https://vborg.vbsupport.ru/showthread.php?t=165673

Version 7.0 was created for both vb3.6 and vb3.7. I will no longer give support in this thread for this hack. Please click 'install' in the vb3.7 section for notifications about updates.

iettafune 12-26-2007 08:16 PM

why????????? No Files Uploaded.???????? where download this hack?

Lean Bodies 12-29-2007 07:21 PM

Has the 3.6 version been removed?

Jimandbob 12-29-2007 07:25 PM

Quote:

PLEASE CLICK ON THIS LINK FOR SUPPORT FOR THIS HACK: https://vborg.vbsupport.ru/showthread.php?t=165673

Version 7.0 was created for both vb3.6 and vb3.7. I will no longer give support in this thread for this hack. Please click 'install' in the vb3.7 section for notifications about updates.
mod has been moved to the 3.7 section.


Quote:

Originally Posted by From The 3.7 Thread
Version 7.0 (12/20/07):
  • Release of this hack for vBulletin version 3.7
  • This version works on all vBulletin versions from 3.6.0 and up


channhua 01-02-2008 01:40 AM

HI,

I don't know why in my forum, the thank button was looped, and increase due as post number ( the post number 3 has 3 thank button ) ? please find in attacment to clarify

Please help me fix this problem:up:

My forum version, 3.6.7. PL1, thank hack 7.1

Thank you

ktaylor 01-02-2008 04:12 AM

I had the same problem.. can't remember which template i had to edit but it was i think eiher postbit or postbit_legacy..

TCE Killa 01-02-2008 05:12 PM

Great hack, is there away I can put it under the reputation in the post bit (when people post)? Thanks.

TCE Killa 01-02-2008 05:14 PM

Quote:

Originally Posted by channhua (Post 1413593)
HI,

I don't know why in my forum, the thank button was looped, and increase due as post number ( the post number 3 has 3 thank button ) ? please find in attacment to clarify

Please help me fix this problem:up:

My forum version, 3.6.7. PL1, thank hack 7.1

Thank you

Mine did that and my custom styles already had the template modifications, so I took the ones I edited in out and it is fine now.

rinkrat 01-03-2008 04:42 PM

My thank button is looped too and also the list of Thankers is after every post instead of just the first one! I managed to get rid of the multiple thanks by limiting thanks to the first post, but still the list of thankers is after EVERY POST in the thread which clutters the whole page.

How do I fix this?


All times are GMT. The time now is 10:53 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.06296 seconds
  • Memory Usage 1,855KB
  • 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
  • (3)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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