Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2009, 07:35 PM
nickh's Avatar
nickh nickh is offline
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-30-2009, 07:54 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 04-30-2009, 08:22 PM
nickh's Avatar
nickh nickh is offline
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're right! That was much easier than I thought!

Thanks, mate.
Reply With Quote
  #4  
Old 05-01-2009, 05:37 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you haven't already, enable debug mode. You will see many other options (e.g. creating option groups).
Reply With Quote
  #5  
Old 05-01-2009, 12:36 PM
nickh's Avatar
nickh nickh is offline
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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?
Reply With Quote
  #6  
Old 05-02-2009, 12:48 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go into vBulletin Options. You'll see "Create Settings Group". Go into the Style Manager. You'll see the Master Style.

Etcetera
Reply With Quote
  #7  
Old 05-04-2009, 12:25 PM
nickh's Avatar
nickh nickh is offline
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 05-05-2009, 05:50 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 05-05-2009, 12:34 PM
nickh's Avatar
nickh nickh is offline
 
Join Date: Apr 2009
Location: Toronto, Canada
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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 View Post
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
Reply With Quote
  #10  
Old 05-05-2009, 12:54 PM
BlueNinjaGo's Avatar
BlueNinjaGo BlueNinjaGo is offline
 
Join Date: Mar 2009
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04338 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete