Quote:
Originally Posted by MarkFL
Suppose you have the threadid stored in the variable $threadid...then you can get an array containing information on the specified thread, using something like:
PHP Code:
$threadinfo = fetch_threadinfo($threadid);
And then to get the number of replies for that thread, you could use:
PHP Code:
$replies = $threadinfo['replycount'];
|
No, I think this will not show number of replies on my page because it is not a thread.
I am needing a query to show number of replies from 10 threads (for 10 hosting companies that I am listing on my page)
for example:
$id4895 = count_replies(4895);
$id7894 = count_replies(7894);
$id674 = count_replies(674);
$id4563 = count_replies(4563);
...
count_replies function will is a function that contained queries depends on thread id.
and on test.php I will assign these
$templater->register('id4895 ', $id4895 );
$templater->register('id7894 ', $id7894 );
$templater->register('id674 ', $id674);
....
After that I can show
{vb:raw id4895}
{vb:raw id4895}
{vb:raw id674}
on my template and they will show number of replies for each thread id.
The problem that I am caring is queries to get number of replies on each thread can make my forum or that page loads slowly or not.
Thanks