Forums / All Other Contributions/Addons / Search Configuration Keys - Admin mod

Search Configuration Keys - Admin mod

Locked
Results 1 to 12 of 12
This thread is locked. New replies are disabled.
09 May 2010, 18:11
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Search Configuration Keys - Admin mod

Support thread and notification for this helper mod.

Description:
"This mod adds a new page named "Search Configuration Keys" in the Admin->Tools-> section.
The new page lists all the configuration keys and provides a search facility of the configuration table's title and description fields to find that option "you know you have seen somewhere".

Improved version available here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1639

The original code can be found here:
zencarttips.co.uk/quick-tip-2-find-admin-options-quickly-in-zen-cart
named as reference_cfg_key.
26 May 2010, 00:17
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Search Configuration Keys - Admin mod

Thanks for a very useful mod torvista. Should save all of us heaps of time :yes:
26 May 2010, 09:18
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Re: Search Configuration Keys - Admin mod

I'll just take the credit for a bit of a clean-up, as with all things all upload I just tinker a bit.
Maybe someone could expand this mod to index all the configuration keys...
15 Jun 2010, 18:05
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Posts:
10,620
Plugin Contributions:
212

Re: Search Configuration Keys - Admin mod

This mod was really very clever and has saved me time. Thank you!
27 Jun 2010, 13:10
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Posts:
3,427
Plugin Contributions:
2

Re: Search Configuration Keys - Admin mod

Minor bug in two of my 1.3.9d installs:

After installation of this mod you may notice that, when calling

Admin > Modules > Payment
Admin > Modules > Shipping
Admin > Modules > Order Totals

the heading of each of these pages has changed to 'Search Configuration Keys' (without the quotes) instead of 'Payment Modules' , 'Shipping Modules' etc

Solution:
=========

in admin/search_cfg_keys.php change line 4 from this

define('HEADING_TITLE','Search Configuration Keys');


to this

define('HEADING_TITLE_SEARCH_CFG_KEYS','Search Configuration Keys');


and in admin/includes/languages/english/search_cfg_keys.php change line 79 from this

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>


to this

<td class="pageHeading"><?php echo HEADING_TITLE_SEARCH_CFG_KEYS; ?></td>



Just wondering if anyone else has experienced this behavior?
28 Jun 2010, 21:45
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Re: Search Configuration Keys - Admin mod

just got back from hols and am knee-deep in business-computer hell, I have no access to test site to look at this for a while.
25 Jul 2010, 10:14
#7
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Re: Search Configuration Keys - Admin mod

The language files were located in
admin\includes\languages\-----\extra_definitions

which loads the contants globally.
Either the constants used in the language files should be given a unique name as per the post above, or the files should be moved up a level - I have done this and submitted a v1.2 to the download section.

regards
Steve
07 Oct 2010, 05:03
#8
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Search Configuration Keys - Admin mod

Ive noticed a bug I think when hoovering over the Tools drop down menu. The menu displays: BOX_TOOLS_SEARCH_CFG_KEYS at the bottom. Once I select it, it changes to: Search Configuration Keys. When you come back out of the page the menu reverts back to: BOX_TOOLS_SEARCH_CFG_KEYS again. I am running v1.3.9f
07 Oct 2010, 12:08
#9
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Re: Search Configuration Keys - Admin mod

Yes you are right, the 1.2 download has a file missing.

Make a file here with this name

YOUR_ADMIN _NAME\includes\extra_datafiles\search_cfg_keys.php

and put this in it
[PHP]define('FILENAME_SEARCH_CFG_KEYS', 'search_cfg_keys');
define('BOX_TOOLS_SEARCH_CFG_KEYS', 'Search Configuration keys');[/PHP]

v1.3 will have this in it.
07 Oct 2010, 22:37
#10
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Posts:
2,850
Plugin Contributions:
3

Re: Search Configuration Keys - Admin mod

the file referred to above should of course have php tags too, so should be
<?php
define('FILENAME_SEARCH_CFG_KEYS', 'search_cfg_keys');
define('BOX_TOOLS_SEARCH_CFG_KEYS', 'Search Configuration keys');
?>
08 Oct 2010, 00:35
#11
nohart avatar

nohart

Zen Follower

Join Date:
Apr 2010
Posts:
133
Plugin Contributions:
0

Re: Search Configuration Keys - Admin mod

Ok awesome! I did it and updated to Zen Cart v1.3.9g also and all is well! Thank you so much for this torvista!