The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Either use $vbulletin->db instead of $db, or add "global $db;" as the first line.
|
#3
|
|||
|
|||
That worked. Thanks
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|