vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - [AJAX] Post Thank You Hack (https://vborg.vbsupport.ru/showthread.php?t=231666)

mokonzi 02-26-2010 07:12 AM

Abe, is there a way of reducing the height that thanks box displays underneath the post, as it is considerably larger than the 3.8 version?

Thanks for a great product, and the great support at getting it up and running for vB4.

reimic 02-26-2010 07:19 AM

Quote:

Originally Posted by archet1337 (Post 1991357)
When I click the Thanks button I get this message:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

Any advice on what to do?

Same error here!

archet1337 02-26-2010 08:03 PM

Quote:

Originally Posted by archet1337 (Post 1991357)
When I click the Thanks button I get this message:

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in [path]/post_thanks.php on line 57

Any advice on what to do?

This is really putting me off. I've tried everything I can think of and still no go..

Must be someone that knows how to fix this?

Any help is much appreciated :)

archet1337 02-26-2010 11:49 PM

Doh, I'm such an arse..:erm:

No wonder I get the error message, I'm trying to thank a guest poster and obviously I can't thank someone that doesn't exist..

djbaxter 02-26-2010 11:54 PM

Quote:

Originally Posted by archet1337 (Post 1992434)
Doh, I'm such an arse..:erm:

No wonder I get the error message, I'm trying to thank a guest poster and obviously I can't thank someone that doesn't exist..

Actually, with the right drugs you can... but nobody else would be able to see it. :)

archet1337 02-27-2010 12:03 AM

Quote:

Originally Posted by djbaxter (Post 1992437)
Actually, with the right drugs you can... but nobody else would be able to see it. :)

It would be pretty neat to be able to hide the Thanks button on guest posts. Any idea on how to do that?

djbaxter 02-27-2010 12:29 AM

It should just be a matter of a vb conditional (you can learn about that at vbulletin.com). I don't allow Guest posts but if you used something like this

PHP Code:

<vb:if condition="!in_array($bbuserinfo[usergroupid],array(2,5,6,7))">

{
code to display Thanks button}

</
vb:if> 

it should work.

Play with it...

archet1337 02-27-2010 12:47 AM

I've been playing around with it for a while now, and it removed the button from the guest posts, but unfortunately it removes it from the registered ones as well. I've checked the usergroup id's and they match yours.

djbaxter 02-27-2010 01:06 AM

Sorry. Try this instead:

Code:

<vb:if condition="in_array($bbuserinfo[usergroupid],array(2,5,6,7))">

{code to display Thanks button}

</vb:if>

The "!" in the first code block in my previous post says "if NOT in array" which is the opposite of what you want (I think - it's Fried-day after a long week and I am truly fried).

archet1337 02-27-2010 01:10 AM

Thanks a lot. Seems to be working fine :)


All times are GMT. The time now is 12:54 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.03509 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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