View Full Version : Add templates and phrases for the product?
zanthor
03-15-2010, 03:55 PM
From the vbulletin manual (http://www.vbulletin.com/docs/html/creating_a_product) on how to create a product I can't find any documentation on step 3...
3. Add templates and phrases for the product?
I've created a plugin, I've got that associated with the product, but it depends on 3 templates and one CSS I created to function... I'd like to include those in the product, but cannot figure out how to associate them so they export all together...
Thanks,
TalkVirginia
03-16-2010, 03:58 PM
From the vbulletin manual (http://www.vbulletin.com/docs/html/creating_a_product) on how to create a product I can't find any documentation on step 3...
3. Add templates and phrases for the product?
I've created a plugin, I've got that associated with the product, but it depends on 3 templates and one CSS I created to function... I'd like to include those in the product, but cannot figure out how to associate them so they export all together...
Thanks,
For the CSS I believe you would need to replicate that into a StyleVar. I'm not sure what is involved in creating a new one though.
As for the templates, when creating a new template in the template manager, you would specify what product it belongs to. Then when you export your product, your template(s) will be included in the xml file.
zanthor
03-16-2010, 06:04 PM
For the CSS I believe you would need to replicate that into a StyleVar. I'm not sure what is involved in creating a new one though.
As for the templates, when creating a new template in the template manager, you would specify what product it belongs to. Then when you export your product, your template(s) will be included in the xml file.
Adding a new template I have the following fields associated:
Style
Title
Template
Search in template
Save in template history
commentNothing about which product... am I going about this wrong? (AdminCP->Styles&Templates->Style Manager->Add new template)
TalkVirginia
03-16-2010, 11:33 PM
Yep you're looking in the right place.. See the attachment below for clarification:
zanthor
03-17-2010, 01:24 AM
I've created a product and that option is certainly not there... is there something magical to getting it to show up?
TalkVirginia
03-17-2010, 01:41 AM
Try putting your site in debug mode. Add the following line to the bottom of your forumroot/includes/config.php file.
$config['Misc']['debug'] = 1;
zanthor
03-17-2010, 02:14 AM
Thats it...
Have to add it to the master style as well it appears.
I'll setup my dev environment and .htaccess protect that bastard before doing more work.
Thanks!
Assopoker
12-15-2010, 07:29 PM
Thanks to this I placed my template on master style and now it works.
Also the option for the product appears only when its a master style.
Everything is tricky with vb4 :D
Lynne
12-15-2010, 07:36 PM
Thanks to this I placed my template on master style and now it works.
Also the option for the product appears only when its a master style.
Everything is tricky with vb4 :D
Actually, it's been like this since it was first introduced. :)
Assopoker
12-15-2010, 07:40 PM
How can I display the master style templates without setting it everything to debug?
Lynne
12-15-2010, 07:57 PM
You need to be in debug mode in order to view the MASTER STYLE. You could set it for just your IP:
if ($_SERVER["REMOTE_ADDR"] == "xx.xx.xx.xx") {
// enable debug mode for only my IP address
$config['Misc']['debug'] = true;
}
Assopoker
12-15-2010, 08:04 PM
Nice way, but isnt better to compare current use with "admin" or lookup for the current user group?
im asking too much ?:D
Lynne
12-15-2010, 08:10 PM
You can't do that in the config.php file. That file is read before it ever knows what your userid or any userinformation about you. It's getting the database information to make it's first database call. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.