vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] Post Groan Hack (https://vborg.vbsupport.ru/showthread.php?t=111251)

Abe1 03-23-2006 10:00 PM

[AJAX] Post Groan Hack
 
Post Groan Hack 3.3




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 3.3 (08/03/07):
  • Released latest version for vb 3.5.x

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

Pramodinfo 03-24-2006 03:23 PM

Thanks ;)
*clicks install*

COBRAws 03-24-2006 03:48 PM

My users will have fun with this lol

Hasann 03-24-2006 04:05 PM

very interesting ;) thank you

Oddjob 03-24-2006 04:19 PM

The groans arent displaying under the posts. It records them in the postbit fine....also the text in the admin cp for this isnt there. It works if i click on it though.

Yes, i already re-imported the product.

projectego 03-24-2006 04:20 PM

Sounds interesting. I might give it a whirl. :)

Abe1 03-24-2006 04:22 PM

Quote:

Originally Posted by Oddjob
The groans arent displaying under the posts. It records them in the postbit fine....also the text in the admin cp for this isnt there. It works if i click on it though.

Yes, i already re-imported the product.

Can you show me a screenshot?

Abe1 03-24-2006 04:28 PM

Quote:

Originally Posted by Oddjob
The groans arent displaying under the posts. It records them in the postbit fine....also the text in the admin cp for this isnt there. It works if i click on it though.

Yes, i already re-imported the product.

If you are using postbit_legacy, then the template was not going. I updated the zip file with a fix.

dirtycrow 03-24-2006 04:29 PM

how does this reduce the amount of "junk" posts your forum gets? to me it seems like they get a lot more junk with a bunck of goans after a bad post.

Abe1 03-24-2006 04:31 PM

Quote:

Originally Posted by dirtycrow
how does this reduce the amount of "junk" posts your forum gets? to me it seems like they get a lot more junk with a bunck of goans after a bad post.

If I knew that users can groan at me, I'm not sure I would make a stupid post.

Matter of opinion.

Tracer Gun Kata 03-24-2006 04:46 PM

Can this be used in conjuntion with your Post Thanks?

Oddjob 03-24-2006 04:46 PM

Quote:

Originally Posted by Abe1
If you are using postbit_legacy, then the template was not going. I updated the zip file with a fix.

Thanks, works perfectly now.

Abe1 03-24-2006 04:48 PM

Quote:

Originally Posted by Tracer Gun Kata
Can this be used in conjuntion with your Post Thanks?

Yes. Both should work together with no problems.

dirtycrow 03-24-2006 04:52 PM

Quote:

Originally Posted by Abe1
If I knew that users can groan at me, I'm not sure I would make a stupid post.

Matter of opinion.

true I see your point, unless you have users that like negative attention.

Floris 03-24-2006 08:00 PM

Isn't this where thread rating is made for?

hiiped 03-24-2006 09:31 PM

Quote:

Originally Posted by Floris
Isn't this where thread rating is made for?

but you can NOT see who rated
you also can NOT see how many people rated


it would be nice if when combined with the Thank You Hack that a member who GROANED in a thread can NOT also THANK the thread ( and vice-versa )

there would be two colums below the first post
1 with THANKS and the other with GROANS

Tulsa 03-25-2006 01:23 AM

Abe, what I was invisioning with this was more of a jab so to speak, to have some fun. Saying NO thank you for this Un-Useful post appears simply mean. It should be more funny than mean.

hbalagh1 03-25-2006 01:37 AM

this is too funny,

Tulsa 03-25-2006 01:38 AM

However it is working perfectly! :)

username12 03-25-2006 02:04 AM

Groan button's not showing up for me. Edit: never mind. Just remembered the plugin accelerator hates me. Works fine now.

Also, a minor bug. The options setting is showing up as a blank line.

Tulsa 03-25-2006 02:09 AM

Okay, it's working perfectly except for the blank line in the admincp! ;)

xfaethorx 03-25-2006 07:38 AM

Quote:

Originally Posted by Tulsa
Okay, it's working perfectly except for the blank line in the admincp! ;)

yep i have this too :D.

Abe1 03-26-2006 12:45 AM

Quote:

Originally Posted by Floris
Isn't this where thread rating is made for?

This is per post!

Abe1 03-26-2006 12:47 AM

Quote:

Originally Posted by hiiped
it would be nice if when combined with the Thank You Hack that a member who GROANED in a thread can NOT also THANK the thread ( and vice-versa )

I like this Idea. Maybe I'll release an addon for both.
Quote:

Originally Posted by hiiped
there would be two colums below the first post
1 with THANKS and the other with GROANS

I'm not sure I would do this much.

Abe1 03-26-2006 12:48 AM

Quote:

Originally Posted by Tulsa
Abe, what I was invisioning with this was more of a jab so to speak, to have some fun. Saying NO thank you for this Un-Useful post appears simply mean. It should be more funny than mean.

You can edit the phrase to what ever you would like.

Abe1 03-26-2006 12:49 AM

Quote:

Originally Posted by Tulsa
Okay, it's working perfectly except for the blank line in the admincp! ;)

I'll look into that.

Tulsa 03-26-2006 09:20 AM

I did edit the phrases and my users love this hack! :) My forum is about game room toys specifically Japanese slots and pachinko machines so we're just a bunch of big kids anyway.

From the users of my site and as promised in the thank you thread, a donation has been made.

Thanks again.

Abe1 03-26-2006 11:43 AM

Thanks alot. I got it.

Abe1 03-27-2006 11:02 PM

Version 1.1 (3/27/06):
  • Fixed a few things including the missing phrase.

Abe1 03-28-2006 02:54 AM

Can't Thank and Groan the Same Post released :)

IrPr 03-28-2006 09:50 PM

Abe1, one idea!
i'm using Post Thank You and Post Thank You Stats in vBA
isnt better when some1 says Groan to one post, instead of increasing Groan post stats, decrease Thank You Stats for that post ???????

such as signet numbers, when saying thanks +,when saying groan -

Abe1 03-28-2006 10:49 PM

I dont really want to realy merge the 2 hacks together.

Rickie3 03-29-2006 12:16 AM

I love this ive changed my phrases to say "The Following Users Says Crap For This Un-useful Post" lol
*installed*

cavyspirit 03-29-2006 12:29 AM

Thanks! The upgrade worked great.

Not sure if I missed this or it's not there, but I'd love to be able to search on all Groaned posts, just like we can search on all Thanked Posts.

I get more complaints about groaned posts than thanked posts and would like to be able to go straight to them.

So far, it's working great. Thanks much.

Abe1 03-29-2006 02:14 AM

Quote:

Originally Posted by cavyspirit
Thanks! The upgrade worked great.

Not sure if I missed this or it's not there, but I'd love to be able to search on all Groaned posts, just like we can search on all Thanked Posts.

I get more complaints about groaned posts than thanked posts and would like to be able to go straight to them.

So far, it's working great. Thanks much.

Good point about the search. I'll try to get it running.

cavyspirit 03-29-2006 03:36 PM

I also need to be able to allow Moderators to remove Groans.

cavyspirit 03-29-2006 03:45 PM

Just thought I'd share my template edits to make the messages a little more discrete, yet easier to read in the course of the thread. I reduced the font size, added italics, use red for groans, and green for thanks and reworded it a bit to save space.

Also, in the member section, I put the thanks and groans count on the same line, since I have both hacks installed.

Lance Carbuncle 03-31-2006 09:30 PM

My users are having a ball with this one.... I edited the phrases to read.....

You mean to tell me I clicked my way all the way here just to read this silly, redundant, meaningless post? "GROAN"

And for more than one groan on the same post.........."We are organizing a lynch mob for wasting our time and making us all come here and read this redundant, worthless, meaningless, silly, stupid post..... Someone get a rope!"

having a "view all users groans" in profile the way the thank you hack is would be great too!

Thanks for the great hack!

Abe1 04-01-2006 10:36 PM

Quote:

Originally Posted by Lance Carbuncle
My users are having a ball with this one.... I edited the phrases to read.....

You mean to tell me I clicked my way all the way here just to read this silly, redundant, meaningless post? "GROAN"

And for more than one groan on the same post.........."We are organizing a lynch mob for wasting our time and making us all come here and read this redundant, worthless, meaningless, silly, stupid post..... Someone get a rope!"

having a "view all users groans" in profile the way the thank you hack is would be great too!

Thanks for the great hack!

A 'search all groans' is on the way.

Rickie3 04-19-2006 04:10 AM

is it possiable to add a button to show what user has groaned at you??
https://vborg.vbsupport.ru/external/2006/04/9.jpg

Code:

<!-- Start Post Groan Hack -->
<br />
$vbphrase[post_groan_groans]: <strong>$post[post_groan_user_amount]</strong>
<br />
<if condition="$post[post_groan_times_on] == 1">
$vbphrase[post_groan_time_post]
<else />
<if condition="$userinfo[post_groan_posts_on] == 1">
<phrase 1="$userinfo[post_groan_times]">$vbphrase[post_groan_times_post]</phrase>
<else />
<phrase 1="$userinfo[post_groan_times]" 2="$userinfo[post_groan_posts]">$vbphrase[post_groan_times_posts]</phrase>
</if>
</if>
</td></tr>
<tr><td>
<a href="search.php?$session[sessionurl]do=findgroan&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[post_groan_search_user]</phrase></a>
<!-- End Post Groan Hack -->

ive tried this above code but cant seem to get it to work


All times are GMT. The time now is 03:12 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.01606 seconds
  • Memory Usage 1,829KB
  • 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
  • (1)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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