vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to add new Phrase Type? (https://vborg.vbsupport.ru/showthread.php?t=192691)

mokujin 10-04-2008 06:05 PM

How to add new Phrase Type?
 
Hello all,
I want to add new Phrase Type, how can I do that?
I have seen in some hacks like vBCredits or Goldbick but couldnt found anything.
Thanks

Lynne 10-04-2008 06:44 PM

A whole new phrase *type* or just add some new phrases? I don't see anywhere to add a new phrase type. I guess if I were you, I'd download those modifications and see how they did it by looking through the files.

mokujin 10-04-2008 06:54 PM

I mean how to add a new Phrase *Type* which I can add new Phrase to this Type.
I mean Admincp -> Languages & Phrases -> Phrase Manager -> in the top you can see Phrase Type (default is GLOBAL)
I also downloaded those mods but I did not see how they did :(
I hope you can Help me, thanks Lynne

Lynne 10-04-2008 07:20 PM

Can you tell me the names of the Phrase Types added in the Goldbrick mod so I can look in the files for it?

Looking in the xml file, I see this, have you tried just doing as he did?

Code:

        <phrasetype name="New CP" fieldname="new_admin">
            <phrase name="new_permissions" date="1198022996" username="whatever" version=""><![CDATA[New Usergroups / Forum Permissions]]></phrase>
        </phrasetype>

I changed everything in red from his. But, just try that for adding a new one.

mokujin 10-04-2008 08:00 PM

The name of Goldbrick Phrase is Goldbrick CP and fieldname is goldbrick_admin
But when I add some new Phrase, I have to choose a Phrase Type for that Phrase but there is no my custom Phrase Type :?

Maybe I am understand: The first I should add new Phrase to GLOBAL Type, then when I export my product, I should edit the products file and rename the Phrase Type :)
Rename that similar line: <phrasetype name="New CP" fieldname="new_admin">

Lynne 10-04-2008 08:09 PM

Um, you know what.... neither of us has obviously bothered to look at the Similar Threads right above this Quick Reply box.

Phrase Type Manager

Vaupell 02-05-2009 11:34 AM

sorry if im bumping a old topic, just feel like reraiseing the question.

the mod is great, just dosent work on a 3.8.1 board, ewen a clean one i use.

KevinL 02-05-2009 11:50 AM

Did you try the fixes on page 2 to get it to work on 3.6? Which should make it work on 3.8...


All times are GMT. The time now is 06:40 AM.

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.01220 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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