![]() |
Help with query for private message
I am trying to query the db for a value and have it displayed in the user/postbit section of a PM. I was able to do this for the Showthread, but not for PM.
I tried using this hook: Hook Location : postbit_display_start PHP Code:
Fatal error: Call to a member function on a non-object in /hsphere/local/home/vbaexpre/vbaexpress.com/forum/includes/class_postbit.php(251) : eval()'d code on line 14 Is $db not valid? Thanks |
Either use $vbulletin->db instead of $db, or add "global $db;" as the first line.
|
That worked. Thanks :)
|
All times are GMT. The time now is 08:14 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|