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.
New option: Remove User's Thanks Count When Deleting Post
New phrase: post_thanks_search_user_gave
FIX User reputation level now updates. (Thanks to liwo for this one.)
NEW Added option to view all posts a user has thanked.
FIX Fixed Special Action - Delete All of a Users Thanks
FIX Should have fixed some 'foreach()' errors.
Version 7.3 (03/15/08):
Updated file: functions_post_thanks.php
Updated template: post_thanks_memberinfo_block
Deleted template: post_thanks_memberinfo_css
New option: Choice to use Markup Usernames or not. (Thanks to Namaless)
New option: Ban User from Getting Thanks
New option: Max Thanks a User can Give Per Day
FIX Fixed repeating bug on vb 3.6.7 forums.
CHANGE Changed where the post thanks info shows on the Profile Page. Moved to same box as statistics. (This will require a template edit if you are running vb3.7 beta 2-4)
Version 7.4 (03/21/08):
FIX: Fixed Profile Stats for vb3.7.0 RC1 users.
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:
Showing the 'thanks' button and stats in Postbit
Showing post after 'thanks' (user view)
Showing post after 'thanks' with legacy posts (admin view)
Does this mod still insert javascript after every post? The last time I checked a few months ago, javascripts were all over the places, tripling page size, which eventually lead to long downloading time plus bad SEO keywords/content ratio.
function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.display = 'none'
do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done)
do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}
function thanks_add_Done() {
if (do_thanks_add.handler.readyState == 4 && do_thanks_add.handler.status == 200) {
fetch_object('post_thanks_box_'+manualinsertedpostid).innerHTML = do_thanks_add.handler.responseText+pid
}
}
i've moved this code to showthread template and cleaned post_thanks_box template. I've also modified all links in hack's templates to use post_thanks_give_('$postid') function, but i couldn't get postid in function thanks_add_Done.
if
Code:
function post_thanks_give_(pid)
{
fetch_object('post_thanks_button_'+pid).style.display = 'none'
do_thanks_add = new vB_AJAX_Handler(true)
do_thanks_add.onreadystatechange(thanks_add_Done(pid))
do_thanks_add.send('showthread.php?do=post_thanks_add_ajax&p='+pid)
}
function thanks_add_Done(pid) {
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+pid
}
}
there is an error
do_thanks_add.handler.readyState is null or non-object
You can pass a variable with onreadystatechange. This is why I would have to use prototype but not sure how now.
Does this mod still insert javascript after every post? The last time I checked a few months ago, javascripts were all over the places, tripling page size, which eventually lead to long downloading time plus bad SEO keywords/content ratio.
It does right now. I think I may have figured out how to avoid it right now. I have to write it and give it some testing. I was able to do it with a diff prject I am working on.
Yes please.. I rebuilt nearly everything, still no luck. If there are no thanks recorded for that thread then pages 2 3 etc work fine. As soon as a thanks is inputted and you go past page one the above errors occur.
I am also very anxious to solve that problem which I mentioned to you months ago. I have been forced to remove all thanks and groans on first post when there are multiple pages on Gars
Yes please.. I rebuilt nearly everything, still no luck. If there are no thanks recorded for that thread then pages 2 3 etc work fine. As soon as a thanks is inputted and you go past page one the above errors occur.