i've got a plugin with a query which is gettin the threads in different forums for each user.
My problem is, i save the query result in a variable and want to print it in the postbit, but the variable seems to be empty in postbit. As hook i'm using
"showthread_postbit_create"
query code:
PHP Code:
$tresult = $vbulletin->db->query_first("SELECT COUNT(*) AS anzahl FROM ". TABLE_PREFIX ."thread WHERE forumid IN (1,4,8) AND postuserid=".$post['userid']."");
in postbit i'm using:
PHP Code:
$result[anzahl]
but, nothing happens...
the qery seems to be ok, i tested it.
so, whats the problem?
P.S. my english isnt perfect, hope u understand me