vb.org Archive

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

Abe1 05-21-2007 01:07 PM

Quote:

Originally Posted by madbrit (Post 1251837)
Seemed to install OK... can change settings in AdminCP.

I get the following error message when I try and click on ANY Post/Thread to see if I can "groan"


Fatal error: Call to undefined function: can_thank_this_post() in /home/wclangam/public_html/Forums/includes/class_postbit.php(296) : eval()'d code on line 158


Any ideas?

I have it turned off at the moment... and all is well again


Brit

Disable the option integrate with Post Thanks Hack.

josiespencer 05-21-2007 02:59 PM

Quote:

Originally Posted by Abe1 (Post 1252040)
Disable the option integrate with Post Thanks Hack.

I did this as stated previously, and it did not resolve the issue. So there is no point in asking madbrit to do the same.

madbrit 05-21-2007 03:10 PM

I did check the AdminCp option...just to make sure. It is turned off - same as Josie.

I would look at line 296 myself... but counting lines isnt always exact with my Cpanel tools my server guys give me.

Any further thoughts would be greatly appreciated

Cheers

Brit

josiespencer 05-21-2007 03:34 PM

Evrsoft counts them for me but you can never be sure it that line count includes comments, unexpanded includes, etc. But if it helps, line 296 is the line after the "//execute hook" line:

PHP Code:

// finish prepping the post
$this->prep_post_end();

// execute hook
($hook =& vBulletinHook::fetch_hook('postbit_display_complete')) ? eval($hook) : false;

// evaluate template
$postid =& $post['postid'];
eval(
'$postbit = "' fetch_template($this->templatename) . '";');

eval(
'$retval = "' fetch_template('postbit_wrapper') . '";');

return 
$retval


madbrit 05-21-2007 03:36 PM

I Guess I could try and just install the Thank you hack... but for a few reasons wasnt so interested in this feature

Hope to solve it without installing the thank you

Brit

josiespencer 05-21-2007 03:41 PM

I'm not interested in adding the Thank You hack either, and hope that won't become a pre-requisite.

ymy 05-21-2007 04:15 PM

Thanks for Update


YmY

.

suraev 05-21-2007 05:18 PM

Abe1, very nice Mod.

I think it can replace the reputation button, since most reputation comments are useless and there is no a real need to keep them.

Could you please add the setting, so that reputation points that a user receives being thanked/groaned will be determined by reputation power of thanker/groaner? Now it is determining by fixed constant in admin control panel, but it will be nice if it will act just like the original reputation button works ("thanks" add an amount equal to reputation power of thanker, "groan" subtracts amount equal to 1/2 of reputation power of groaner).

Thus we can get rid of reputation button and stay with "thanks/groan".

RTFA 05-21-2007 09:02 PM

Getting this error:

Fatal error: Call to undefined function: can_thank_this_post() in /hsphere/local/home/toddro19/bamauniverse.com/forums/includes/class_postbit.php(296) : eval()'d code on line 166

Dont have TY hack installed

josiespencer 05-21-2007 10:18 PM

Well, at least it seems to be consistent.

Abe1 05-21-2007 10:19 PM

I'll look into it.

Abe1 05-21-2007 10:34 PM

Version 3.2 (05/21/07):
  • Fixed a template caching bug.
  • Fixed an error that would come up if you did not have Post Thanks installed. Even if you do, there was a big bug in checking if a user gave a groan or not.
  • No file edits. Just upload the product XML.

Mattikana 06-09-2007 06:14 PM

Bug in the post_groan_member_info template:
Code:

$vbphrase[post_thanks_time_post]
It should be:
Code:

$vbphrase[post_groan_time_post]

Abe1 06-11-2007 12:23 PM

Thanks. Fixed for next version.

steve71 06-15-2007 07:17 PM

I keep getting doubles on each posts (accumilative) -every post gets one more groan line, and one more groan button

I just upgraded to 3.67

http://i149.photobucket.com/albums/s...gs71/groan.gif

This also happens with the "thank you" hack



UPDATE:

3.67 need this plugin fix
http://www.vbulletin.com/forum/proje...69#attachments

murrtex 06-17-2007 02:58 PM

<a href="http://www.yoursitename.com/forum/search.php?do=find_all_groan" target="_blank">http://www.yoursitename.com/forum/se...find_all_groan</a>

dosnt work on latest Post Groan Hack.

what will be the code now for to find all groans?

NolF 06-17-2007 11:24 PM

change search.php to post_groan.php

murrtex 06-22-2007 05:13 PM

post_groan.php?do=findallgroans is working ;)

under_takers 06-27-2007 05:41 PM

Hello Abbi, Nice post you added man.
but seem it's giving me error.
check out this error


Thanks: 1
Thanked 0 Times in 0 Posts Rep Power: 0
sh3tan is on a distinguished road
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts

Well, whatever user post a reply , it add more words with post, what's solution for that ?

Abe1 06-29-2007 03:44 PM

Quote:

Originally Posted by under_takers (Post 1277847)
Hello Abbi, Nice post you added man.
but seem it's giving me error.
check out this error



Thanks: 1
Thanked 0 Times in 0 Posts Rep Power: 0
sh3tan is on a distinguished road
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts

Well, whatever user post a reply , it add more words with post, what's solution for that ?

Go to my post thanks hack and download the fix file for this error.

Saviour 06-30-2007 06:27 PM

Thanks hack was great...

Groan hack...evens things out a bit.

Installed.

AuroraStorm 07-21-2007 11:19 AM

Dude, I have a question for you - just for kicks and giggles...

My posters love the groans/thank yous but they were wondering about a Post B***H Slap. Is that something feasible?

I told them I'd ask... :D

Abe1 07-22-2007 01:43 AM

Quote:

Originally Posted by AuroraStorm (Post 1297312)
Dude, I have a question for you - just for kicks and giggles...

My posters love the groans/thank yous but they were wondering about a Post B***H Slap. Is that something feasible?

I told them I'd ask... :D

You can convert one of them if you edit the images and the phrases.

Abe1 07-30-2007 04:20 AM

Version 3.3 (07/30/07):
  • Moved post thanks stats in postbit from hook postbit_userinfo_right to hook postbit_userinfo_right_after_posts. (for vb 3.6.8 and <3.6.6)
  • Released for all versions of vb 3.6.x

murrtex 07-30-2007 01:46 PM

forum/post_groan.php?do=findgroans&u=26660 doesnt work on user profile page.
what will be there?

Abe1 07-30-2007 02:27 PM

Quote:

Originally Posted by murrtex (Post 1305333)
forum/post_groan.php?do=findgroans&u=26660 doesnt work on user profile page.
what will be there?

Did you upload all files?

redlabour 08-03-2007 05:39 AM

How can i change that Groan Button is shown after Thanksbutton? After Updating to 3.6.8 both are changed and some Members are allways clicking the wrong Button. ;)

Abe1 08-03-2007 12:41 PM

Quote:

Originally Posted by redlabour (Post 1308748)
How can i change that Groan Button is shown after Thanksbutton? After Updating to 3.6.8 both are changed and some Members are allways clicking the wrong Button. ;)

You have to change the plug-in execution order.

redlabour 08-03-2007 05:44 PM

Which Plugin excactly ?

Abe1 08-05-2007 01:12 AM

Quote:

Originally Posted by redlabour (Post 1309112)
Which Plugin excactly ?

I think postbit_process

Luky 08-31-2007 12:37 PM

Whats the phrase i enter to say the amount of times this user has been groaned at, i want to enter it in the postbit, i tried several phrases but cannot figure it out. Its not as simple as thank you hack.

Luky 08-31-2007 12:43 PM

I think it is $post[post_groan_times]

Doc Ellis 09-24-2007 04:22 PM

Another "thank you" for Thanks and Groan both. Very easy to install and use!

Doc

jswiss 10-06-2007 12:59 PM

hi there,

i think this is a great hack, (fun and stuff)

i've installed both thanks and groan, but the info on the right hand side is replicated twice... any pointers how how to get rid of:
Thanks: #
Groans: #

see attachment

many thanks

Roxie 11-11-2007 05:29 AM

Clicking the button refreshes the page but isn't adding the groan. The button is linking to http://www.site.com/showthread.php?d...roan_add...etc....

Should it be linking to http://www.site.com/post_groan.php?d...roan_add...etc....

Abe1 11-11-2007 11:56 PM

Quote:

Originally Posted by Roxie (Post 1380163)
Clicking the button refreshes the page but isn't adding the groan. The button is linking to http://www.site.com/showthread.php?d...roan_add...etc....

Should it be linking to http://www.site.com/post_groan.php?d...roan_add...etc....

Make sure your templates are up to date.

COBRAws 11-12-2007 12:06 AM

I just thought about something that could be added to this hack (I dont actually use it in my forums, but I was browsing this thread and had this idea). If a post has X amount of groans, it could be automatically deleted or the main postbit thing be converted into a message saying "This post has been rated by the community as a bad post, if you still want to read it please click here" or something like that.

The admincp could have a few options so it can be selected how many groans would be needed to make the post disappear, which usergroups to be bypassed by this function and so on.

I've never seen this turn-arround for vbulletin and it would be handy. If it's already made, im sorry.

Keep up the good work Abe, I have installed most of your hacks-mods :) A quality coder indeed.

Abe1 11-12-2007 12:07 AM

Quote:

Originally Posted by COBRAws (Post 1380697)
I just thought about something that could be added to this hack (I dont actually use it in my forums, but I was browsing this thread and had this idea). If a post has X amount of groans, it could be automatically deleted or the main postbit thing be converted into a message saying "This post has been rated by the community as a bad post, if you still want to read it please click here" or something like that.

The admincp could have a few options so it can be selected how many groans would be needed to make the post disappear, which usergroups to be bypassed by this function and so on.

I've never seen this turn-arround for vbulletin and it would be handy. If it's already made, im sorry.

Keep up the good work Abe, I have installed most of your hacks-mods :) A quality coder indeed.

Not sure if I will make it but someone else can release an add on if they want.

Roxie 11-12-2007 12:13 AM

I reverted templates and it works great now.

Flow Fusion 01-01-2008 11:35 AM

When a usergroup is immune from getting a groan, and they groan someone else I get this error

Quote:

Warning: Invalid argument supplied for foreach() in /includes/functions_post_groan.php on line 183


All times are GMT. The time now is 01:04 AM.

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.01378 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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