Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] Post Groan Hack Details »»
[AJAX] Post Groan Hack
Version: 4.1, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 10-12-2008 Last Update: 10-15-2008 Installs: 327
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Post Groan Hack 4.1


About this hack:
This hack was requested by users who like my "Post Thank You 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.

Features:
  • Uses vBulletin easy Product installer/updater/uninstaller
  • Uses AJAX technology so your users don't have to refresh when they groan at a post.
  • Places an easy to use button next to the edit 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
  • Guests don't see 'groan' 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 info in profile
  • Search for a users groaned at posts
  • Search for all groaned at posts
  • Administrator can remove all Groans from a single post
  • Users can remove their own Groans (Option to turn it off)
  • Turn on and off hack totally
  • Turn on and off hack for only some forums
  • Option to turn off hack view of date all forums
  • Option to integrate hack with Post Thanks Hack
  • Ban Usergroups
  • Ban Users
  • Uses Phrases
  • Cache Templates
Installation information on hack:
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 7
  • Time to install: 1 minute max
Updates:

Version 4.0 (10/13/08):
  • Release of this hack for vBulletin version 3.7
  • All Features that my Post Thanks Hack has.

Version 4.1 (10/15/08):
  • Added missing phrase
  • Fixed one of the searches.

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 'groan' button and stats in Postbit
  2. Showing post after 'groan' (user view)
  3. Showing post after 'groan' with legacy posts (admin view)
  4. Stats in members profile
  5. Hacks settings

Download Now

File Type: zip post_groan_4_1.zip (25.6 KB, 1633 views)

Screenshots

File Type: jpg 1.JPG (18.1 KB, 0 views)
File Type: jpg 2.JPG (25.4 KB, 0 views)
File Type: jpg 3.JPG (25.0 KB, 0 views)
File Type: jpg 4.JPG (7.8 KB, 0 views)
File Type: jpg 5.JPG (101.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

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

Comments
  #132  
Old 05-31-2015, 11:04 PM
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blastme View Post
I installed it yesterday. Its functional but the groan button style ( far right ) does not match my other existing buttons as per screenshot attached.


Any suggestions how to correct it would be much appreciated.


Also how would or could I change the word groan to another word of my choice. ?
you can edit temp "post_groan_button"

Quote:
<a href="post_groan.php?$session[sessionurl]do=post_groan_add&amp;p=$post[postid]&amp;securitytoken=$bbuserinfo[securitytoken]" id="post_groan_button_$post[postid]"<if condition="$vboptions[disable_ajax] != 2"> onclick="return post_groan_give($post[postid], <if condition="$vboptions[post_groan_integrate]">true<else />false</if>);"</if> <if condition="$display_groan_image == 'none'">style="display:none"</if> rel="nofollow"><img src="$stylevar[imgdir_button]/post_groan.gif" alt="$vbphrase[post_groan_groan]" border="0" /></a>
Reply With Quote
  #133  
Old 07-30-2017, 05:22 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who may try to use this on PHP 5.6.0 (or higher) and VB 3.8.11, you need to make some manual file edits to the /includes/functions_post_groan.php

Thanks to vbem2 who figured out the file edits for the Post Thank You mod here: https://vborg.vbsupport.ru/showthrea...95#post2586995

But basically you open the file in a code editor.

FIrst look for:
Code:
		if ($postids)
		{
			$post_ids = "0$postids";
		}
		else
		{
			$post_ids = $postid;
		}
and replace it with

Code:
		if (empty($postids))
		{
			$postids[] = $postid;
		}
Next search for:

Code:
(" . $post_ids . ")
And replace it with

Code:
(" . implode(',', $postids) . ")
There should be 2 instances of the above.


That seems to do it for me.
Reply With Quote
Благодарность от:
blind-eddie
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 08:03 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.07429 seconds
  • Memory Usage 2,265KB
  • Queries Executed 21 (?)
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
  • (4)bbcode_code
  • (2)bbcode_quote
  • (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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (3)post_thanks_box
  • (1)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (6)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete