vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - filter phrases by product (https://vborg.vbsupport.ru/showthread.php?t=147136)

MrNase 05-12-2007 10:00 PM

filter phrases by product
 
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:
Attachment 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.

PHP Code:

" . 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:
PHP Code:

" . 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

Quote:

'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?


All times are GMT. The time now is 04:54 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
  • Page Generation 0.01130 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (22)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