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


All times are GMT. The time now is 12:58 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.02177 seconds
  • Memory Usage 1,730KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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