![]() |
Need to add "Thread count" to postbit_legacy
In postbit_legacy as it shows "Posts:" i also want it to show "Threads"
I notied in postbit_legacy where it displays posts it is written $post[posts] So how do i display threads instead of posts ? Is there some variable which holds the no. of threads ? or how do i query it from the database ? I couldnt even find the table which holds the thread count of the user. Help plz. |
You'll need to use a SQL query to count the threads in the thread table.
[sql]SELECT COUNT(*) FROM `" . TABLE_PREFIX . "thread` WHERE `userid` = " . $userid . "[/sql] |
Thanks mate, so now.. where do i run the query ?
because $userid is recognized only in vb pages, so where should this code be pasted ? should i create a new plugin ? what should be hook location ? Also, ive created a custom page where i want to display results of this query : Quote:
|
All times are GMT. The time now is 09:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|