Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
filter phrases by product Details »»
filter phrases by product
Version: 1.2, by MrNase MrNase is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.6 Rating:
Released: 05-12-2007 Last Update: 05-16-2007 Installs: 32
Code Changes  
No support by the author.

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.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-13-2007, 03:07 PM
bela-meaad bela-meaad is offline
 
Join Date: Jan 2005
Location: Saudi Arabia
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one

thanks
Reply With Quote
  #3  
Old 05-13-2007, 03:25 PM
vip-q.com's Avatar
vip-q.com vip-q.com is offline
 
Join Date: Oct 2006
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good
I was looking for that
Reply With Quote
  #4  
Old 05-13-2007, 03:48 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']) . "'") . " 
Reply With Quote
  #5  
Old 05-13-2007, 04:23 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 05-13-2007, 04:26 PM
nexialys
Guest
 
Posts: n/a
Default

/me smokey do dli the install...
(actually i did not click it... too much installs!)
Reply With Quote
  #7  
Old 05-13-2007, 04:41 PM
MrNase MrNase is offline
 
Join Date: May 2003
Location: Germany
Posts: 670
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You didn't click install?

Release your sandbox style and I will turn a blind eye to this.
Reply With Quote
  #8  
Old 05-13-2007, 04:48 PM
nexialys
Guest
 
Posts: n/a
Default

lol... i'm not acting when i am threaten.. lol

btw, welcome back!
Reply With Quote
  #9  
Old 05-13-2007, 09:46 PM
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Location: Rio de Janeiro
Posts: 280
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really,
it's a valuable hack to help our effort to translations
tks
joao barroca
aka beduino
Reply With Quote
  #10  
Old 05-14-2007, 01:00 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one. Would also love to see a product install date
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:48 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04302 seconds
  • Memory Usage 2,289KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (8)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete