Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin DHTML Menu


Recommended Posts

Are here somebody that are able to carry the 'Admin DHTML Menu in their osCommerce????

 

I try in both 2.2MS2 and 2.2CVS and it don't work at all.......

 

I think that it should be a good way to get 'more work area' into the admin section...

 

=======

Edited by Johnson
Link to comment
Share on other sites

Fixed!

 

Only a small error into the intall.txt file (missing a ';')...

 

And only a extra change in file admin/includes/column_left.php

 

1.- ADD before the first 'require(DIR_WS_BOXES....' this:

 

if (BOX_WIDTH != 0) {

 

2.- And in the end of the block code,INSERT a single '}' to close the if statement.

 

This desactivate the 'colum left' when the DHTML MENU is activated.

Link to comment
Share on other sites

  • 8 months later...

I have it added to osC v2.2 MS2 and everything is running great. I even added a new Quick Links menu with a lot more stuff added in there that makes things more easier for me.

 

For better compatibility, the new Quick Links menu draws the menu contents from a separate php file called admin_links.php

 

A screen shot of the new menus are HERE

Edited by PopTheTop

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

  • 1 month later...

Well, now I need help... My site was working great. Then I added a small contribution (order_number_prefixe_v1.3 - contribution #1601) and now the Admin will not load.

 

I uploaded a FULL backup AND imported my SQL backup twice.

 

The store works fine at http://www.popthetop.com/catalog/index.php but the Admin will not load.

 

I can load the main Admin index page with all the links and order status, but if I click on Configuration, Backup, Orders, or anything in the Admin, all I get is this...

 

Warning: main(includes/boxes/0): failed to open stream: No such file or directory in /home/popthet/public_html/catalog/admin/includes/header_navigation.php on line 30

Fatal error: main(): Failed opening required 'includes/boxes/0' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/popthet/public_html/catalog/admin/includes/header_navigation.php on line 30

 

 

 

Line 30 is:

foreach($box_files_list as $item_menu) require(DIR_WS_BOXES. $item_menu[1] );

 

Here is the whole header_navigation.php file:

<?php
/*
$Id: header_navigation.php,v 1.19 2003/04/27 16:11:52 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2002 osCommerce

Released under the GNU General Public License
Updated by Gnidhal ([email protected])
*/
$menu_dhtml = MENU_DHTML;
$box_files_list = array(  array('configuration'  , 'configuration.php', BOX_HEADING_CONFIGURATION),
                          array('catalog'        , 'catalog.php', BOX_HEADING_CATALOG),
                          array('modules'        , 'modules.php' , BOX_HEADING_MODULES),
                          array('customers'      , 'customers.php' , BOX_HEADING_CUSTOMERS),
                          array('taxes'          , 'taxes.php' , BOX_HEADING_LOCATION_AND_TAXES),
                          array('localization'   , 'localization.php' , BOX_HEADING_LOCALIZATION),
                          array('reports'        , 'reports.php' , BOX_HEADING_REPORTS),
                          array('tools'          , 'tools.php' , BOX_HEADING_TOOLS),
                          array('quicklinks'     , 'quicklinks.php' , 'Quick Links')
                        );

 echo '<!-- Menu Bar START --><div class="menuBar" style="width:100%;">';
 foreach($box_files_list as $item_menu) {
   echo "<a class=\"menuButton\" href=\"\" onclick=\"return buttonClick(event, '".$item_menu[0]."Menu');\" onmouseover=\"buttonMouseover(event, '".$item_menu[0]."Menu');\">".$item_menu[2]."</a>";
 }
 echo "</div><!-- Menu Bar END -->";
foreach($box_files_list as $item_menu) require(DIR_WS_BOXES. $item_menu[1] );

?>

 

 

Can anyone help me please???

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

Anyone? I really need to get this fixed.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

I did notice that when this error started to happen, PHP on the server was upgraded to PHP Version 4.3.10. I do not know if this means anything or if it is just a coincidence.

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

  • 2 months later...

Just an added update...

 

I have no idea what happened, but everything is working and has been since the following day of my last post.

 

I love this contribution SO MUCH and makes life so much easier for the Admin!

L8r,

PopTheTop

 

Published osC Contributions:

- eCheck Payment Module v3.1

- Reviews in Product Display v2.0

- Fancier Invoice & Packingslip v6.1

- Admin Notes / Customer Notes v2.2

- Customer Zip & State Validation v2.2

- Search Box with Dropdown Category Menu v1.0

 

Pop your camper's top today!

It's a popup thing...

You wouldn't understand

Link to comment
Share on other sites

I have no idea what happened, but everything is working and has been since the following day of my last post.

They probably didn't upgrade the zendoptimizer version right away, it needs to be upgraded together with the upgrade to PHP 4.3.10 (else there will be problems with some array's)

Link to comment
Share on other sites

  • 2 months later...

I have a little problem.....

 

i've installed Autotheme lite 0.81 and Admin DHTML menu 2.1 ....

 

when i click on Autotheme ... colum left appears!

 

I' think because in file /boxes/autotheme.php there isn't :

 

if ($selected_box == 'autotheme' || $menu_dhtml == true)

 

Infact the file autotheme.php is:

 

<!-- AutoTheme //-->

          <tr>

            <td>

<?php

  $heading = array();

  $contents = array();

 

  $heading[] = array('text'  => BOX_HEADING_AUTOTHEME,

                    'link'  => tep_href_link(FILENAME_AUTOTHEME));

 

  $box = new box;

  echo $box->menuBox($heading, $contents);

?>

            </td>

          </tr>

<!-- AutoTheme_eof //-->

 

what can i do?

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...

I recantly installed Admin DHTML menu and I work well except one thing. I try to get Header Tags Controller installed in the menu. When I check the menu in the browser I get the title Header Tags Controller but nothing happens when I move the cursor over the title.

 

  $menu_dhtml = MENU_DHTML;
 $box_files_list = array(  array('configuration'  , 'configuration.php', BOX_HEADING_CONFIGURATION),
                           array('catalog'        , 'catalog.php', BOX_HEADING_CATALOG),
                           array('modules'        , 'modules.php' , BOX_HEADING_MODULES),
                           array('customers'      , 'customers.php' , BOX_HEADING_CUSTOMERS),
                           array('taxes'          , 'taxes.php' , BOX_HEADING_LOCATION_AND_TAXES),
                           array('localization'   , 'localization.php' , BOX_HEADING_LOCALIZATION),
                           array('reports'        , 'reports.php' , BOX_HEADING_REPORTS),
                           array('tools'          , 'tools.php' , BOX_HEADING_TOOLS),
                           array('headertags' ,'header_tags_controller.php' , BOX_HEADING_HEADER_TAGS_CONTROLLER)
                         );

  echo '<!-- Menu bar #2. --> <div class="menuBar" style="width:100%;">';
  foreach($box_files_list as $item_menu) {
    echo "<a class=\"menuButton\" href=\"\" onclick=\"return buttonClick(event, '".$item_menu[0]."Menu');\" onmouseover=\"buttonMouseover(event, '".$item_menu[0]."Menu');\">".$item_menu[2]."</a>";
  }
  echo "</div>";
foreach($box_files_list as $item_menu) require(DIR_WS_BOXES. $item_menu[1] );

?>

I can't see the problem.

 

//Henke

Link to comment
Share on other sites

Change:

 

array('headertags' , 'header_tags_controller.php' , BOX_HEADING_HEADER_TAGS_CONTROLLER),

 

TO

array('header tags' , 'header_tags_controller.php' , BOX_HEADING_HEADER_TAGS_CONTROLLER),

 

added a space in "header tags"

"There is no doubt about precisely when folks began racing each other in automobiles. It was the day they built the second automobile." - Richard Petty

Link to comment
Share on other sites

  • 2 months later...

Great contribution only issue I am having is linking the credit and gift vouchers. when I move my mouse over the credit and class link nothing happens.same issue as above.

 array('gift voucher'		, 'gv_admin.php' , BOX_HEADING_GV_ADMIN),

this is what last tried before asking for assistance.

I have tried a wide variety of array .i have tried :

vouchers/coupons

vouchers / coupons

vouchers/ coupons

vouchers /coupons

voucherscoupons

vouchers coupons

gift

credit

credit class

and so on probably 20 plus differnet variations.

Could some body shed some light on this for me?

thanks!

Link to comment
Share on other sites

  • 3 weeks later...
Great contribution only issue I am having is linking the credit and gift vouchers. when I move my mouse over the credit and class link nothing happens.same issue as above.

 array('gift voucher'		, 'gv_admin.php' , BOX_HEADING_GV_ADMIN),

this is what last tried before asking for assistance.

I have tried a wide variety of array .i have tried :

vouchers/coupons

vouchers / coupons

vouchers/ coupons

vouchers /coupons

voucherscoupons

vouchers coupons

gift

credit

credit class

and so on probably 20 plus differnet variations.

Could some body shed some light on this for me?

thanks!

 

Having the same issue with mine as well.........

Link to comment
Share on other sites

I found the fix for any contrib to work with this mod........use my code below for an example........someone should make this a sticky. This change is made is the catalog\admin\includes\header_navigation.php as needed for each contrib that is not being listed in the menu that you KNOW should be there i.e vouchers, vendor list........etc etc. (Typically mods that did NOT come with the vanilla cart)

 

If the "BOX_HEADING_XXXXX" is set up correctly in the database (based on how the author wrote it), then the proper name of the link should be displayed within the DHTML menu system.

 

If the "BOX_HEADING_XXXXX" is NOT set up correctly in the database, then the name of the link can be displayed by replacing "BOX_HEADING_XXXXX" with "WHATEVERNAMEYOUDECIDETOCALLIT"

 

Just make sure that the double quotes (") are left in tact or else it will create a parse error.

 

Greets,

Chris

 

$box_files_list = array(  array('catalog'		, 'catalog.php', BOX_HEADING_CATALOG),
												  array('configuration'  , 'configuration.php', BOX_HEADING_CONFIGURATION),
						array('customers'	  , 'customers.php' , BOX_HEADING_CUSTOMERS),
						array('Returns'		, 'returns.php' , BOX_RETURNS_HEADING),
						array('gv_admin' , 'gv_admin.php' , 'Gifts/Vouchers'),							
						array('localization'   , 'localization.php' , BOX_HEADING_LOCALIZATION),
						array('taxes'		  , 'taxes.php' , BOX_HEADING_LOCATION_AND_TAXES),
						array('modules'		, 'modules.php' , BOX_HEADING_MODULES),
						array('reports'		, 'reports.php' , BOX_HEADING_REPORTS),
						array('ticket' , 'ticket.php' , 'Support Tickets'),
						array('tools'		  , 'tools.php' , BOX_HEADING_TOOLS),
						array('Vendors' , 'vendors.php' , 'Vendors'),
													);



			
		
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...