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

Search Configuration Keys - Admin mod

Locked

Views: 1,843

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 May 2010, 6:11 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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, 12:17 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
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, 9:18 AM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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, 6:05 PM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,689
Plugin Contributions:
56

Re: Search Configuration Keys - Admin mod

This mod was really very clever and has saved me time. Thank you!

27 Jun 2010, 1:10 PM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
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, 9:45 PM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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 AM
#7
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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

7 Oct 2010, 5:03 AM
#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

7 Oct 2010, 12:08 PM
#9
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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

define('FILENAME_SEARCH_CFG_KEYS', 'search_cfg_keys');
define('BOX_TOOLS_SEARCH_CFG_KEYS', 'Search Configuration keys');

v1.3 will have this in it.

7 Oct 2010, 10:37 PM
#10
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

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'); ?>
8 Oct 2010, 12:35 AM
#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!