Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Sep 2012, 10:26
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
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
Reply With Quote
  #2  
Old 20 Sep 2012, 16:48
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Location: Italy
Real name: Andrea Scanu
Did you try the old vb4 plugin code?
Reply With Quote
  #3  
Old 20 Sep 2012, 17:30
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
Not possible currently.
There are not hooks/plugins in vB5.

You are confusing a style xml with a product xml.
__________________
Adrian Sacchi - Forums Mods
vBulletin Alpha/Beta Tester
vBulletin Bug Scrubber
Reply With Quote
  #4  
Old 20 Sep 2012, 23:03
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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.
Reply With Quote
  #5  
Old 21 Sep 2012, 12:04
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Location: Italy
Real name: Andrea Scanu
Bop5, he is asking how to make a template group not a template, am i wrong?
Reply With Quote
  #6  
Old 21 Sep 2012, 19:01
TheSupportForum TheSupportForum is offline
 
Join Date: Jan 2007
Originally Posted by Scanu View Post
Bop5, he is asking how to make a template group not a template, am i wrong?
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
http://www.multihunters.co.uk - all your coding needs
Reply With Quote
  #7  
Old 21 Sep 2012, 19:05
ForumsMods's Avatar
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Real name: Adrian Sacchi
You can not add a new template group in vBulletin 5.
That tag (templategroup) is used for styles which are different from products.
__________________
Adrian Sacchi - Forums Mods
vBulletin Alpha/Beta Tester
vBulletin Bug Scrubber
Reply With Quote
  #8  
Old 21 Sep 2012, 20:10
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by Scanu View Post
Bop5, he is asking how to make a template group not a template, am i wrong?
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.
Reply With Quote
  #9  
Old 24 Sep 2012, 09:28
RellecT's Avatar
RellecT RellecT is offline
 
Join Date: May 2008
Real name: Refael Iliaguyev
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.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 12:22.

Layout Options | Width: Wide Color: