Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Post Groan Hack Details »»
[AJAX] Post Groan Hack
Version: 5.2, by mohammad6006 mohammad6006 is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 4.x.x Rating:
Released: 12-13-2010 Last Update: 12-14-2010 Installs: 40
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

Post Groan Hack

About this hack:
This hack was requested by users who like Abe1 "Post Thank You Hack" and "Post Groan Hack" . Both can run together on the same forum.

This hack adds a "groan" button to all posts. Any user can "groan" at a post. This will reduce the amount of "junk" posts your forum gets.


INSTALLATIONS:

1) upload the 'upload via ftp' folder
--------------------------------------------------------------------
post_groans.php -> \
post_groans_admin.php -> \admincp\
post_groans.js -> \clientscript\
functions_post_groans.php -> \includes\
cpnav_post_groans.xml -> \includes\xml\
hooks_post_groans.xml -> \includes\xml\
post_groans.png -> \images\buttons\ (and into EVERY "buttons" folder in every style you have)
post_groans-hover.png -> \images\buttons\ (and into EVERY "buttons" folder in every style you have)
--------------------------------------------------------------------

2) Import product-post_groans.xml into PRODUCTS. Allow Overwrite "YES" (admincp -> Plugin System -> Manage Products -> [Add/Import Product])

Click 'install' in the thread you downloaded this from.

Features:
  • Uses vBulletin easy Product installer/updater/uninstaller
  • Uses AJAX technology so your users don't have to refresh when they groan.
  • Places an easy to use button next to the edit and Thanks button
  • Separate looks for postbit and postbit_legacy
  • Places all groans into one small box
  • Uses only ONE query every time you view a showthread page!
  • Users can't groan twice
  • Option to not allow users to groan their own post
  • Guests don't see 'geoan' button
  • Counts how many groans a user gives
  • Counts how many groans a post gets
  • Shows how many groans a user gave in every post of his
  • Shows how many groans a user gave in profile
  • Shows how many groans a user got
  • Shows how many posts or a user are groaned
  • Shows info in profile
  • Search for a users groaned posts
  • Search for all groaned posts
  • Administrator can remove all groans from a single post
  • Users can remove their own groans
  • 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 'groans'.
  • Option to give a user who receives groans reputation points.
  • Ban Usergroups
  • Ban Users
  • Uses Phrases
  • Cache Templates
  • Guaranteed to be liked by ALL users on your forum!
NOTE: I just edit [AJAX] Post Thank You Hack for create this add-ons
i request and waiting for
[AJAX] Post Groan Hack in and after not have any answer decide to edit post thank you hack for create post groan hack and test in my forum

DEMO:
http://forum.tractorfc.com


Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 01-25-2011, 01:44 PM
Welshy2008's Avatar
Welshy2008 Welshy2008 is offline
 
Join Date: Jul 2008
Location: UK
Posts: 904
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What on earth is the error below, and how do I correct it, Please?


Code:
Database error in vBulletin 4.0.7:

Invalid SQL:

SELECT post_groan.postid AS postid
FROM vbpost_groan AS post_groan
LEFT JOIN vbpost AS post USING (postid)
INNER JOIN vbthread AS thread ON(thread.threadid = post.threadid)
WHERE post_groan.userid = 5405
AND thread.forumid IN(68,3,4,75,19,77,62,78,50,34,5,6,32,27,10,29,30,70,74,11,33,71,9,16,24,13,15,69,64,17,18,67,51,61,40,41,52,14,53,54,55)
ORDER BY post.dateline DESC
LIMIT 1000;

MySQL Error : Table 'my_database.vbpost_groan' doesn't exist
Error Number : 1146
Request Date : Tuesday, January 25th 2011 @ 10:01:26 AM
Error Date : Tuesday, January 25th 2011 @ 10:01:26 AM
Script : http://www.myforum.com/post_groan.php?do=findgroans_user_gave&u=5405
Referrer : 
IP Address : 66.249.66.104
Username : Unregistered
Classname : vB_Database
MySQL Version :
Reply With Quote
  #23  
Old 03-10-2011, 01:33 PM
BANDiT600 BANDiT600 is offline
 
Join Date: Jul 2003
Location: Russian Federation
Posts: 163
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works with 4.1.2
Reply With Quote
  #24  
Old 03-16-2011, 04:34 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Crap, they don't integrate like they did in 3.8... Whatever happened to Abe1?
Reply With Quote
  #25  
Old 03-24-2011, 12:55 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay... After many hours, I think I fixed it. They integrate and everything. If you are using the reputation option, use a negative number for groans as I didn't want to search out the right $reputation - $reputation(blah blah) string. It was just easier to use a minus sign in the settings. I didn't change any of the phrases. You get what you get...



And yes, the author can take my fixes and improve upon them, anybody can use them and enjoy. Thanks/Groans integrate and act like pals on my site now. Man, there are a lot of groan/groans in that script and I had to use the right one in the right place...

BTW - Uninstall the previous version then install this one, for some reason overwriting causes one of the tables in the database to duplicate.
Reply With Quote
  #26  
Old 03-24-2011, 01:53 AM
sulasno sulasno is offline
 
Join Date: Feb 2010
Posts: 588
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks;
can you post the Thanks fixed as well ?
Reply With Quote
  #27  
Old 03-24-2011, 02:44 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't remember fixing that one. Was there something wrong with it? It's been a long few nights...
Reply With Quote
  #28  
Old 03-24-2011, 02:45 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm pretty sure that Thanks was right to begin with, Groans needed to be fixed for integration and a couple variable mismatches. Yeah, and it appears as if somebody already uploaded one for "4.1.2", the only fix necessary was to change the version maximum on the xml file though, so I hope he didn't change much of the code. I like the integration.
Reply With Quote
  #29  
Old 03-30-2011, 04:18 PM
combs combs is offline
 
Join Date: Aug 2007
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to stop people from groaning and saying thanks to the same post.

Also, a way to change the backgrounds of just the thanks/groans?
Reply With Quote
  #30  
Old 04-02-2011, 04:48 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hold on... I'm testing an integrated groan/thanks on my board right now. I think I've finally solved some of the issues I was having previously with it and will upload it soon.
Reply With Quote
  #31  
Old 04-02-2011, 11:16 PM
hoadiem hoadiem is offline
 
Join Date: Aug 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vb 4.1.2

how do i fix this issue:

Thanks: 2
Thanks 2 Times in 2 Posts0 ( where the 0 should be on Groans line)
Groans :
---------->Groaned 1 Time in 1 Post

should be looking like this:

Thanks: 2
Thanks 2 Times in 2 Posts
Groans : 0
Groaned 1 Time in 1 Post
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10268 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete