The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hey i have made a plugin with some templates in it and i wonder how i can get thoose template into a group that i name and not be a single template.
|
#2
|
|||
|
|||
![]()
AdminCP > Plugins & Products > Add New Plugin
Hook Location: template_groups PHP Code: PHP Code:
tempprefix_somepageone tempprefix_somepagetwo tempprefix_somepagethree and they will all appear under the template group "Some Template Group". Or you can see the 2nd half of this article, I think its essentially the same as what I have posted above. Manage Templates |
#3
|
|||
|
|||
![]()
i don?t really understand i can?t get it to work.
if i wan?t this templates: vBNews vBNews_addnews vBNews_newsbits vBNews_singlenews vBNews_printnews vBNews_editnews vBNews_commentbits vBNews_commentbox in a template group named vBNews how do i fix that? i tried this: $only['vBNews'] = 'vBNews'; $only['vBNews_commentbits'] = 'vBNews'; $only['vBNews_commentbox'] = 'vBNews'; $only['vBNews_editnews'] = 'vBNews'; $only['vBNews_newsbits'] = 'vBNews'; $only['vBNews_printnews'] = 'vBNews'; $only['vBNews_singlenews'] = 'vBNews'; with the title "vBNews Template Group" and active in product vbnews |
#4
|
|||
|
|||
![]()
You only need
PHP Code:
|
#5
|
|||
|
|||
![]()
a ok thanks. gonna try it.
--------------- Added [DATE]1203929237[/DATE] at [TIME]1203929237[/TIME] --------------- it still doesn?t work. |
#6
|
|||
|
|||
![]()
No, no, no. tempprefix is the template prefix and the string is the template name (i.e. the work for it.
PHP Code:
|
#7
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|