[EN30] Ajax Thanks v1.0.2


Check out the FREE chatroom mod for IPB 3.x

[EN30] Ajax Thanks v1.0.2
Zoom In

Short Description
This hook adds the ability for members to thank posters via Ajax.

Detailed Description


File Name: [EN30] Ajax Thanks v1.0.2
Author: Elad Nava
Compatibility: IP.Board v3.0.x

user image

Description:
This modification adds the ability for members to thank posters via Ajax. In addition, it keeps track of the number of times each member has been thanked and displays it in each post. It is very light-weight and adds no additional queries to the Topic View. It can automatically collapse the thankers if the list is too long. It can also integrate with (T30) Hide Content to show hidden content in posts simply by clicking the Thanks button.

See screenshot.

Version History:
  • v1.0.2:
  • Changed action overloader class to fix unexpected bug
  • Added setting to disable thanking topic replies and allow thanking the first post only
  • v1.0.1:
  • Added integration with (T30) Hide Content
  • Added collapse function to hide long thankers lists
  • Fixed "showuser=undefined" bug
  • Added Admin CP settings for integration and collapsing
  • v1.0.0:
  • Initial release of this modification.
  • Thanking is done by Ajax
  • Light-weight and fast
  • Admin CP settings to disable/enable modification, to prevent groups from thanking or to prevent thanking in certain forums.
  • Thanked counter for every member ever thanked
  • Name automatically added to Thanked by box after thanking
  • Thanks button disappears to prevent multiple clicking
  • Thanked by box flashes to draw attention to itself after thanking
LIVE DEMO: http://en30.eladnava.com/index.php?/topic/3-test-topic/
Buy It Now!

To acknowledge that you have commited to buy this product, click the link below to be taken to the payment processing page

You will be able to instantly download this file after purchasing.


You must be logged in to make a purchase
Instant Download Available

click here to purchase

File Information
Date Submitted: November 10, 2009
Purchases: 94
Views: 8,716
File Version: v1.0.2
File Size: 175.588 KBytes
Last Updated: November 21 2009, 05:08 PM
Usage Terms: One per domain

User Comments (View Topic)
August 21 2010, 03:12 AM
by parniculous
Has anyone tested on 3.1.2? I can't get mine to work. "Thanks" button not showing up under the post.
July 9 2010, 02:17 PM
by Deltafox
QUOTE (Elad Nava @ Jul 9 2010, 01:44 PM) <{POST_SNAPBACK}>
1) No, as discussed above, this feature is not available.


why? is complicate to add this? thank's for vbulletin is better then ipb?

regards
July 9 2010, 01:44 PM
by Elad Nava
1) No, as discussed above, this feature is not available.

2) a. it's not supposed to have that. Although it is very easy to add. I did not include in the first place because I feared that so many calls to create JavaScript balloons on one page could cause the browser to freeze, or something. Imagine 500 people thanked a topic, and each have a user popup code executed to set up the pop up.

b. It does not say when the members were thanked, the feature is not 'missing' it was just never included, for the obvious reason that this could be a big waste of space on the database. For every person who clicked thanks, also keep their timestamp? That could take a lot of space over time.
July 9 2010, 11:39 AM
by Deltafox
I have try 1.0.2 on ipb 3.1.1 and I have two question :

1) no feature for remove thank's is avaiable??

this feature is important!!!

If for an error I click on Thank's button I can after remove my thank's?

2) the name of members display below the post after thanked don't have

a -> the user_popup.png for info members popup..
b -> data of thank's is missing ( ex. today, tomorrow, 2 day ago etc etc ) like thanks' for vbulletin have this featured...

Regards
July 3 2010, 02:38 PM
by Elad Nava
It's compatible. What is the problem with PayPal?
July 3 2010, 01:49 PM
by Proxyes
There is a problem with paypal!

This mod is compatible with IPB 3.1.0?
July 3 2010, 01:46 PM
by Elad Nava
I have sent you a PM with a hook.xml to upload, to attempt to fix this problem. If it fixes your issue, I will upload it as v1.0.3 to the forum. I would test it for myself but I did not buy the gallery module from IPS, so I can't.
July 3 2010, 12:41 PM
by sparklywater
QUOTE (Elad Nava @ Jul 3 2010, 01:54 AM) <{POST_SNAPBACK}>
Interesting problem, can you link to a gallery entry on your forum so I can take a look?


Here is an example. you can click on the 'Share Image' link and then on the 'Facebook' link: http://www.sparklywater.com/index.php?/gal...age/4636-78jpg/

The problem occurs with ALL entries in the Gallery.
July 3 2010, 06:54 AM
by Elad Nava
QUOTE (nexanss @ Jun 27 2010, 01:25 AM) <{POST_SNAPBACK}>
Helló!
IPB 3.1.0 My problem:

Nálam ez a kod hibás:
QUOTE
<!-- Start [EN30] Ajax Thanks v1.0.2 -->
<if test="ajaxThanksEnabled2:|:$this->settings['en30_ajaxthanks']">
<if test="hasThankers:|:$post['post']['thankersCount'] != 0">
<div class="general_box" id="thankersBox_{$post['post']['pid']}" title="visible" style="margin: 4px 0 4px 0">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr valign="top">
<td width="1%" nowrap="nowrap">
<div id="thankedBy_{$post['post']['pid']}" title="{$post['post']['thankersCount']}" style="font-weight: bold">{$this->lang->words['en30_thanked_by']} {$post['post']['thankersCount']} <if test="isPlural:|:$post['post']['thankersCount'] == 1">{$this->lang->words['en30_user']}<else />{$this->lang->words['en30_users']}</if></div>
</td>
<td width="99%">
<div id="thankers_{$post['post']['pid']}" <if test="collapseThankers:|:$this->settings['en30_ajaxthankscollapse'] && $post['post']['thankersCount'] > $this->settings['en30_ajaxthanksmaxthankers']">style="display: none;"</if>>
{$post['post']['thankers']}
</div>
<if test="collapseThankers2:|:$this->settings['en30_ajaxthankscollapse'] && $post['post']['thankersCount'] > $this->settings['en30_ajaxthanksmaxthankers']">
<div id="show_thankers_{$post['post']['pid']}">
<a href="java script: ajaxThanksExpand( '{$post['post']['pid']}' );">{$this->lang->words['en30_show']}</a>
</div>
<else />
<div id="show_thankers_{$post['post']['pid']}" style="display: none;"></div>
</if>
</td>
</tr>
</tbody>
</table>
</div>
<else />
<div class="general_box" id="thankersBox_{$post['post']['pid']}" title="hidden" style="margin: 4px 0 4px 0; display: none">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr valign="top">
<td width="1%" nowrap="nowrap">
<div id="thankedBy_{$post['post']['pid']}" title="0" style="font-weight: bold">{$this->lang->words['en30_thanked_by']} 1 {$this->lang->words['en30_user']}</div>
</td>
<td width="99%">
<div id="thankers_{$post['post']['pid']}">{$post['post']['thankers']}</div>
</td>
</tr>
</tbody>
</table>
</div>
</if>


Nem engedi betenni a helyére...



Tudja valaki, miért?

How dare you ask for support when you obviously did not purchase my modification?

QUOTE (sparklywater @ Jul 3 2010, 04:22 AM) <{POST_SNAPBACK}>
Hello,

I see the following error code when trying to use the 'Share with Facebook' feature in IP Gallery. It occurs when clicking the 'Share Image' button and then the Facebook icon in any IP.Gallery entry. Please take a look at the attached image, you can see that the code is unexpectedly shown and that the code is related to the Thanks hack. Please let me know how I can fix this unexpected error.

[attachment=2192:thanks.PNG]



PS. I agree that the hack should allow the users the ability to remove a Thanks after giving it to another. It sometimes occurs that you accidently press the Thanks button on a wrong post, and then there would be no way to delete that unintended Thanks. Please try to include this feature in the next release.

Interesting problem, can you link to a gallery entry on your forum so I can take a look?
July 3 2010, 01:22 AM
by sparklywater
Hello,

I see the following error code when trying to use the 'Share with Facebook' feature in IP Gallery. It occurs when clicking the 'Share Image' button and then the Facebook icon in any IP.Gallery entry. Please take a look at the attached image, you can see that the code is unexpectedly shown and that the code is related to the Thanks hack. Please let me know how I can fix this unexpected error.

[attachment=2192:thanks.PNG]



PS. I agree that the hack should allow the users the ability to remove a Thanks after giving it to another. It sometimes occurs that you accidently press the Thanks button on a wrong post, and then there would be no way to delete that unintended Thanks. Please try to include this feature in the next release.


Invision Skins · IPB Skins