vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Show Thread Enhancements - [AJAX] Post Groan Hack (https://vborg.vbsupport.ru/showthread.php?t=193489)

Abe1 10-12-2008 10:00 PM

[AJAX] Post Groan Hack
 
1 Attachment(s)
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

Loller 10-13-2008 03:51 AM

Thanks a lot!!!
Upgraded :)

popular 10-13-2008 05:07 AM

Holy Crap! Awesome! Ty

taheri6 10-13-2008 06:07 AM

is there a post thanks for 3.7?

Magnumutz 10-13-2008 06:49 AM

Instead of "Groan"... why not rename it to "complain" or "yell"... or something to describe this more properly?

FreshFroot 10-13-2008 06:53 AM

Quote:

Originally Posted by Magnumutz (Post 1643892)
Instead of "Groan"... why not rename it to "complain" or "yell"... or something to describe this more properly?

Agreed.

However, the hack itself is great! :)

soqzippo 10-13-2008 08:50 AM

works flawlessly with the thank you mod. Love it, thanks

popular 10-13-2008 09:11 AM

is there a way to make groans only show up on postbit when a person receives one?

Abe1 10-13-2008 11:23 AM

Quote:

Originally Posted by taheri6 (Post 1643875)
is there a post thanks for 3.7?

Yes. Check my profile.

Abe1 10-13-2008 11:24 AM

Quote:

Originally Posted by popular (Post 1643958)
is there a way to make groans only show up on postbit when a person receives one?

What do you mean? The box? The stats?

SEOvB 10-13-2008 02:03 PM

Wonderful thanks for this!

g0dfather1984 10-13-2008 03:35 PM

Thank you!

n95gps 10-13-2008 04:15 PM

i dont know why do you have this hack or what is the point of it

i mean if they are going to say no thank you to a post

doesnt this mean this thread should be removed or deleted

can anyone tell me where is it used mostely

tqvn2004 10-13-2008 05:05 PM

Quote:

Originally Posted by n95gps (Post 1644217)
i dont know why do you have this hack or what is the point of it

i mean if they are going to say no thank you to a post

doesnt this mean this thread should be removed or deleted



can anyone tell me where is it used mostely

This hack, together with Thank hack, gives users opportunity to "vote" a single post as "good" or "bad" according to their taste. I find it useful for my board, as user received groans will be more careful in his / her next post...

Thank you for great addon. Been waiting for this version too long :D Plz consider integrate thank and groan in one packet, though :D

redlabour 10-13-2008 06:07 PM

Great! Absolutely awesome.

But why is the Groan Button appearing before the Thanks Button? How to switch this Order?

Solved - changed the Order of processing the PlugIns.

Cocko 10-13-2008 08:25 PM

Installed. Thanx Abe1.

EvilJohn 10-13-2008 08:48 PM

I am using the vBulletin 3.6 groan hack on vBulletin 3.8 forums. Would I see any benefit in updating? If its not broken why fix it.

Fynnon 10-13-2008 08:53 PM

Usefull mod but can the groan be changed to something better understood like "bad post" or smth ?
i mean i know english but groan just don`t get this word...i don`t understand it and i have an international forum so many members will find out asking themselves : What is "groam" meaning ?

Thank You!

hitmann 10-14-2008 12:00 AM

Is it possible to have another image to display after someone clicks the Groan button?

sarum 10-14-2008 04:42 AM

exactly what i was hoping for
great mod thanks Abe1

clicks install
clicks MOTM
clicks excellent rating

popular 10-14-2008 09:52 AM

Quote:

Originally Posted by Abe1 (Post 1644005)
Yes. Check my profile.

yes the box or stats under the avatar , i figure most users won't be groaned so the stats under their name could be a little distracting.

digicom 10-14-2008 11:38 AM

Aprrciated Installed :up:

bigtime 10-15-2008 03:14 PM

Hi,

Thanks for the hack.

I don't have the thank you hack installed but yet I continue to get these errors:

PHP Code:

Invalid SQL:

            
SELECT post_groan.postid AS postid
            FROM post_groan 
AS post_groan
            LEFT JOIN post 
AS post USING (postid)
            
INNER JOIN thread AS thread ON(thread.threadid post.threadid)
            
WHERE post_thanks.userid 18555
                
AND thread.forumid IN(72,18,1,87,2,3,4,5,6,88,89,30,32,78,31,73,74,77,20,8,10,19,7,75,21,9,22,33,85,11,13,36,25,29,42,46,45,47,82,79,80,15,17,81,61,62,63,64,65,66,56,57,58,59,60,48,49,50,51,52,53,54,55,67,68,69,70,71,34,37,38,39,40)
            
ORDER BY post.dateline DESC
            LIMIT 1000
;

MySQL Error   Unknown column 'post_thanks.userid' in 'where clause'
Error Number  1054 

I have the following set to No: Integrate this hack with Post Thanks Hack?

Thanks,

Tim

bigtime 10-15-2008 05:59 PM

I opened post_groan.php and found the following on line 377:

PHP Code:

            WHERE post_thanks.userid $user[userid

I changed it to:

PHP Code:

            WHERE post_groan.userid $user[userid

That should stop the errors. Any drawbacks to doing that?

Thanks,

Tim

BANDiT600 10-15-2008 09:19 PM

1 Attachment(s)
User Profile. Has missed one phrase or...??? Any suggestion???

BANDiT600 10-15-2008 09:29 PM

Quote:

Originally Posted by redlabour (Post 1644313)
Solved - changed the Order of processing the PlugIns.

What you did???

Abe1 10-16-2008 12:38 AM

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

BANDiT600 10-16-2008 12:45 AM

Thank you very much!

redlabour 10-19-2008 05:52 PM

1 Attachment(s)
Bug:

Watch the Screenshot (GREEN) - how to fix this to get this in a normal order?

Or please add a own Category in Quicklinks for Thanks and Groan.

And the Links do not work on vBadvanced installed in / and not in /forum/ because they are still not using the complete Path.

Suggestion:

Please add a Option to deactivate the Quicklink in AdminCP.

Abe1 10-20-2008 03:31 AM

Quote:

Originally Posted by redlabour (Post 1648411)
Bug:

Watch the Screenshot (GREEN) - how to fix this to get this in a normal order?

Or please add a own Category in Quicklinks for Thanks and Groan.

And the Links do not work on vBadvanced installed in / and not in /forum/ because they are still not using the complete Path.

Suggestion:

Please add a Option to deactivate the Quicklink in AdminCP.

Sorry, i dont understand that language.

redlabour 10-20-2008 04:28 AM

Quote:

Originally Posted by Abe1 (Post 1648713)
Sorry, i dont understand that language.

?? That?s why i marked the Groansection in Green. :)

The Problem is that the Quicklinks of the Thanks and Groan Hack are not beneath each other.

One is at the Project-/ and one is at the Blogsection.

And BTW - why did you not merge the both Hacks and give us a Option in AdminCP :

1. Activate Thanks and disable Groan
2. Activate Groan and disable Thanks
3. Activate Thanks & Groan
4. Disable Thanks & Groan

Would make everything easier.

And BTW - it seems to make no Sense to add the Groanbutton before the Thanksbutton. Can you please switch the Executionorder so we don?t have to do it manually after every Update?
Have set Groan now to '6' and Thanks to '5'.

BANDiT600 10-22-2008 09:08 PM

I got this error when I push the link "Find all posts groaned by ..." on profile page in Statistics.
Code:

Database error in vBulletin 3.7.2:

Invalid SQL:

                        SELECT post_groan.postid AS postid
                        FROM post_groan AS post_groan
                        LEFT JOIN post AS post USING (postid)
                        INNER JOIN thread AS thread ON(thread.threadid = post.threadid)
                        WHERE post_thanks.userid = 2055
                                AND thread.forumid IN(1,40,80,2,8,59,78,69,36,44,41,23,74,76,77,71,72,75,6,34,35,7,60,28,54,55,56,61,63,62,64,20,73,19,21,25,26,79,46,17,67,57,58,70,68)
                        ORDER BY post.dateline DESC
                        LIMIT 600;

MySQL Error  : Unknown column 'post_thanks.userid' in 'where clause'
Error Number  : 1054
Request Date  : Thursday, October 23rd 2008 @ 02:03:50 AM
Error Date    : Thursday, October 23rd 2008 @ 02:03:50 AM
Script        : http://site.com/post_groan.php?do=findgroans_user_gave&u=2055
Referrer      : http://site.com/member.php?u=2055
IP Address    : ***.***.***.***
Username      : BANDiT600
Classname    : vB_Database
MySQL Version : 5.0.51-log


AuroraStorm 10-23-2008 10:11 AM

Quote:

Originally Posted by redlabour (Post 1648721)
?? That?s why i marked the Groansection in Green. :)

The Problem is that the Quicklinks of the Thanks and Groan Hack are not beneath each other.

One is at the Project-/ and one is at the Blogsection.

And BTW - why did you not merge the both Hacks and give us a Option in AdminCP :

1. Activate Thanks and disable Groan
2. Activate Groan and disable Thanks
3. Activate Thanks & Groan
4. Disable Thanks & Groan

Would make everything easier.

And BTW - it seems to make no Sense to add the Groan button before the Thanksbutton. Can you please switch the Execution order so we don?t have to do it manually after every Update?
Have set Groan now to '6' and Thanks to '5'.

That's actually a great idea. My problem with this is the Post Thank you issue that I have. Because of the 3.7+, it doesn't show up under my mood nor do they update on the UserCP like it did before the facebook-like UserCp was created. You have to go into the user stats for that and my members like to see that number count under their names. any way of fixing that or has that already been done?

Tulsa 10-23-2008 06:14 PM

Quote:

Originally Posted by BANDiT600 (Post 1650720)
I got this error when I push the link "Find all posts groaned by ..." on profile page in Statistics.
Code:

Database error in vBulletin 3.7.2:

Invalid SQL:

                        SELECT post_groan.postid AS postid
                        FROM post_groan AS post_groan
                        LEFT JOIN post AS post USING (postid)
                        INNER JOIN thread AS thread ON(thread.threadid = post.threadid)
                        WHERE post_thanks.userid = 2055
                                AND thread.forumid IN(1,40,80,2,8,59,78,69,36,44,41,23,74,76,77,71,72,75,6,34,35,7,60,28,54,55,56,61,63,62,64,20,73,19,21,25,26,79,46,17,67,57,58,70,68)
                        ORDER BY post.dateline DESC
                        LIMIT 600;

MySQL Error  : Unknown column 'post_thanks.userid' in 'where clause'
Error Number  : 1054
Request Date  : Thursday, October 23rd 2008 @ 02:03:50 AM
Error Date    : Thursday, October 23rd 2008 @ 02:03:50 AM
Script        : http://site.com/post_groan.php?do=findgroans_user_gave&u=2055
Referrer      : http://site.com/member.php?u=2055
IP Address    : ***.***.***.***
Username      : BANDiT600
Classname    : vB_Database
MySQL Version : 5.0.51-log



i got that too..

Abe1 10-24-2008 01:08 AM

Quote:

Originally Posted by redlabour (Post 1648721)
?? That?s why i marked the Groansection in Green. :)

The Problem is that the Quicklinks of the Thanks and Groan Hack are not beneath each other.

One is at the Project-/ and one is at the Blogsection.

And BTW - why did you not merge the both Hacks and give us a Option in AdminCP :

1. Activate Thanks and disable Groan
2. Activate Groan and disable Thanks
3. Activate Thanks & Groan
4. Disable Thanks & Groan

Would make everything easier.

This would be a big strain for all users who only install the thanks hack (like me). The thanks hack is used like 10 fold compared to the groan hack.
Quote:

Originally Posted by redlabour (Post 1648721)
And BTW - it seems to make no Sense to add the Groanbutton before the Thanksbutton. Can you please switch the Executionorder so we don?t have to do it manually after every Update?
Have set Groan now to '6' and Thanks to '5'.

Next version of post thanks and groan, they will be 2 and 3 respectively.

Abe1 10-24-2008 01:08 AM

Quote:

Originally Posted by BANDiT600 (Post 1650720)
I got this error when I push the link "Find all posts groaned by ..." on profile page in Statistics.
Code:

Database error in vBulletin 3.7.2:

Invalid SQL:

                        SELECT post_groan.postid AS postid
                        FROM post_groan AS post_groan
                        LEFT JOIN post AS post USING (postid)
                        INNER JOIN thread AS thread ON(thread.threadid = post.threadid)
                        WHERE post_thanks.userid = 2055
                                AND thread.forumid IN(1,40,80,2,8,59,78,69,36,44,41,23,74,76,77,71,72,75,6,34,35,7,60,28,54,55,56,61,63,62,64,20,73,19,21,25,26,79,46,17,67,57,58,70,68)
                        ORDER BY post.dateline DESC
                        LIMIT 600;

MySQL Error  : Unknown column 'post_thanks.userid' in 'where clause'
Error Number  : 1054
Request Date  : Thursday, October 23rd 2008 @ 02:03:50 AM
Error Date    : Thursday, October 23rd 2008 @ 02:03:50 AM
Script        : http://site.com/post_groan.php?do=findgroans_user_gave&u=2055
Referrer      : http://site.com/member.php?u=2055
IP Address    : ***.***.***.***
Username      : BANDiT600
Classname    : vB_Database
MySQL Version : 5.0.51-log


Please download the latest zip file and over right post_groan.php in the root dir.

redlabour 10-24-2008 03:01 AM

Quote:

Originally Posted by Abe1 (Post 1651502)
This would be a big strain for all users who only install the thanks hack (like me). The thanks hack is used like 10 fold compared to the groan hack.

I guess the most are not knowing both. And i guess the Admins that have installed Groan are allways installing Thanks. And in anyway - i don?t think it is much more work to install a merged Version and make one click in the AdminCP. ;)

Quote:

Next version of post thanks and groan, they will be 2 and 3 respectively.
And what about the Problem in Quicklinks?

Tulsa 10-24-2008 05:28 PM

Quote:

Originally Posted by Abe1 (Post 1651503)
Please download the latest zip file and over right post_groan.php in the root dir.

That did the trick! Thanks

Abe1 10-24-2008 06:33 PM

Quote:

Originally Posted by redlabour (Post 1651549)
I guess the most are not knowing both. And i guess the Admins that have installed Groan are allways installing Thanks. And in anyway - i don?t think it is much more work to install a merged Version and make one click in the AdminCP. ;)



And what about the Problem in Quicklinks?

For all the plug-ins. So they are always close to each other and post thanks is always before groan.

redlabour 10-24-2008 08:40 PM

1 Attachment(s)
Quote:

Originally Posted by Abe1 (Post 1651953)
For all the plug-ins. So they are always close to each other and post thanks is always before groan.

No they are not - this is the Problem :

THANKS at Projectsection

GROAN at Blogsection

This makes no Sense


All times are GMT. The time now is 04:24 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.01495 seconds
  • Memory Usage 1,866KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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