View Full Version : Administrative and Maintenance Tools - filter phrases by product
MrNase
05-12-2007, 10:00 PM
vBulletin doesn't offer the option to filter phrases by product. You can filter them by their type but that's it.
I think that would be useful so I coded it myself. :D
It requires two code additions to admincp/phrase.php and it changes one query.
Here's a screenshot:
64266
IMPORTANT: It's a quick and dirty solution, it works for me and it should work for you. I suggested this feature to the team and I really hope that the next version of vBulletin will have this as a default feature. :)
Version history:
1.0 - initial release
1.1 - fixed a bug in the instructions
current -> 1.2 - added a line of code to the instructions
bela-meaad
05-13-2007, 03:07 PM
nice one
thanks
vip-q.com
05-13-2007, 03:25 PM
good
I was looking for that :)
jluerken
05-13-2007, 03:48 PM
I checked my phrase.php v 3.6.6 twice but I do not have the lines describes in the second step of your instructions file.
" . iif($vbulletin->GPC['product'] != '', "AND product = '" . $db->escape_string($vbulletin->GPC['product']) . "'") . "
MrNase
05-13-2007, 04:23 PM
Not yet! ;) Sorry, my mistake.. I corrected the instructions.
The code you need to replace is:
" . iif($vbulletin->GPC['fieldname'] != '', "AND fieldname = '" . $db->escape_string($vbulletin->GPC['fieldname']) . "'") . "
The line you was searching for because of the instruction is the new code, I messed it up. :(
nexialys
05-13-2007, 04:26 PM
/me smokey do dli the install...
(actually i did not click it... too much installs!)
MrNase
05-13-2007, 04:41 PM
You didn't click install? :eek:
Release your sandbox style and I will turn a blind eye to this. :p:D
nexialys
05-13-2007, 04:48 PM
lol... i'm not acting when i am threaten.. lol
btw, welcome back!
beduino
05-13-2007, 09:46 PM
really,
it's a valuable hack to help our effort to translations :D
tks
joao barroca
aka beduino
Lionel
05-14-2007, 01:00 AM
Nice one. Would also love to see a product install date
rjmjr69
05-14-2007, 06:46 AM
Awesome thanks works perfectly very easy to install.
MrNase
05-14-2007, 07:35 PM
What I forgot to add: By default you can only see the GLOBAL phrases.
Use the phrase type selector and select 'all' and then select a product.
That makes sure that you have all phrases listed instead of only the global phrases. :)
Lionel
05-14-2007, 07:39 PM
I am using 3.60 and no matter what, it is stucked on vbulletin product
Lionel
05-14-2007, 07:57 PM
Ahhh you forgot to tell us to also add
'product' => TYPE_STR,
nader
05-16-2007, 07:13 AM
still there is bug!
it does not work with me fine
when i select the produce it return to pervious vbulletin
MrNase
05-17-2007, 11:21 AM
Alright I updated the instructions. :)
nader: Please download the new instructions and apply the code changes described in step 1 in order to make it work. I apologize for my late reply but I had personal problems that needed my attention.
RedGTiVR6
06-06-2007, 04:09 PM
installed!
works great on our board with something like 28 modifications showing up in the list.
click on them and it shows the mods phrases!
thanks!
bigcurt
06-20-2007, 06:36 PM
Would really like to see this in stock vB next version.
Thanks!
Alphawolf83
10-10-2007, 04:23 PM
Is there a XML product version already?
Thanks.
RedGTiVR6
02-27-2008, 06:12 PM
Any ideas if this will work with 3.7?
mariocaz
02-29-2008, 04:44 AM
Very useful my friend, thank you a lot!!
RedGTiVR6
05-26-2008, 02:33 PM
bump - 3.7 anyone?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.