The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to write plugins replace temp
How to create a new template instead of VBB templates are used.
For example, I've created a custom template to replace the template forumhome_forumbit_level2_post, and I need a plugins to do this automatically. Thank |
#2
|
|||
|
|||
I don't know if you'd want a product to replace that template, because some people might have custom styles (and there's also the issue of multiple styles and mobile styles). I'm not sure of the right way to handle that. But one thing you could do is name your new template something else, then arrange for your template to be used. The code that uses that template is in functions_forumlist and looks like this:
PHP Code:
I guess this still causes issues if someone has a custom style, so I'm not sure if this is really any better. |
#3
|
|||
|
|||
i have add plugin
PHP Code:
hook work good but show dup temp |
#4
|
|||
|
|||
Well, what I was thinking was that your plugin would not render a template but would change $tempext so that the template name was changed. Like maybe:
PHP Code:
|
#5
|
||||
|
||||
Why wouldn't you just update the contents of that template with your own template code..
|
#6
|
|||
|
|||
Dup temp ?
I want if (in_array ($ forum ['forumid'], '5,6,7,8')) forumids 5,6,7,8 then show it to the temp custom, while others still show forumid default temp vbb |
#7
|
|||
|
|||
What plugin code are you using now?
|
#8
|
|||
|
|||
PHP Code:
|
#9
|
|||
|
|||
Try using only this code:
PHP Code:
|
Благодарность от: | ||
Easy5s.net |
#10
|
|||
|
|||
And this plugin, i add
PHP Code:
but it remove all |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|