![]() |
Phrase Type Manager
Phrase Type Manager
Description This Hack allows you to easily manage custom phrase types. Details 1 Product XML (12 Phrases) 1 ACP Script 1 ACP Navigation XML Note: As this Hack is meant for developers, it can only be used in debug mode! Credits to Hoffi for PhraseGroupManager, which inspired this Hack :) |
first to reply w00t, thanx :-)
|
Nice one!!
|
I cannot get the Phrase Type Manager in admincp .
Even searched and saved a phrase it is over there. |
Quote:
|
Quote:
|
If you create a custom phrase group as part of a custom product, does it get exported along with that product? Am I correct in assuming that I can create a product, create a custom phrase type as part of that product, create phrases as part of that product and in that custom phrase type, and export the product, and the product will contain all of that, and when someone else installs the product, even if they don't have your hack, they will get the new phrase group and all the new phrases will be in that group?
|
Also, if I do create a custom phrase group, should that group then be defined in a custom script (custom PHP file) in the beginning like this:
Code:
$phrasegroups = array('customgroup1' , 'customgroup2'); |
JJR512, that is part of the point of this hack :)
This be cool $h1t :D [high]* Revan clicks install[/high] |
@JR512
Just icnlude the varname in array $phrasegroups, just as you would do with any other phrasegroup too. If you export a product, product management will take care of everything; the user does not need this hack - it's just to make developers life easier :) |
Quote:
It's a developers tool and therefore will not show up for endusers, as pointed out in the first post. |
Quote:
Quote:
EvilHawk clicks install! |
Thank you Kirby
Clicked installed :) |
How do you enter debug mode and how do you confirm it's on?
I asked this question at vbulletin.com (http://www.vbulletin.com/forum/showthread.php?t=153385) and was told by Steve Machol (a vB developer) that all I have to do is put Code:
$debug = 1; Well, I put that statement in the config.php of my test board and uploaded it. I looked at the board's front end, seemed normal. I looked at the admin cp, seemed normal. So far, it's not obvious that debug mode is on, although Steve implied it would be. I tried installing this hack on my test board. It doesn't show up in the admincp. Now apparently it should show up in the admincp if debug mode is on, and it should also be obvious that it's on, but nothing seems different to me. So I figure I must be doing something wrong, and debug mode is not on. What's my problem? |
$debug =1 is for vBulletin 3.0
For vBulletin 3.5 take a look here: https://vborg.vbsupport.ru/showthread.php?t=82835 |
Yeah, I found that, I should have searched here first before asking. :o
Anyway, I fixed it and now have access to your hack. Thanks! :) One suggestion/question: Is it possible you could make it so that after I create a new Phrase Type and have it tied to a particular Product, that when I go through Phrase Manager, select my custom phrase type from the drop-down box, and click the Add New Phrase button, that on the next Add New Phrase screen, the same product that the Phrase Type is associated with when it was created also is pre-selected in the Product field on this Add New Phrase screen? It's pre-set to vBulletin, and to my thinking, it seems likely that if you create a new Phrase Type, any phrases you create for it would be part of the same Product that the Phrase Type was created for. |
This is not easily possible without file edits, furtheremore you can add phrases that belog to different products into one phrasegroup
|
Very nice, now you don't have to do the necessry steps for new phrase-groups manually. But...
I have an own phrase-group for my induvidual modifications. In vB 3.0 I added in the init.php at the end these 3 lines PHP Code:
In vB 3.5 this is not working anymore. Which PHP I have to modify, to get my individual phrase-group loaded gloabal, so I can use the phrases everywhere ? Thanks for help. BR J?rg |
@JoergZ
Hook init_startup can be used to load phrasegroups @Rabbitoh Warren It is intended behaviour that it does not show up if you don't need it! If you are a developer and need it it will show up. |
Ah... Great. Thaks.
|
Does the product manager export the phrase types?
|
Sure.
|
Uhh... But your hack doesn't seem to be adding anything into the product manager. So if custom phrases are not a default functionality, why would the product manager be exporting them?
|
They are a default functionality, there is just no nice GUI for it - which this Hack does add.
=> adminfunctions_language.php, add_phrase_type() |
So will this hack be present in the next vbulletin release? :)
|
It is not in 3.6, and I think this will not work in 3.6 because the structure of the Table is changed.
See who ist first to build a 3.6 Version. Andreas or myself. ;) |
Anything new here? ;)
|
To get this to work in 3.6.x find:
PHP Code:
PHP Code:
|
find:
PHP Code:
PHP Code:
|
Thanks Andreas, sabret00the.
Correct implementation would be: PHP Code:
|
Thanks, with the little patches posted above, installed smoothly on vb365, works very well. Before installing I directly made changes to the db, now this task is a lot faster.
|
Any version for vb 3.8?
|
For 3.8, do the edits above, but after this:
PHP Code:
PHP Code:
|
For vB 4 do the edits above, and add this
PHP Code:
PHP Code:
|
Can't delete
MySQL Error : Unknown column 'phrasetypeid' in 'where clause' |
please update 4.2
|
All times are GMT. The time now is 06:51 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|