MyBB Community Forums

Full Version: Show number of threads from FID on memprofile?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to show the total number of threads a user created in a specific forum id. I have PHP in Templates plugin activated so if there's a php code I can run that would generate the total number of threads in a forum id.

Thank you.
You're definitely going to need a query for that. I have not seen a query inside of a template yet. Otherwise you will need a simple plugin i guess.
A simple plugin will be much easier. Have it save the value to a variable and drop it where you want it on the user profile.

Generally I'd say avoid putting queries in your templates. Using a plugin makes it much easier ot move at a later date, and also makes your code less cluttered.