Jump to content

Menus on Admin Panel not displaying properly with certain addons

Recommended Posts

I have an older report Product Daily Sales (contributor Shriram) from 2007 which I use regularly. The problem I have is that when I use this report, the menus on the left side of the Admin panel no longer display in drop down menus. They display as a list which is quite long. I'm sure it has something to do with js and stylesheets, but I can't figure it out. When I add the line <?php require(DIR_WS_INCLUDES . 'template_top.php'); ?>, to the stats_daily_products_sales_report.php file, the menus display, but the content disappears. Any help would be GREATLY appreciated.

osc v 2.3.4

Edited by dh180

Share this post

Link to post
Share on other sites

If this is an old contrib i think that inside the addon file  you should remove these lines on top

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
<script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
<link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

and remove these lines

<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->

and remove also

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->

then add after: require('includes/application_top.php');

require(DIR_WS_INCLUDES . 'template_top.php');

and add to the end before: require(DIR_WS_INCLUDES . 'application_bottom.php');

  require(DIR_WS_INCLUDES . 'template_bottom.php');

Edited by acidvertigo

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now