The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I add a template group for a product?
It's been a while since I've done this and I've forgotten how. The only info i could find on this site about it is back from 2004 and out of date.
|
#2
|
||||
|
||||
Hook template_groups:
PHP Code:
|
#3
|
|||
|
|||
I've tried this in 3.7, the plugin is active (cut and pasted your code).... but nothing shows up. Does this work in 3.7?
Scuzzy |
#4
|
||||
|
||||
I just used it no problems
|
#5
|
||||
|
||||
Exactly what did you put in your plugin, Scuzzy?
|
#6
|
|||
|
|||
What am I doing wrong?
--------------- Added [DATE]1207278315[/DATE] at [TIME]1207278315[/TIME] --------------- I've also tried... $only['scuztools'] = 'ScuzTools Templates'; ...as "scuztools" is the name of my product, but no luck there either... Scuzzy |
#7
|
||||
|
||||
do you have any scuztools_templates
|
#8
|
||||
|
||||
You need to actually create the templates with the prefix for the group to show up.
|
#9
|
|||
|
|||
Templates will also need the appropriate prefix. E.g.:
mytemplates_sometemplate mytemplates_someothertemplate mytemplates_bla Or scuztools_sometemplatename scuztools_atemplate e.t.c. |
#10
|
|||
|
|||
Thanks, that worked. That's what I get for checking things every step of the way.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|