View Full Version : Is it possible to create a new group of phrases ?
mihai11
08-04-2007, 07:51 AM
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
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
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
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:
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;
Marco van Herwaarden
08-07-2007, 09:52 AM
There are not many modifications that require a custom phrasegroup. This is most likely only usefull for very large modifications using a lot of custom phrases. Also if used on standard vBulletin pages, it would require at least an extra read from the database, compaired to using a phrasegroup that is already loaded on that page.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.