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
  #32  
Old 04-03-2011, 02:04 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hoadiem View Post
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
In the post_groans_postbit_info template, change stylevar right to read stylevar left.
Reply With Quote
  #33  
Old 04-06-2011, 02:06 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I'm going to post the version that I have integrated with the thanks hack on my site, the search feature is off until I can figure out the correct search string to find all thanks/groans. I'll also post the thanks that I added changed slightly for integration. If you upgrade check your dbase for an extra "post" in your dbase in the post_thanks/post_groans tables. For some reason it adds an extra one that is useless.

Tell me if there are any issues, if this is clean I guess I can post a new thread with both hacks with credit to the original coders...
Reply With Quote
  #34  
Old 04-06-2011, 06:20 PM
chrisdaman chrisdaman is offline
 
Join Date: Oct 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Phaedrus View Post
Okay, I'm going to post the version that I have integrated with the thanks hack on my site, the search feature is off until I can figure out the correct search string to find all thanks/groans. I'll also post the thanks that I added changed slightly for integration. If you upgrade check your dbase for an extra "post" in your dbase in the post_thanks/post_groans tables. For some reason it adds an extra one that is useless.

Tell me if there are any issues, if this is clean I guess I can post a new thread with both hacks with credit to the original coders...
Ok, the 2 seem to be working fine together, thanks and groans.

The only issue I see with the groans, is if someone gives a groan beneath the first post (eg. 2nd or 4th, 5th post), it will show up, but after you refresh the page, it will still show your groan given, but not your username. It just shows a blank space where your username should be within the groan box.

Any ideas?
Reply With Quote
  #35  
Old 04-06-2011, 06:22 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chrisdaman View Post
Ok, the 2 seem to be working fine together, thanks and groans.

The only issue I see with the groans, is if someone gives a groan beneath the first post (eg. 2nd or 4th, 5th post), it will show up, but after you refresh the page, it will still show your groan given, but not your username. It just shows a blank space where your username should be within the groan box.

Any ideas?
I'll look into it, the java must be calling a dbase string that isn't rendering the username. Dangit, I thought I had it. Garrr... This mod will be the end of me. It should work. Thanks for reporting back though. My users really want this, and just as you mentioned it my first "groans" hit and I'm seeing some, but not all, of the groans. I don't get it. It seems to work in every other aspect though, so there's got to be something simple I am missing. Unfortunately I'm learning as I go, and this mod's variables are a string of groans groaned groan times blah...
Reply With Quote
  #36  
Old 04-06-2011, 08:59 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I had an odd hiccough, however I shut it off, cleared the cache, rebuilt post cache, turned it back on.. and boom, it's working. Give that a quick test and see if it works for you. All this rendering, etc. has changed how hacks load. I think we'll be running a lot of post cache rebuilds...

Also, if you are upgrading, run your counters for the mod (they're in the Mod's settings) after you are done and make sure to set it to overwrite. I have some tweaks to make to the phrases, etc. (especially the postbit, I changed the templates a bit and need to add those to the mod), for some reason the blog links get in the way and I haven't figured out how to make it not straddle the blog button and link in the postbit... My users are ecstatic, they're favorite mod is working again... (hopefully permanently).

But if this actually will work on other boards, it is ready with just minor changes and I'll upload both mods with total credit given to the original authors.

Oddly enough, I went on as a "guest" to my site and saw every groan with no problem. Logged in as a registered user, some groans, some I couldn't see. Logged back out, saw them all again... Logged back in as an Administrator, some there some not... There's something very odd going on, there is no limitation as to who can see the groan box that part of the hack is exactly the same as the Thank you hack with a one-word change.
Reply With Quote
  #37  
Old 04-07-2011, 03:50 AM
baileyjojoms baileyjojoms is offline
 
Join Date: Mar 2011
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! I added the Groan and your fixed Thank You! Worked like a charm on VB4.1.2
Reply With Quote
  #38  
Old 04-07-2011, 05:23 AM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most excellent.
Reply With Quote
  #39  
Old 04-07-2011, 02:59 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm making some updates, when I am done and tested I will create new threads for both so people can receive updates. If the original authors come back, I'll hand it all over to them. Mine Gott...

BTW - chrisdaman, the two mods were working on the same executionorder and that is causing some of the problems, I've updated that on the next release as well as making cosmetic changes to where the buttons show up if you have the blog feature turned on and in the postbit info section as to how the thanks/groans information shows up. Previously if you had the blog feature turned on it would straddle them and the information got all mucked, I've fixed that on my site.
Reply With Quote
  #40  
Old 04-07-2011, 03:40 PM
chrisdaman chrisdaman is offline
 
Join Date: Oct 2002
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds good, thanks! I did as you said and turned off product, cleared cache and rebuilt post and it seems to be showing up correctly. But I will still update to the next release.
Reply With Quote
  #41  
Old 04-07-2011, 05:33 PM
Phaedrus Phaedrus is offline
 
Join Date: Jul 2006
Location: Colorado
Posts: 617
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good.
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 06:04 AM.


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.06025 seconds
  • Memory Usage 2,314KB
  • 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
  • (3)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
  • (3)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