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)

oldengine 11-19-2007 07:59 PM

Quote:

Originally Posted by Abe1 (Post 1385296)
The timeout issues were resolved by this version. Which version are you uploading?

Thanks version 6.3
vBulletin 3.6.8 PL2

Is there a shell command line that can run the install/uninstall?

sagor 11-21-2007 03:50 AM

Thank you ..

please Take a look this :

http://www.uquni.com/vb/uploaded/1_01195624166.gif

what is problem ?

tei727 11-21-2007 11:48 AM

It's been requested at my forum that we add a Post Fail button to ride along side of the [AJAX] Post Thank You Hack while keeping the Thanks hack. Does this inspire anyone?

rinkrat 11-21-2007 02:46 PM

I just pruned a bunch of messages and everyone is pissed because it removed their thanks for those messages. Is there any way to have the thanks remain after a message is pruned?

Antivirus 11-21-2007 08:14 PM

Abe, nice work here :) . I'm looking to mod this so each post can only be thanked once. Is there already a conditional setup in your mod which checks for this or do I need to set one up? I imagine i would place this conditional within the function add_thanks() to exit if a post has already been thanked. Is there something placed within the $postinfo array already which I can use the conditional upon already or would I need to add that myself?

chompychan 11-22-2007 01:30 AM

I just have a question that I assume can only be answered here:

I had reputation disabled on my forum for a long time, with this hack active. I have just recently enabled reputation and I am wondering if it is at all possible to somehow convert currently "thanked" posts into reputation points?

My most thanked members are stuck with low reputation at this point you see.

Is this possible through any SQL queries or combination of recounters?

jafari 11-22-2007 02:17 PM

After update from 6.0 Gold to 6.3,
Box in bottom of post which show where thanks for this post not shown and also button of thanks !

Please help

Antivirus 11-23-2007 10:34 AM

Quote:

Originally Posted by chompychan (Post 1387249)
I just have a question that I assume can only be answered here:

I had reputation disabled on my forum for a long time, with this hack active. I have just recently enabled reputation and I am wondering if it is at all possible to somehow convert currently "thanked" posts into reputation points?

My most thanked members are stuck with low reputation at this point you see.

Is this possible through any SQL queries or combination of recounters?

Have you tried "Rebuild User Reputation" in AdminCP->Maintenance->UpdateCounters ?

This might do the trick, however i think you're SOL as the function add_scores adds the rep during the process when any post is thanked... since those posts have already been thanked rebuild user rep won't take that into consideration.

You might have to run a manual query

sandt38 11-23-2007 12:48 PM

For some reason the thanks button does not show up in 3 of my skins, but it does on the other 3. I have completed all the template edits, and installed the images/buttons installs on all skins that use different image pathways. But on that note, not only is the button missing, but the alternate text is also not present.

Of worthy note, one of the skins it does not show up on is the vBulletin Blue Default.

sandt38 11-23-2007 04:55 PM

Uninstalled. The feature didn't work well with the hide hack (like 50% of the time it worked well) and it overwrites rep ability.

I wanted to allow users to be able to give nominal rep, even if they couldn't give their full rep because of post # limitations. But when my users tried to rep after thanking, they were told they couldn't rep the same post twice.

I will wait for the guys at vBCredits to get everything done, then use their hide hack.

Nice idea, really, but just not implemented in a manner that suits my needs.

chompychan 11-23-2007 06:46 PM

Quote:

Originally Posted by Antivirus (Post 1387993)
Have you tried "Rebuild User Reputation" in AdminCP->Maintenance->UpdateCounters ?

This might do the trick, however i think you're SOL as the function add_scores adds the rep during the process when any post is thanked... since those posts have already been thanked rebuild user rep won't take that into consideration.

You might have to run a manual query

Yea you're right the rebuild is fruitless. I assumed it would be possible with SQL queries, but I wouldn't know what SQL to run.

tanyeri24 11-23-2007 07:40 PM

is there any option to show statistics? Like who earned most thanks or thank/post ratio etc..

sagor 11-25-2007 09:04 AM

Quote:

Originally Posted by sagor (Post 1386624)
Thank you ..

please Take a look this :

http://www.uquni.com/vb/uploaded/1_01195624166.gif

what is problem ?

up :)

5th-Level 11-26-2007 01:41 AM

how do u edit the postbit template edit

as in edit the thanked 323 out of 4231 posts and such?

Antivirus 11-26-2007 01:06 PM

Quote:

Originally Posted by 5th-Level (Post 1389432)
how do u edit the postbit template edit as in edit the thanked 323 out of 4231 posts and such?

the template thatis located in is post_scores_postbit_info. And the phrase is post_scores_times_post

westernohiopc 11-27-2007 02:08 AM

Can someone help me install this hack..... This is my first add in and I have never installed a plug in before thanks

westernohiopc 11-27-2007 03:11 AM

installed hack and BIG PROBLEM... no post in forum

Warning: require_once(c:\domains\*******.com\wwwroot\forums/includes/functions_post_thanks.php) [function.require-once]: failed to open stream: No such file or directory in \includes\class_postbit.php(268) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required 'c:\domains\******.com\wwwroot\forums/includes/functions_post_thanks.php' (include_path='.;C:\php5\pear') in c:\domains\*******.com\wwwroot\forums\includes\cla ss_postbit.php(268) : eval()'d code on line 1

Big-K 11-27-2007 05:08 PM

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

apn3a 11-28-2007 07:56 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

same exact issue here.


Warning: Invalid argument supplied for foreach() in /includes/functions_post_thanks.php on line 183

i run all the recounters, and the error still exists.

please fix it!

Antivirus 11-28-2007 05:40 PM

This is working great for me - very nice job Abe1. I think I found 2 small issues however although they're not really bugs...
  • If a has thanks, and thatpost is edited by that member (using the quick edit ajax method) when the edit is saved, the post_thanks_postbit template fails to re-load. After a page refresh it's there, howerever would be more in-line with vbulletin if this were re-loaded upon edit as well.
  • After a post is thanked, although the post_thanks_postbit template reloads, the post_scores_member_info template fails to reload resulting in the post's author's post-thanks info not being updated

Thanks!

Big-K 11-28-2007 06:24 PM

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

Anyone has ideas?

Pathfinder 11-28-2007 08:09 PM

Awesome it is my favorite mod :)

Abe1 11-29-2007 09:47 AM

Quote:

Originally Posted by BadgerDog (Post 1385524)
Installed and testing .... :up:

How does one get the graphic "Thanks" button to match our style, instead of being the standard default vBulletin colors?

Thanks ... :)

Regards,
Badger

Edit: Tested....

There's some kind of problem with Horizontal and Vertical postbit templates....

This phrase:



Appears under the UserName information etc, in the Horizontal post bit template, even when the mod is turned OFF. Ironically, it doesn't appear at all in the Vertical postbit template, whether the mod is turned OFF or ON. Anyone else notice this and have a fix? :confused:

Check your templates. Make sure the template hooks are there.

Abe1 11-29-2007 09:49 AM

Quote:

Originally Posted by pvalderh (Post 1385615)
Couldnt find any info on this, but the users of our forum who uses Opera cant get this feature to work. Simply nothing happens when they click the button. It works fine in IE, FF, Safari, but not in Opera.

Are there any known issues with this hack and Opera? Or maybe it is Ajax in Opera?

First time hearing about this. If AJAX was turned off for a users, the hack should still work, but just refresh. I dont know what the problem would be though.

Abe1 11-29-2007 09:50 AM

Quote:

Originally Posted by oldengine (Post 1385831)
Thanks version 6.3
vBulletin 3.6.8 PL2

Is there a shell command line that can run the install/uninstall?

Try installing via FTP option.

Abe1 11-29-2007 09:51 AM

Quote:

Originally Posted by tei727 (Post 1386817)
It's been requested at my forum that we add a Post Fail button to ride along side of the [AJAX] Post Thank You Hack while keeping the Thanks hack. Does this inspire anyone?

Check out my post groan hack.

Abe1 11-29-2007 09:52 AM

Quote:

Originally Posted by rinkrat (Post 1386951)
I just pruned a bunch of messages and everyone is pissed because it removed their thanks for those messages. Is there any way to have the thanks remain after a message is pruned?

Will look into it. I may make it an admin option to turn on and off.

Abe1 11-29-2007 09:58 AM

Quote:

Originally Posted by Antivirus (Post 1387129)
Abe, nice work here :) . I'm looking to mod this so each post can only be thanked once. Is there already a conditional setup in your mod which checks for this or do I need to set one up? I imagine i would place this conditional within the function add_thanks() to exit if a post has already been thanked. Is there something placed within the $postinfo array already which I can use the conditional upon already or would I need to add that myself?

I would add it to a hook 'post_thanks_function_can_thank_this_post_start' in 'can_thank_this_post'.

Add:
PHP Code:

if ($postinfo['post_thanks_amount'] > 0)
{
    return 
false;



Abe1 11-29-2007 09:59 AM

Quote:

Originally Posted by chompychan (Post 1387249)
I just have a question that I assume can only be answered here:

I had reputation disabled on my forum for a long time, with this hack active. I have just recently enabled reputation and I am wondering if it is at all possible to somehow convert currently "thanked" posts into reputation points?

My most thanked members are stuck with low reputation at this point you see.

Is this possible through any SQL queries or combination of recounters?

I'm sure it can be done but would need a php script to run the mysql so it can calculate correctly.

Abe1 11-29-2007 10:00 AM

Quote:

Originally Posted by jafari (Post 1387518)
After update from 6.0 Gold to 6.3,
Box in bottom of post which show where thanks for this post not shown and also button of thanks !

Please help

Go read all the txt files in the zip.

Abe1 11-29-2007 10:02 AM

Quote:

Originally Posted by tanyeri24 (Post 1388261)
is there any option to show statistics? Like who earned most thanks or thank/post ratio etc..

I have a modual for vBadvanced somewhere.

Abe1 11-29-2007 10:02 AM

Quote:

Originally Posted by 5th-Level (Post 1389432)
how do u edit the postbit template edit

as in edit the thanked 323 out of 4231 posts and such?

This is a phrase.

Abe1 11-29-2007 10:04 AM

Quote:

Originally Posted by westernohiopc (Post 1390056)
installed hack and BIG PROBLEM... no post in forum


Warning: require_once(c:\domains\*******.com\wwwroot\forums/includes/functions_post_thanks.php) [function.require-once]: failed to open stream: No such file or directory in \includes\class_postbit.php(268) : eval()'d code on line 1

Fatal error: require_once() [function.require]: Failed opening required 'c:\domains\******.com\wwwroot\forums/includes/functions_post_thanks.php' (include_path='.;C:\php5\pear') in c:\domains\*******.com\wwwroot\forums\includes\cla ss_postbit.php(268) : eval()'d code on line 1

You have to upload the files.

Abe1 11-29-2007 10:05 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

Not sure. Will have to look into a better solution for next version.

Abe1 11-29-2007 10:07 AM

Quote:

Originally Posted by Antivirus (Post 1391168)
This is working great for me - very nice job Abe1. I think I found 2 small issues however although they're not really bugs...
  • If a has thanks, and thatpost is edited by that member (using the quick edit ajax method) when the edit is saved, the post_thanks_postbit template fails to re-load. After a page refresh it's there, howerever would be more in-line with vbulletin if this were re-loaded upon edit as well.

Something to do with vb. They dont run all the hooks again.
Quote:

Originally Posted by Antivirus (Post 1391168)
  • After a post is thanked, although the post_thanks_postbit template reloads, the post_scores_member_info template fails to reload resulting in the post's author's post-thanks info not being updated

Thanks!

I'm not familiar with post_scores_member_info

chompychan 11-29-2007 08:13 PM

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?

Antivirus 11-29-2007 08:20 PM

Quote:

Originally Posted by Abe1 (Post 1391575)
Something to do with vb. They dont run all the hooks again.

Ah i see... I suppose I will report their omission of hook: postbit_display_start within the quickedit execution as a bug then. Hopefully they'll issue a fix for this.

Quote:

Originally Posted by Abe1 (Post 1391575)
I'm not familiar with post_scores_member_info

Ah - i meant post_thanks_member_info, my bad :D

SemperFideles 11-30-2007 10:19 AM

I just wanted to tell you that you have an incredibly useful hack. In fact, I find myself going back into posts just to see who has thanked whom for useful posts. It's really been an incredible enhancement to our forum. I'm quite shocked vBulletin hasn't paid you to take this feature over. It's a remarkably well thought out idea.

beishe8 11-30-2007 07:32 PM

Quote:

Originally Posted by SemperFideles (Post 1392248)
...It's really been an incredible enhancement to our forum. I'm quite shocked vBulletin hasn't paid you to take this feature over. It's a remarkably well thought out idea.

Agreed 100%.

BadgerDog 11-30-2007 08:32 PM

Anyone else getting this?

I select my own user profile and it says:

Quote:

Thanks

Total Thanks: 3
Thanked 0 Times in 0 Posts
Find all thanked posts by Badger

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


All times are GMT. The time now is 09:34 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.03363 seconds
  • Memory Usage 1,850KB
  • 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_php_printable
  • (25)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