vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Is it possible to create a new group of phrases ? (https://vborg.vbsupport.ru/showthread.php?t=154276)

mihai11 08-04-2007 07:51 AM

Is it possible to create a new group of phrases ?
 
Hi,

I developed a custom page and I am thinking to use the build-in phrase-system from Vbulletin for all the texts that will be displayed in my custom page. In order to add a phrase to an existing group of phrases you need to go to "ACP >> Languages & Phrases >> Phrase Manager >> Add New Phrase".

The problem is that I would like to keep things organized. Is it possible to have my own custom phrase group ? Or perhaps there is an already existing group used for custom phrases ? (unfortunately, I listed all the phrases from VB and I did not found anything like this, but I was thinking that it could not hurt to ask)

Regards,
Razvan M.

Dismounted 08-04-2007 10:41 AM

Turn on Debug Mode, and see what happens ;).

mihai11 08-04-2007 11:19 AM

Quote:

Originally Posted by Dismounted (Post 1309564)
Turn on Debug Mode, and see what happens ;).

But I am working with DEBUG mode ON !:eek:

What should I look for ?

Antivirus 08-04-2007 10:08 PM

When debug mode is on you are then able to create Phrasegroups

mihai11 08-05-2007 04:28 AM

1 Attachment(s)
I attach a screen shot of my "language manager" and "phrase manager". There is no option to create "phrase groups".

Where exactly must I look for the option to create "phrase groups" ?

mihai11 08-06-2007 02:10 PM

Anybody else ?

LlamaBE 08-06-2007 07:23 PM

I can't find it either, where i should add a custom phrase group. I also have put debug mode on.

mihai11 08-07-2007 06:59 AM

Is this possible or not ?! I looked at the damn options 100 times. There is no option to create phrase groups. If this is not possible please don't suggest that the debug mode will allow me to do this.

Instead of loosing time, I would be looking for alternatives.

Andreas 08-07-2007 07:32 AM

It is possible, but there is no GUI for doing that.

1) Create a new entry in table phrasetype (editrows=3, special=0)
2) Add a new field phrasegroup_fieldname to table langage (MEDIUMTEXT NULL)

mihai11 08-07-2007 09:31 AM

1 Attachment(s)
Quote:

Originally Posted by Andreas (Post 1311715)
It is possible, but there is no GUI for doing that.

1) Create a new entry in table phrasetype (editrows=3, special=0)
2) Add a new field phrasegroup_fieldname to table langage (MEDIUMTEXT NULL)

It is working !!! I just created a new phrase group called "Digg style plugin" and inside this phrase group I created a phrase "test_hello" ! Please take a look at the attached picture.

Thank you for providing this information. Now my project will be a bit better organized.

Regarding the procedure of adding a custom phrase group: I don't think that the Vbulletin team choosed the best solution in this case. I mean, adding a new phrase group is an operation that many plugin developers might want to do. It should involve inserting some rows in some tables, not ALTERING tables in order to add new columns. I certainly hope that they will change this design in the future.


Regards,
Razvan M.


NB: These are the SQL commands that I used to create a new phrase group:

Code:

insert into ro_phrasetype (fieldname, title, editrows, product, special) values ('diggplugin', 'Digg style plugin', 3, '', 0);

ALTER TABLE ro_language ADD phrasegroup_diggplugin MEDIUMTEXT AFTER phrasegroup_infractionlevel;



All times are GMT. The time now is 11:43 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.01099 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete