vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Phrases (https://vborg.vbsupport.ru/showthread.php?t=98783)

Nutz 10-19-2005 03:52 PM

Phrases
 
I want to make a plugin that alters a phrase, how would I edit a phrase in a plugin?

Thanks,
Mat

peterska2 10-19-2005 04:00 PM

Adding a phrase is

Code:

<phrasetype name="" fieldname="">
<phrase name="">
<![CDATA[  ]]>
  </phrase>

It's probably easier and safer to add your own phrases to be used with your plugin. Otherwise, it could change this in other places.

Nutz 10-19-2005 04:05 PM

Thanks for the quick reply peterska2,

Thats not quite what I mean.
I want to edit a phrase like you edit settings
eg.

Code:

                        <setting varname="msg" displayorder="20">
                                <datatype>text</datatype>
                                <defaultvalue>test</defaultvalue>
                        </setting>

Thanks,
Mat

noppid 10-19-2005 04:18 PM

The pharse will be updated if the user allows overwrite when adding your product I believe.

Andreas 10-19-2005 04:22 PM

You should not edit existing phrases as this will most likely only cause problems; use your own ones :)

noppid 10-19-2005 04:24 PM

Quote:

Originally Posted by Andreas
You should not edit existing phrases as this will most likely only cause problems; use your own ones :)

Yes, I meant to mention that as well.

Nutz 10-19-2005 04:31 PM

I understand that and i would agree only the phrase I want to edit is "$vbphrase[first_visit_message]" the welcome message for guests.

The idea for the plugin is an easy to use admin page to edit the welcome message, the page would also use a small iframe to display a preview of the forum home as guests would see it :)

I hope this clears things up.

Thanks for the help,
Mat

noppid 10-19-2005 04:50 PM

The pharse should have nothing to do with the plugin XML or product XML. Your admin page should fetch the pharse and allow the user to edit it. Not edit it on install IMO.

Nutz 10-19-2005 05:35 PM

That is the idea :)

Thanks,
Mat


All times are GMT. The time now is 05:11 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.01234 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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