View Full Version : Can plugins or products create phrases?
nickh
04-30-2009, 07:35 PM
Is it possible for a plugin or product to create a phrase? If it is, could you point me to some docs or code?
Thanks,
Nick
BlueNinjaGo
04-30-2009, 07:54 PM
Well, I'm pretty sure the answer is "yes."
Create a phrase, and assign it to whatever product you wish. And when you export the product, it should add the phrase information in the XML file. When you import the XML file, it should create the phrase for you.
nickh
04-30-2009, 08:22 PM
You're right! That was much easier than I thought!
Thanks, mate.
Dismounted
05-01-2009, 05:37 AM
If you haven't already, enable debug mode. You will see many other options (e.g. creating option groups).
nickh
05-01-2009, 12:36 PM
If you haven't already, enable debug mode. You will see many other options (e.g. creating option groups).
Yeah, I keep debug mode enabled while I'm developing my plugins.
I don't really understand what you're referring to when you say "many other options (...)". Would you mind explaining in a bit more detail?
Dismounted
05-02-2009, 12:48 AM
Go into vBulletin Options. You'll see "Create Settings Group". Go into the Style Manager. You'll see the Master Style.
Etcetera
nickh
05-04-2009, 12:25 PM
Hey Dismounted. In vBulletin Options > vBulletin Options, I don't see anything titled "Create Settings Group".
Also, I'm not sure what you're suggesting I do in Styles & Templates > Style Manager.
Thanks,
Nick
Dismounted
05-05-2009, 05:50 AM
Are you sure you have Debug Mode enabled? How are you doing it?
I'm just illustrating what debug mode reveals - you can do whatever you want.
nickh
05-05-2009, 12:34 PM
Are you sure you have Debug Mode enabled? How are you doing it?
I have this specified in includes/config.php :
$config['Misc']['debug'] = true;
I'm just illustrating what debug mode reveals - you can do whatever you want.
Either way, I've figured it out. After you create a phrase and associate it with a product, the phrase is part of the product when the product is exported.
Cheers,
Nick
BlueNinjaGo
05-05-2009, 12:54 PM
Basically, what Dismounted was saying, is if you want to export template edits with the product, you have to add it to the master style. The only way to see/edit the master style is with debug mode ON. So it's just one more advantage you have with the debug mode ON.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.