![]() |
Uses AJAX technology so your users don't have to refresh when they thank.
-------------------- very cool feature |
Wonderful hack, really something I've been looking for.
I've got a few small problems though, because I'm trying to keep my forum a bit minimalistic (my taste ;)) I've been trying to put the list of users who thanked into a popup menu, similiar to the one you get if you click on a username. To do this I've added a new button besides the "Reputation" one which needs to be clicked to see this menu. The code I've used for this: After "$post[iplogged]" Code:
<!-- Start Modified Post Thank You Hack --> Code:
<!-- Start Modified Post Thank You Hack --> It's working fairly well, I've got a few problems that I couldn't find a solution for though: How can I 'extend' the hack some so I'll able to hide the info.gif image if there are no users who thanked for a post. And how can I make sure the list will be updated when a user clicks the "Thanks" button? I'm afraid I destroyed the AJAX somewhere but can't figure out where it was. Thanks a lot for your help, hopefully there are also other users interested in this. Edit; reduced the template edits by one, still hoping for someone to help me fixing the bugs! |
Do you have a demo of your extra bit or a screener please,
Do you think you could do the same for the post groan? Pehaps you can release yours as an add on for these 2 hacks.. Its just that my post bit is looking a tad full ya see and getting rid of the thanks and groans amounts would be a godsend :) Quote:
|
As soon as I've made sure all bugs are gone I'll definitely release it here (if Abe allows me, which shouldn't be too much of a problem as it's only a template edit).
You can find somewhat of a "demo" here: http://otfans.net/showthread.php?p=347708. Code:
Logon with vBtest / test |
wow...that is 100% brill m8...
look forward to the release if its allowed :) Thanks for the login! |
Quote:
|
I'm glad to hear that, could you also help me out some with the two problems I'm experiencing (which I posted a way up), thanks a lot.
|
Hi Yorixz I am not seeing a post_thanks_box template, i have a post_thanks_groan template though....?
|
I haven't got the Groan Hack installed so I don't know if/what templates it's overwriting. The post_thanks_box template is the one that has all the Javascript of the AJAX in it and at the bottom one line of HTML.
|
im kinDA congfused, when u say
Do the template edits in postbit AND postbit_lagacy: find: -------------------------------------------------------------------- $vbphrase[posts]: $post[posts] -------------------------------------------------------------------- AFTER place this: -------------------------------------------------------------------- <!-- Start Post Thank You Hack --> <if condition="$post[userid]"> <br /> $vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount] <br /> <if condition="$post[post_thanks_thanked_times_on] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$post[post_thanks_thanked_posts_on] == 1"> <phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </if> <!-- End Post Thank You Hack --> -------------------------------------------------------------------- i am using ------ Find and Replace in Templates (be careful!)----- shoud i ------ Search for Text then =------- replace with text? Meaning the value that u given should be replace or just add it to the variable ? sample $vbphrase[posts]: $post[posts] replace by <!-- Start Post Thank You Hack --> <if condition="$post[userid]"> <br /> $vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount] <br /> <if condition="$post[post_thanks_thanked_times_on] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$post[post_thanks_thanked_posts_on] == 1"> <phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </if> <!-- End Post Thank You Hack --> OR $vbphrase[posts]: $post[posts] then i just insert below this <if condition="$post[userid]"> <br /> $vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount] <br /> <if condition="$post[post_thanks_thanked_times_on] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$post[post_thanks_thanked_posts_on] == 1"> <phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </if> <!-- End Post Thank You Hack --> Sorry for the stupid question :) |
All times are GMT. The time now is 04:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|