The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Post Thank You Hack Details »» | |||||||||||||||||||||||||
Post Thank You Hack 4.5 About this hack: One of the biggest problems on forums as you may know is 'posts boosting'. There are users who LOVE to say 'thanks' when ever they can. How can it hurt? Their post count goes up, they have nothing to loose. There are also users who really like to express their thanks to post but don't like posting a post that looks like they're post boosting. Then comes the moderators who have to delete people's thanks yous so a thread can look readable with out the thanks yous thrown around. Finally comes the posters of these useful posts. They have no idea how many people really likes their posts if only some people say 'thanks'. What this hack does is fix ALL these problems - except those users who like post boosting. This places a button called 'thanks.' When a user clicks on it, it places his username in a box right under the post saying that so-and-so says 'thanks' for the post. Every-one who clicks is placed in one box. By giving your users the extra feature, you forum will look allot nice and organized. It is a granted liking by ALL the members of your forum. Features:
Version 2.0 GOLD (10/02/05):
Version 2.7 (12/18/05):
Version 2.8 (2/5/06):
Version 2.9 (2/8/06):
Version 3.0 (2/10/06):
Version 3.1 (2/11/06):
Version 3.2 (2/13/06):
Version 3.3 (2/14/06):
Version 3.4 (3/17/06):
Version 4.0 (4/17/06):
Version 4.1 (4/18/06):
Version 4.2 (4/23/06):
Version 4.3 (5/4/06):
Version 4.4 (5/7/06):
Version 4.5 (6/19/06):
Please post your comments or suggestions for this hack. I read ALL posts. MAKE SURE YOU CLICK INSTALL! You will get an email when a new version is released. Pictures:
Show Your Support
|
Comments |
#782
|
||||
|
||||
Quote:
|
#783
|
|||
|
|||
I had 4.2 do i need to do any template changes if i install 4.4 and which ones?
Or do i need to do the lot again? |
#784
|
||||
|
||||
Quote:
|
#785
|
|||
|
|||
hello i install it before some weeks nice hack byt can someone tell me how to remove from every post at the bottom the Who Said Thanks:
I get this in every post.. I have select to thanks only in first post byt i get the Who Said Thanks:in all posts |
#786
|
||||
|
||||
Abe1:
Thanks for following up the request here's a little starter on how to make it so that you only really need it once. I've edited the postbit_button template to the following (it still comes up multiple times, but it only really need to be created 'once' at the top because its a function with parameters). It doesn't work yet because I am not familiar with call back functions, and I can't figure out how to pass the pid variable to the call back functions. If there's any AJAX guru or javascript expert who can help fix the rest, we can safely move the majority of the code to a separate .js file which can be cached by user browser and we can reduce the bandwidth usage by a lot (imagein the segment of code appear only once in a cached js VS appearing in html for each post appearing on page). Code:
<script type="text/javascript"> <!-- function post_thanks_give( pid ) { do_thanks_button = new vB_AJAX_Handler(true) do_thanks_button.onreadystatechange = function () { alert('state ready pid: ' + pid); alert('state: ' + do_thanks_button.handler.readyState); if (do_thanks_button.handler.readyState == 4 && do_thanks_button.handler.status == 200) { fetch_object('post_thanks_button_' + pid).innerHTML = do_thanks_button.handler.responseText } } do_thanks_button.send('showthread.php?do=post_thanks_button_ajax&p='+pid) do_thanks_add = new vB_AJAX_Handler(true) do_thanks_add.onreadystatechange = function () { if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) { fetch_object('post_thanks_box_'+pid).innerHTML = do_thanks_add.handler.responseText } } do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid) } function post_thanks_remove_all( pid ) { do_thanks_button = new vB_AJAX_Handler(true) do_thanks_button.onreadystatechange = function () { if (do_thanks_button.handler.readyState == 4 && do_thanks_button.handler.status == 200) { fetch_object('post_thanks_button_'+pid).innerHTML = do_thanks_button.handler.responseText } } do_thanks_button.send('showthread.php?do=post_thanks_button_add_ajax&p='+pid) do_thanks_remove_all = new vB_AJAX_Handler(true) do_thanks_remove_all.onreadystatechange = function () { if (do_thanks_remove_all.handler.readyState == 4 && do_thanks_remove_all.handler.status == 200) { fetch_object('post_thanks_box_'+pid).innerHTML = do_thanks_remove_all.handler.responseText } } do_thanks_remove_all.send('showthread.php?do=post_thanks_remove_all_ajax&p='+pid) } function post_thanks_remove_user( pid ) { do_thanks_button = new vB_AJAX_Handler(true) do_thanks_button.onreadystatechange = function () { if (do_thanks_button.handler.readyState == 4 && do_thanks_button.handler.status == 200) { fetch_object('post_thanks_button_'+pid).innerHTML = do_thanks_button.handler.responseText } } do_thanks_button.send('showthread.php?do=post_thanks_button_add_ajax&p='+pid) do_thanks_remove_user = new vB_AJAX_Handler(true) do_thanks_remove_user.onreadystatechange = function () { if (do_thanks_remove_user.handler.readyState == 4 && do_thanks_remove_user.handler.status == 200) { fetch_object('post_thanks_box_'+pid).innerHTML = do_thanks_remove_user.handler.responseText } } do_thanks_remove_user.send('showthread.php?do=post_thanks_remove_user_ajax&p='+pid) } document.write('<a href="#" id="post_thanks_button_$post[postid]" onclick="post_thanks_give( $post[postid] ); return false;"> <img src="images/buttons/post_thanks.gif" alt="Thanks" border="0" /></a>'); //--> </script> <noscript> <a href="showthread.php?do=post_thanks_add&p=$post[postid]"> <img src="images/buttons/post_thanks.gif" alt="Thanks" border="0" /></a> </noscript> |
#787
|
||||
|
||||
Quote:
|
#788
|
||||
|
||||
Quote:
|
#789
|
||||
|
||||
Google clicks Thanks Button ...
So I added the green text to post_thanks_button template Code:
<a href="showthread.php?$session[sessionurl]do=post_thanks_add&p=$post[postid]" id="post_thanks_button_$post[postid]" onclick="post_thanks_give_$post[postid](); return false;" rel="nofollow">$post_thanks_button_image</a> |
#790
|
||||
|
||||
Quote:
|
#791
|
||||
|
||||
the visitors don't see the button picture but the link is still existing
take a look at the source of this page http://www.basharialep.com/forum/showthread.php?t=1259 HTML Code:
<a href="showthread.php?do=post_thanks_add&p=14350" id="post_thanks_button_14350" onclick="post_thanks_give_14350(); return false;" rel="nofollow"></a> Thanks for your help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|