![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Template Groups
i see that create Template groups has now changed in VB5 but when trying to create the group in the product .xml file i am confused
this is an example of the admin template group within vbulletin-styles.xml <templategroup name="Admin"> but i wish to use the same method within a product.xml the problem is where to place it ? below is part of the xml where it shows <templates></templates> <dependencies> </dependencies> <codes> </codes> <templates> </templates> <stylevardfns> i have tried many ways of try this <templates> <templategroup name="test"> <template name="test_1" templatetype="template" date="1345854416" username="simonhind" version="5.0.0 Beta 10"><![CDATA[testing content ]]></template> </templates> but it throws error when i import if anyone can help on a simple example it would be great
__________________
http://www.multihunters.co.uk - all your coding needs No members have liked this post.
|
|
#2
|
||||
|
||||
|
Did you try the old vb4 plugin code?
__________________
http://twitter.com/scanu_account No members have liked this post.
|
|
#3
|
||||
|
||||
|
Not possible currently.
There are not hooks/plugins in vB5. You are confusing a style xml with a product xml.
__________________
No members have liked this post.
|
|
#4
|
||||
|
||||
|
The proper way to add a template to a product XML file is to put the forum in debug mode.
Go to Style Manager in the Admin CP, choose the master style, and from the drop down box choose "Add New Template" On the next page give the template a name, choose your product from the drop down product list, and enter the code for your template. Save. Finally go to the Product Manager in Admin CP and "Export" the product- it will contain all your settings, templates, phrases, and anything else you can associate with the product from the Admin CP.
__________________
-Joe Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods" You can PM me if you want but be warned I do not read them often. No members have liked this post.
|
|
#5
|
||||
|
||||
|
Bop5, he is asking how to make a template group not a template, am i wrong?
__________________
http://twitter.com/scanu_account No members have liked this post.
|
|
#6
|
||||
|
||||
|
Originally Posted by Scanu
that is correct, woudl like to add a template group within the product
i have looked at vbulletin styles.xml which holds this <templategroup name="Admin"> but the issue is where in the product xml should it be placed the example from that is this
__________________
http://www.multihunters.co.uk - all your coding needs No members have liked this post.
|
||||
|
#7
|
||||
|
||||
|
You can not add a new template group in vBulletin 5.
That tag (templategroup) is used for styles which are different from products.
__________________
No members have liked this post.
|
|
#8
|
||||
|
||||
|
Originally Posted by Scanu
sorry.
![]()
__________________
-Joe Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods" You can PM me if you want but be warned I do not read them often. No members have liked this post.
|
|
#9
|
||||
|
||||
|
There is a way to add template group, but it require edit a file..
For doing that with extensions we should wait till: 1. vB5 devs take your suggestion and add the templategroup to the xml 2. Api extensions fixed to work in the admincp
__________________
Refael Iliaguyev. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Thread Tools | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 12:22.




