![]() |
Quote:
Thanks :) |
Look in the forumdisplay.php page to see some hook locations and pick one that is evaled before those templates are evaled. I run my test site in debug mode which puts a list of all hook locations available on the page at the bottom. That helps a lot when trying to figure out which hook location to use.
|
I'm just not haveing any luck with this at all. :|
I know the template to edit i just do not know what hook to choose nor how to add the hook into that template where I want it displayed. I am sure if I had the experience you had it would be more simple... but I don't. Isn't there an easier an easier way of doing this? maybe doing it something like seen here... http://www.vbulletin.com/forum/showthread.php?t=113870 but obiousely displaying total threads and posts instead of a sponsor link. Quote:
I see that this is the PHP code I need to add.. (That displays total threads and posts) PHP Code:
And this is the template I need to edit... (forumhome_forumbit_level1_nopost) HTML Code:
<if condition="!$show['collapsable_forums']"> From my understanding.... all I need to do now is create the plugin... 1. I DO NOT KNOW what hook to choose when creating the plugin, "Do you know?" 2. After the plugin is created what code snippet to I add into forumhome_forumbit_level1_nopost template to make the plugin work? Quote:
|
Actually, that is not the php code you need to add. I simply copied the code from index.php that shows how to get the posts and threads from the forumcache. You will need to modify that to get just the posts and threads from specific forum ids. As for plugin location, you can try forumhome_start. Like I said, look at the index page and find one that is eval before the template gets evaled.
Sorry I can't be more specific than that but I really don't know any specifics myself. |
Thanks :)
One question though... After I create the plugin what line of plugin call code do I add to that template? Thanks |
In the plugin, you will do some code and then assign the results to a variable, like $totalposts and $totalthreads. Then you would use those variables in the template.
|
All times are GMT. The time now is 12:38 AM. |
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:
|