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 STAFF EDIT: Note - The mod author has been unreachable for some time, but the vbulletin.org community has stepped up to provide a number of individual fixes over the years. ForceHSS, Hippy, and Seven Skins have all combined many of these fixes into product files. ALL CREDIT STILL GOES TO ABE1 And this is still 'his' mod. Please still mark the mod as installed if you use any version of it. That said so you don't need to apply a dozen + small fixes yourself you should consider downloading one of the updated packages below: Hippy has one in this post. AND / OR ForceHSS has one in this post. AND/OR Seven Skins has one in this post. - Original File Specs: post_thanks_7_82.zip (26.4 KB, 24844 downloads) - Original file removed, replaced with patched files including search fix (some admins noticed hackers attempting to use outdated code to exploit search in attempt to gain administrator password or similar). - There are five total patched versions available, some with and without the search fix - I've replaced the main file with the patched versions... please be sure to download and install the correct version, the main mod post contains links to additional information and patched files! - If Abe1 returns he can request these packages be removed. 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 guaranteed liking by ALL the members of your forum. Features:
Version 7.80 (12/30/09):
Version 7.81 (01/02/10):
Version 7.82 (01/03/10):
Download Now
Supporters / CoAuthors Show Your Support
|
92 благодарности(ей) от: | ||
armagan, Baja, BasicGreatGuy, BCP Hung, Beckenbauer, BlueCheri, BoRoU, Bubble #5, Bucky Katt, CAG CheechDogg, CharlesEdwards, ChriDevelop, Crow, D4rk_Sh00t3r, dandanch, deltahawk5, dlewisr, drchinh, DS MrSinister, ELROBLE, elsa23, elwizard, eTiKeT?, fai99al99, Fennec, ggrimes620, goxy63, Hippy, jamyk, Jass!, john7911, jowshany, Juggernaut, JustAskJulie, kamurj, klyde, lange, lehoang101101, Life Revived, lims, LordOfWAR_PC, Luvilla, M Shaker, Mandushi, mapleleaffans, MegaManSec, michal72, mikadit, MistyMeanor, mjfan227, mmcguire, mobile4persian, mohammadxxx, Monyet_sby, nacaruncr, OMAN_LOVER, O_Dog, Peafor, phiber, pjkcards, Popa Andrei, Pottsy, Protonus, rafiul, RetroDreams, RichieBoy67, Rickpwns, Rodrigo., Roidon, Rubio, Sarah EI, sarvarjafari, sivaganeshk, Skaut, Skedoozy, socceronly, socialteenz, Stefan118, Teascu Dorin, TheSSDReview, TorrentMan, webriz.com, Whity |
Comments |
#2762
|
|||
|
|||
Attachment 139670
I am using ForceHSS' version of the hack and I have been unable to find any information regarding how to make the box where it says people have thanked for this useful post look like the attached image. I am using a theme that takes advantage of postbit legacy. Can someone help? Thanks. |
#2763
|
||||
|
||||
That's because it's a article that BOP5 write look at the post of mine in the first post or my Sig. The link to it is there
|
#2764
|
||||
|
||||
I'm wracking my brains trying to figure out how to make this work after moving parts of my vB4 suite to sub-domains (the forums and the blogs).
When we click on Thanks, nothing happens except for the "Thanks" bit disappearing. When the thread is re-loaded, nothing has changed, either. When we middle-click or otherwise open the "Thanks" in a new Tab/Window, it works fine. I tried making a post_thanks.php file in my forums sub-directory that has the same stuff most everything else in that directory has: PHP Code:
It worked great before the change to the new sub-domain. It still does not work on a clean Style. I (obviously) haven't tried disabling all my plugins, since this one would be included. XP Am I missing something? |
#2765
|
|||
|
|||
Quote:
|
#2766
|
||||
|
||||
No, but I did re-download, and re-installed (allowing uploaded files to overwrite the old files) with "Allow Overwrite" set when I imported the XML.
If I remove it, won't that remove the database of Thanks I already have? Note that Thanking is still possible; one can still "Thank" by opening the thank link itself in a new tab/window. It's just the AJAX that seems to crap out. |
#2767
|
|||
|
|||
Version you are using and vb version?
|
#2768
|
|||
|
|||
Quote:
|
#2769
|
||||
|
||||
I'm using 7.84. I -think- I was using 7.83 before I re-installed it, but it might have been 7.84.
vB version is 4.1.11. (Was on 4.1.10, but when we moved stuff to subdomains, there was a bug for going to the first unread post of a thread, and that was fixed in 4.1.11, so we just upgraded last night.) I have the site on three subdomains, basically. Normal content (including CMS) is on the plain old www.domain, forums are on forums.domain, and blogs (not that it matters) are on blogs.domain. What I "moved," well, it wasn't really a move. I left everything installed as normal. I then created a new file in my forums sub-directory on the server called post_thanks.php (originally, there was just the one on the main part of the site). I put into it the content you see above (which is the content in most files in stub directories like mine). I will install this onto my clean testing forum tonight (I split it into sub-domains as well not too long ago), and see if the problem persists. |
#2770
|
|||
|
|||
Quote:
|
#2771
|
||||
|
||||
Quote:
You do realize that vBulletin 4.1+ allows for subdomains to separate blogs, forums, and CMS, yeah? ANYways, back to the issue. I altered the post_thanks.js to have the following function changed: Code:
var post_thanks_handleFailure = function(o) { if(o.responseText !== undefined) { alert(o.responseText); } else {console.debug("Here is the request object (failed): %o", o);} } Code:
Here is the request object (failed): Object { tId=1, status=0, statusText="communication failure"} Ah, fixed it. That new post_thanks.php that I put up in my forums stub directory, I put that back in, and THEN I prefixed the "sUrl" in each of the three functions with PATHS.forum+'/'. (Full code will follow at the end of this post.) Thanks is now working just fine. Code:
/*======================================*\ || #################################### || || # Post Thank You Hack version 7.84 # || || # Original version by Abe1 # || || # Updated by Forcehss # || || #################################### || \*======================================*/ var post_thanks_base_url = PATHS.forum+'/'; var post_thanks_handleSuccess = function(o) { if(o.responseText !== undefined) { if (post_thanks_callback.object_name[o.tId] !== undefined) { fetch_object(post_thanks_callback.object_name[o.tId]).innerHTML = o.responseText; } } } var post_thanks_handleFailure = function(o) { if(o.responseText !== undefined) { alert(o.responseText); } else {console.debug("Here is the request object (failed): %o", o);} } var post_thanks_callback = { success: post_thanks_handleSuccess, failure: post_thanks_handleFailure, timeout: vB_Default_Timeout, cache: false, object_name: new Array() }; function post_thanks_give(postid, integrate) { fetch_object('post_thanks_button_' + postid).style.display = 'none'; fetch_object('post_thanks_separator_' + postid).style.display = 'none'; if (integrate == true) { fetch_object('post_groans_button_' + postid).style.display = 'none'; } var sUrl = post_thanks_base_url + 'post_thanks.php'; var postData = 'do=post_thanks_add&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN; var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData); post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid; fetch_object('post_thanks_box_' + postid).style.display = ''; return false; } function post_thanks_remove_all(postid, integrate) { var sUrl = post_thanks_base_url + 'post_thanks.php'; var postData = 'do=post_thanks_remove_all&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN; var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData); post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid; fetch_object('post_thanks_button_' + postid).style.display = '' fetch_object('post_thanks_separator_' + postid).style.display = ''; if (integrate == true) { fetch_object('post_groans_button_' + postid).style.display = ''; } fetch_object('post_thanks_box_' + postid).style.display = 'none'; return false; } function post_thanks_remove_user(postid, integrate) { var sUrl = post_thanks_base_url + 'post_thanks.php'; var postData = 'do=post_thanks_remove_user&using_ajax=1&p=' + postid + '&securitytoken=' + SECURITYTOKEN; var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, post_thanks_callback, postData); post_thanks_callback.object_name[request.tId] = 'post_thanks_box_' + postid; fetch_object('post_thanks_button_' + postid).style.display = '' fetch_object('post_thanks_separator_' + postid).style.display = ''; if (integrate == true) { fetch_object('post_groans_button_' + postid).style.display = ''; } fetch_object('post_thanks_box_' + postid).style.display = 'none'; return false; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|