![]() |
$totalposts
I am hoping someone can help me out, i have searched around and could not find an answer.
I am using the $totalposts variable in my theme to display the current total posts for the forum which works just fine when viewing the forum index. However, when i go in and view a thread it shows how many posts there are in that thread and not the entire forum. I want it to show the total posts of the entire forum on every page, what can i do? :confused: Thanks in advance! :) |
I have a theme with stats in the header on one of my forums, total posts being one of them.
Create a plugin, hook being global_start, name it whatever you want. Code: PHP Code:
|
1 Attachment(s)
While that option will work there's no need to use a query (and add to the server load) to get this stat.
The following attached will do just fine (or use the code below and create a plugin for global_start). Code:
require_once(DIR . '/includes/functions_forumlist.php'); |
All times are GMT. The time now is 07:27 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:
|