vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=122944)

Abe1 08-02-2006 10:00 PM

[AJAX] Post Thank You Hack
 
vB 3.7 version of this hack here: https://vborg.vbsupport.ru/showthread.php?t=165673
vB 4.0 version of this hack here: https://vborg.vbsupport.ru/showthread.php?t=231666

Post Thank You Hack 7.4


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:
  • Uses vBulletin easy Product installer/updater/uninstaller
  • Uses AJAX technology so your users don't have to refresh when they thank.
  • Places an easy to use button next to the edit button
  • Separate looks for postbit and postbit_legacy
  • Places all Thanks into one small box
  • Uses only ONE query every time you view a showthread page!
  • Users can't thank twice
  • Option to not allow users to thank their own post
  • Guests don't see 'thanks' button
  • Counts how many thanks a user gives
  • Counts how many thanks a post gets
  • Shows how many thanks a user gave in every post of his
  • Shows how many thanks a user gave in profile
  • Shows how many thanks a user got
  • Shows how many posts or a user are thanked
  • Shows info in profile
  • Search for a users thanked posts
  • Search for all thanked posts
  • Administrator can remove all Thanks from a single post
  • Users can remove their own Thanks
  • Turn on and off hack totally
  • Turn on and off hack for only some forums
  • Option to turn off hack for all but the first post of a thread
  • Option to turn off hack for all but the first post of a thread in specific forums
  • Option to turn off hack view of date for specific or all forums
  • Option to add to post count when someone clicks 'thanks'.
  • Option to give a user who receives thanks reputation points.
  • Ban Usergroups
  • Ban Users
  • Uses Phrases
  • Cache Templates
  • Guaranteed to be liked by ALL users on your forum!
Installation information on hack: (If installed on vb 3.7)
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 7
  • Time to install: 1 minute max

Updates:

Version 7.0 (12/20/07):
  • Release of this hack for vBulletin version 3.7
  • This version works on all vBulletin versions from 3.6.0 and up

Version 7.1 (12/24/07):
  • Fixed up the vb3.7 profile block code including fixing showing your info and not the member you are looking at.

Version 7.2 (01/24/08):
  • Updated files: post_thanks.php, functions_post_thanks.php
  • Updated templates: post_thanks_memberinfo_block, post_thanks_member_info
  • 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:
  1. Showing the 'thanks' button and stats in Postbit
  2. Showing post after 'thanks' (user view)
  3. Showing post after 'thanks' with legacy posts (admin view)
  4. Stats in members profile and link
  5. Link in Search drop down menu
  6. Hacks settings

Farjad 08-03-2006 08:56 PM

thanks, really like this hack
* Farjad clicks install

TygerTyger 08-03-2006 08:58 PM

Thank you! Are there any changes other than compatibility between this version and the 3.5.4 version? Cos that one worked fine for me on 3.6 anyway...

Abe1 08-03-2006 09:01 PM

Quote:

Originally Posted by TygerTyger
Thank you! Are there any changes other than compatibility between this version and the 3.5.4 version? Cos that one worked fine for me on 3.6 anyway...

Just 2 small template edits.

Posof 08-03-2006 09:08 PM

Yes i was waiting for this hack.. thanks

nix 08-03-2006 09:15 PM

Thanks! Love this hack.

Thinkinstein 08-03-2006 10:53 PM

It would be better if it's integrated with a cash system, so that a given amount of money is received when a user get thanked.

MrNase 08-03-2006 11:16 PM

Very cool, I might install it. :)

o0Hubba0o 08-04-2006 12:37 AM

Quote:

Originally Posted by Abe1
Just 2 small template edits.

Are they required, because it's worked for me so far. Is it possible to point out the differences so we don't have to do all of them?

Milad 08-04-2006 01:39 AM

Suggestion: Please can you integrate the ranking and promoting systems with this hack?
To make users ranking and promoting based om this hack?

Thanks in advance

Abe1 08-04-2006 02:48 AM

Quote:

Originally Posted by o0Hubba0o
Are they required, because it's worked for me so far. Is it possible to point out the differences so we don't have to do all of them?

Not a regualar edit on your side. It was an edit to 2 templates of this hack. If you just install the upgrade, it will over write the old template.

Abe1 08-04-2006 02:48 AM

Quote:

Originally Posted by Milad
Suggestion: Please can you integrate the ranking and promoting systems with this hack?
To make users ranking and promoting based om this hack?

Thanks in advance

The reputation system? It's with it already.

D.Ilyin 08-04-2006 04:21 AM

Quote:

Originally Posted by Abe1
The reputation system? It's with it already.

I think Milad means that promotion by amout of THANKs.....

PS Sory for asking again, but...... what about our discution here?

jacki 08-04-2006 04:53 AM

thak youuuuuuuuuuuuu

cavyspirit 08-04-2006 05:15 AM

How about the Groans? I need both.

So, I just install the new version and it will keep my existing thanks and groans, right?

This hack has worked out so great for us! I really, really like it!

cavyspirit 08-04-2006 05:15 AM

How about the Groans? I need both.

So, I just install the new version and it will keep my existing thanks and groans, right?

This hack has worked out so great for us! I really, really like it!

Abe1 08-04-2006 06:26 AM

Quote:

Originally Posted by cavyspirit
How about the Groans? I need both.

So, I just install the new version and it will keep my existing thanks and groans, right?

This hack has worked out so great for us! I really, really like it!

If you upgrade to vb3.6, the groans should work fine until an update comes out.

JollyJack 08-04-2006 09:53 AM

thanks great to have this back so soon

o0Hubba0o 08-05-2006 02:00 PM

Quote:

Originally Posted by Abe1
Not a regualar edit on your side. It was an edit to 2 templates of this hack. If you just install the upgrade, it will over write the old template.

Ok, thanks Abe.

big dan 08-05-2006 04:01 PM

Thanks for this hack.. This is something this site should impletment. ;)

Edit on further inspections, it's seems to of broken the dropdown list, for user info. Anyone else experince this?

Patria 08-05-2006 04:08 PM

I noticed a strange behavior, after editing a post by Quick Edit the Thanks button disappear.

RS_Jelle 08-05-2006 08:29 PM

[high]* RS_Jelle clicks install and uninstall for the old version :)[/high]

cavyspirit 08-06-2006 12:29 AM

The thanks are whacking out my template a bit.

Can you help figure out the template edit to fix this?

Thanks,
Teresa

Abe1 08-06-2006 12:54 AM

Quote:

Originally Posted by Danny Boy
Thanks for this hack.. This is something this site should impletment. ;)

Edit on further inspections, it's seems to of broken the dropdown list, for user info. Anyone else experince this?

Do you have a screenshot? Not sure what you are talking about.

Abe1 08-06-2006 12:55 AM

Quote:

Originally Posted by Patria
I noticed a strange behavior, after editing a post by Quick Edit the Thanks button disappear.

Nothing I can do about that really. vB uses somthing else then normal to pull just the postbit for it.

Abe1 08-06-2006 12:56 AM

Quote:

Originally Posted by cavyspirit
The thanks are whacking out my template a bit.

Can you help figure out the template edit to fix this?

Thanks,
Teresa

What version do you have installed where.

cavyspirit 08-06-2006 02:13 AM

Quote:

Originally Posted by Abe1
What version do you have installed where.

I just installed your latest version 5.0 on my 3.6 board. It was an upgrade for me. I also have groans 1.2 installed.

I think somehow there are too many div tags. Attached is a screen shot showing tables (red), table cells (blue) and div tags (brown).

Thanks.

Abe1 08-06-2006 03:55 AM

Quote:

Originally Posted by cavyspirit
I just installed your latest version 5.0 on my 3.6 board. It was an upgrade for me. I also have groans 1.2 installed.

I think somehow there are too many div tags. Attached is a screen shot showing tables (red), table cells (blue) and div tags (brown).

Thanks.

Can you post here the last 10-15 lines of you postbit now?

cavyspirit 08-06-2006 05:11 AM

Here it is:

<!-- message, attachments, sig -->

</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
<!-- Start Post Groan Hack -->
$post_groan
<!-- End Post Groan Hack -->

ahsidky 08-06-2006 09:36 AM

I like it so much, it's very usefull.
Thank you for this great job.

aLReeMi 08-06-2006 09:36 AM

greaaaaaaaaaaaaaaaaat
thanks alot

Abe1 08-06-2006 11:01 AM

Quote:

Originally Posted by cavyspirit
Here it is:

<!-- message, attachments, sig -->

</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->
<!-- Start Post Thank You Hack -->
$post_thanks
<!-- End Post Thank You Hack -->
<!-- Start Post Groan Hack -->
$post_groan
<!-- End Post Groan Hack -->

Do you have any other styles?

dragonhart 08-06-2006 11:26 AM

This is great!!!! Thank you very much Dragonhart :D

cavyspirit 08-06-2006 03:29 PM

Quote:

Originally Posted by Abe1
Do you have any other styles?

Yes, but they are not used. Nor have I edited them to take advantage of any of my add-ons. I guess I should just delete them. But again, they are not used and my styles are not user selectable.

cavyspirit 08-06-2006 03:46 PM

Would it help to view source on one of the pages? Here is an example: http://www.guineapigcages.com/forum/...eat-forum.html

Abe1 08-06-2006 04:05 PM

Quote:

Originally Posted by cavyspirit
Would it help to view source on one of the pages? Here is an example: http://www.guineapigcages.com/forum/...eat-forum.html

Did you ever edit the post_thanks_postbit template? If you did, you should revert it.

cavyspirit 08-06-2006 04:21 PM

Yup. That was the problem. That worked! Whoohoo! Thank you very much.

cavyspirit 08-06-2006 05:39 PM

Okay. Well, I got my thanks back to normal, now the groans are still wigged out. All templates have been reverted. Of course, the groans are still on v1.2.

What can I do to fix this?
Thanks so much.

Abe1 08-06-2006 05:43 PM

Quote:

Originally Posted by cavyspirit
Okay. Well, I got my thanks back to normal, now the groans are still wigged out. All templates have been reverted. Of course, the groans are still on v1.2.

What can I do to fix this?
Thanks so much.

I didn't update groan yet. You can maulay remove from the post_groan_postbit template $spacer_open and closed in the beg. and end of the template.

cavyspirit 08-06-2006 05:49 PM

PERFECT! Thank you very much!!


All times are GMT. The time now is 06:28 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02709 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete