vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can plugins or products create phrases? (https://vborg.vbsupport.ru/showthread.php?t=212567)

nickh 04-30-2009 07:35 PM

Can plugins or products create phrases?
 
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

Quote:

Originally Posted by Dismounted (Post 1802335)
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

Quote:

Originally Posted by Dismounted (Post 1804834)
Are you sure you have Debug Mode enabled? How are you doing it?

I have this specified in includes/config.php :
PHP Code:

$config['Misc']['debug'] = true

Quote:

Originally Posted by Dismounted (Post 1804834)
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.


All times are GMT. The time now is 02:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01012 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete