Jump to content



Photo
- - - - -

[Addon] Categories Accordion Box for 2.3.1


  • Please log in to reply
372 replies to this topic

#141   oxwivi

oxwivi
  • Members
  • 250 posts
  • Real Name:Oxwivi Oxwil

Posted 19 May 2012 - 19:57

@oxwivi Clear the cache in your store, then your browser's cache.


It did not work. A little amendment on when the category shows itself - going to any product will show all categories, not just the product with hidden category.

#142   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 19 May 2012 - 20:55

Using your FTP program, delete all of the files in your cache directory.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#143   oxwivi

oxwivi
  • Members
  • 250 posts
  • Real Name:Oxwivi Oxwil

Posted 20 May 2012 - 05:45

Yes! It worked this time! Thank you very much!

#144   altoid

altoid
  • Community Sponsor
  • 1,021 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 21 May 2012 - 00:06

Installed the latest update by @mpalasis, works well, looks nice.

As well I inserted the style sheet code provided by @kymation on this.

See above for both.....

Much appreciated.
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#145   altoid

altoid
  • Community Sponsor
  • 1,021 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 21 May 2012 - 18:03

You can also try adding the following to your root .htaccess file:

# ----------------------------------------------------------------------
# Better website experience for IE users
# ----------------------------------------------------------------------
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
	BrowserMatch MSIE ie
	Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  </IfModule>
</IfModule>
<IfModule mod_headers.c>
#
# Because X-UA-Compatible isn't sent to non-IE (to save header bytes), we need to inform proxies that content changes based on UA
#
  Header append Vary User-Agent
# Cache control is set only if mod_headers is enabled, so that's unncessary to declare
</IfModule>

Regards
Jim


Jim, this has fixed the issue on IE8. Thanks much.
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#146   pchelpwebshop

pchelpwebshop
  • Members
  • 4 posts
  • Real Name:Peter Brewerton

Posted 22 May 2012 - 09:08

I had an IE8 problem. + Icons overlay the text

In bm_categories_accordion.php (from1.1.2)
Moved the </div> line from 115 to after 127 (after the javascript)
No doubt there's a better solution.

#147   altoid

altoid
  • Community Sponsor
  • 1,021 posts
  • Real Name:Steve
  • Gender:Male
  • Location:Hollidaysburg, Pennsylvania

Posted 22 May 2012 - 09:54

I had an IE8 problem. + Icons overlay the text

In bm_categories_accordion.php (from1.1.2)
Moved the </div> line from 115 to after 127 (after the javascript)
No doubt there's a better solution.


@pchelpwebshop I had the same issue, see above in this thread, Jim has a couple solutions to try. The .htaccess solution worked for me., There's another fix to try a page or two earlier.
I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.
I remember what it was like when I first started with osC. It can be overwhelming.
However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.
There are several good pros here on osCommerce. Look around, you'll figure out who they are.

#148   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 18 August 2012 - 14:26

Hi Jim,

It's Lyn again. Before asking questions, like to thank you for all your addons. I installed quite few of them and they are very useful, even though I still have some problems need to be solved.

I had installed this 1.1.2 version after CKEditor / PDF Datasheet / Products Specifications, and it seems works fine in the front page.
The only problem is when I go to Modules / Box / Categories Accordion, click on Edit, it doesn't show anything. I can remove it, but I can not edit the details for left or right column, sort order, selected Icon, unslected icon at all.

I then do another test install in brand new 2.3.3 and 2.3.1 oscommerce, it is the same result that I couldn't edit the modules.

I had open firefox and try to do it there, it is the same problem. (with IE i am using IE9 version)

I didn't modify any file, just copy and paste....what should I do now?

Thank you very much in advance.

Lyn

#149   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 18 August 2012 - 17:34

You have an error of some sort. The error is not showing because you have error messages turned off. Go into your admin/includes/application_top.php and change this line

  error_reporting(E_ALL & ~E_NOTICE);


and change it to

  error_reporting(E_ALL);


Then try to edit the module again. Sometimes you have to use View Source in your browser to see the error message.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#150   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 19 August 2012 - 02:10

Hi Jim,

I had modified the admin/includes/application_top.php,
and went to modules/boxes again

this first error message right away:

Notice: Undefined variable: mInfo in /admin/modules.php on line 247
Notice: Trying to get property of non-object in /admin/modules.php on line 247
Notice: Undefined variable: mInfo in /admin/modules.php on line 249
Notice: Trying to get property of non-object in admin/modules.php on line 249


this is the error message I got when I tried to remove the module:

Notice: Use of undefined constant MODULE_BOXES_CATEGORIES_ACCORDION_TITLE - assumed 'MODULE_BOXES_CATEGORIES_ACCORDION_TITLE' in /includes/modules/boxes/bm_categories_accordion.php on line 25

Notice: Use of undefined constant MODULE_BOXES_CATEGORIES_ACCORDION_DESCRIPTION - assumed 'MODULE_BOXES_CATEGORIES_ACCORDION_DESCRIPTION' in /includes/modules/boxes/bm_categories_accordion.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at /includes/modules/boxes/bm_categories_accordion.php:25) in /admin/includes/functions/general.php on line 35


No idea why this happened as it is a brand new osc 2.3.3 and 2.3.1 oscommerce....
(BTW, the host company use PHP 5.2.17)

What have I done wrong?

thanks in advance.

Lyn

#151   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 19 August 2012 - 05:28

It looks like the catalog/includes/languages/english/modules/boxes/bm_categories_accordion.php file is damaged or missing. Or you're using a different language and didn't copy that file to your other language directory.

Regards
Jim

Edited by kymation, 19 August 2012 - 05:28.

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#152   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 19 August 2012 - 06:30

Hi Jim,

Thanks for your reply.

I went to the add on and download the zip files again.

I still have error message:

Warning: reset() [function.reset]: Passed variable is not an array or object in /admin/modules.php on line 227

Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 228

Notice: Undefined property: stdClass::$title in admin/modules.php on line 240

below is the modules.php file from oscommerce 2.3.3


<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
$set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : '');
$modules = $cfgModules->getAll();
if (empty($set) || !$cfgModules->exists($set)) {
$set = $modules[0]['code'];
}
$module_type = $cfgModules->get($set, 'code');
$module_directory = $cfgModules->get($set, 'directory');
$module_language_directory = $cfgModules->get($set, 'language_directory');
$module_key = $cfgModules->get($set, 'key');;
define('HEADING_TITLE', $cfgModules->get($set, 'title'));
$template_integration = $cfgModules->get($set, 'template_integration');
$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');
if (tep_not_null($action)) {
switch ($action) {
case 'save':
reset($HTTP_POST_VARS['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':
case 'remove':
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$class = basename($HTTP_GET_VARS['module']);
if (file_exists($module_directory . $class . $file_extension)) {
include($module_directory . $class . $file_extension);
$module = new $class;
if ($action == 'install') {
$module->install();
$modules_installed = explode(';', constant($module_key));
$modules_installed[] = $class . $file_extension;
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $modules_installed) . "' where configuration_key = '" . $module_key . "'");
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));
} elseif ($action == 'remove') {
$module->remove();
$modules_installed = explode(';', constant($module_key));
unset($modules_installed[array_search($class . $file_extension, $modules_installed)]);
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $modules_installed) . "' where configuration_key = '" . $module_key . "'");
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set));
}
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));
break;
}
}
require(DIR_WS_INCLUDES . 'template_top.php');
$modules_installed = (defined($module_key) ? explode(';', constant($module_key)) : array());
$new_modules_counter = 0;
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$directory_array = array();
if ($dir = @[member='dir']($module_directory)) {
while ($file = $dir->read()) {
if (!is_dir($module_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
if (isset($HTTP_GET_VARS['list']) && ($HTTP_GET_VARS['list'] = 'new')) {
if (!in_array($file, $modules_installed)) {
$directory_array[] = $file;
}
} else {
if (in_array($file, $modules_installed)) {
$directory_array[] = $file;
} else {
$new_modules_counter++;
}
}
}
}
}
sort($directory_array);
$dir->close();
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
<?php
if (isset($HTTP_GET_VARS['list'])) {
echo ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_BACK, 'triangle-1-w', tep_href_link(FILENAME_MODULES, 'set=' . $set)) . '</td>';
} else {
echo ' <td class="smallText" align="right">' . tep_draw_button(IMAGE_MODULE_INSTALL . ' (' . $new_modules_counter . ')', 'plus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&list=new')) . '</td>';
}
?>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_MODULES; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SORT_ORDER; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
</tr>
<?php
$installed_modules = array();
for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) {
$file = $directory_array[$i];
include($module_language_directory . $language . '/modules/' . $module_type . '/' . $file);
include($module_directory . $file);
$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
$module = new $class;
if ($module->check() > 0) {
if (($module->sort_order > 0) && !isset($installed_modules[$module->sort_order])) {
$installed_modules[$module->sort_order] = $file;
} else {
$installed_modules[] = $file;
}
}
if ((!isset($HTTP_GET_VARS['module']) || (isset($HTTP_GET_VARS['module']) && ($HTTP_GET_VARS['module'] == $class))) && !isset($mInfo)) {
$module_info = array('code' => $module->code,
'title' => $module->title,
'description' => $module->description,
'status' => $module->check(),
'signature' => (isset($module->signature) ? $module->signature : null),
'api_version' => (isset($module->api_version) ? $module->api_version : null));
$module_keys = $module->keys();
$keys_extra = array();
for ($j=0, $k=sizeof($module_keys); $j<$k; $j++) {
$key_value_query = tep_db_query("select configuration_title, configuration_value, configuration_description, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'");
$key_value = tep_db_fetch_array($key_value_query);
$keys_extra[$module_keys[$j]]['title'] = $key_value['configuration_title'];
$keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
$keys_extra[$module_keys[$j]]['description'] = $key_value['configuration_description'];
$keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
$keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
}
$module_info['keys'] = $keys_extra;
$mInfo = new objectInfo($module_info);
}
if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) {
if ($module->check() > 0) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . '\'">' . "\n";
} else {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
}
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['list']) ? '&list=new' : '') . '&module=' . $class) . '\'">' . "\n";
}
?>
<td class="dataTableContent"><?php echo $module->title; ?></td>
<td class="dataTableContent" align="right"><?php if (is_numeric($module->sort_order)) echo $module->sort_order; ?></td>
<td class="dataTableContent" align="right"><?php if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['list']) ? '&list=new' : '') . '&module=' . $class) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
</tr>
<?php
}
}
if (!isset($HTTP_GET_VARS['list'])) {
ksort($installed_modules);
$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'");
if (tep_db_num_rows($check_query)) {
$check = tep_db_fetch_array($check_query);
if ($check['configuration_value'] != implode(';', $installed_modules)) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'");
}
} else {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', '" . $module_key . "', '" . implode(';', $installed_modules) . "', 'This is automatically updated. No need to edit.', '6', '0', now())");
}
if ($template_integration == true) {
$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'TEMPLATE_BLOCK_GROUPS'");
if (tep_db_num_rows($check_query)) {
$check = tep_db_fetch_array($check_query);
$tbgroups_array = explode(';', $check['configuration_value']);
if (!in_array($module_type, $tbgroups_array)) {
$tbgroups_array[] = $module_type;
sort($tbgroups_array);
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $tbgroups_array) . "', last_modified = now() where configuration_key = 'TEMPLATE_BLOCK_GROUPS'");
}
} else {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Template Block Groups', 'TEMPLATE_BLOCK_GROUPS', '" . $module_type . "', 'This is automatically updated. No need to edit.', '6', '0', now())");
}
}
}
?>
<tr>
<td colspan="3" class="smallText"><?php echo TEXT_MODULE_DIRECTORY . ' ' . $module_directory; ?></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'edit':
$keys = '';
[color=#FF0000][b]reset($mInfo->keys); --->line 227[/b][/color]
[color=#0000FF][b]while (list($key, $value) = each($mInfo->keys)) { ---> line 228[/b][/color]
$keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';
if ($value['set_function']) {
eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
} else {
$keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
}
$keys .= '<br /><br />';
}
$keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
[b][color=#006400] $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>'); ---> line 240[/color][/b]
$contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save'));
$contents[] = array('text' => $keys);
$contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])));
break;
default:
$heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');
if ($mInfo->status == '1') {
$keys = '';
reset($mInfo->keys);
while (list(, $value) = each($mInfo->keys)) {
$keys .= '<strong>' . $value['title'] . '</strong><br />';
if ($value['use_function']) {
$use_function = $value['use_function'];
if (preg_match('/->/', $use_function)) {
$class_method = explode('->', $use_function);
if (!isset(${$class_method[0]}) || !is_object(${$class_method[0]})) {
include(DIR_WS_CLASSES . $class_method[0] . '.php');
${$class_method[0]} = new $class_method[0]();
}
$keys .= tep_call_function($class_method[1], $value['value'], ${$class_method[0]});
} else {
$keys .= tep_call_function($use_function, $value['value']);
}
} else {
$keys .= $value['value'];
}
$keys .= '<br /><br />';
}
$keys = substr($keys, 0, strrpos($keys, '<br /><br />'));
$contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_EDIT, 'document', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=edit')) . tep_draw_button(IMAGE_MODULE_REMOVE, 'minus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove')));
if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
$contents[] = array('text' => '<br />' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<strong>' . TEXT_INFO_VERSION . '</strong> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)');
}
if (isset($mInfo->api_version)) {
$contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<strong>' . TEXT_INFO_API_VERSION . '</strong> ' . $mInfo->api_version);
}
$contents[] = array('text' => '<br />' . $mInfo->description);
$contents[] = array('text' => '<br />' . $keys);
} elseif (isset($HTTP_GET_VARS['list']) && ($HTTP_GET_VARS['list'] == 'new')) {
if (isset($mInfo)) {
$contents[] = array('align' => 'center', 'text' => tep_draw_button(IMAGE_MODULE_INSTALL, 'plus', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install')));
if (isset($mInfo->signature) && (list($scode, $smodule, $sversion, $soscversion) = explode('|', $mInfo->signature))) {
$contents[] = array('text' => '<br />' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<strong>' . TEXT_INFO_VERSION . '</strong> ' . $sversion . ' (<a href="http://sig.oscommerce.com/' . $mInfo->signature . '" target="_blank">' . TEXT_INFO_ONLINE_STATUS . '</a>)');
}
if (isset($mInfo->api_version)) {
$contents[] = array('text' => tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '&nbsp;<strong>' . TEXT_INFO_API_VERSION . '</strong> ' . $mInfo->api_version);
}
$contents[] = array('text' => '<br />' . $mInfo->description);
}
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
</table>
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>


#153   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 19 August 2012 - 06:48

Sorry the post is a bit long, so I break it down to seperated parts:

the Categories Accordion then just show SAVE & REMOVE Module (no Edit anymore)
when I click on SAVE, this is what message I got,

Warning: reset() [function.reset]: Passed variable is not an array or object in /admin/modules.php on line 35

Warning: Variable passed to each() is not an array or object in /admin/modules.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /admin/modules.php:35) in /admin/includes/functions/general.php on line 35

when I click on SAVE, this is what message I got, and then the categories also became the same way


I didnot installed any other language, only English version. I did not modify any files, just simply copy and paste. Not sure why this happen. It not only happen in 2.3.1 but 2.3.2 and 2.3.3 version.

Is it something wrong with the PHP or other issues?

I basically can make the box show up in the front page, but I can't make the + icon delete nor change the column right or left as the EDIT button doesn't work. All the other modules works fine, even the Products Filter one works.....

is there any other way that I can modify the icon and column left and right?

thank you very much for your time and help.

regards,

Lyn

Edited by ce7, 19 August 2012 - 06:50.


#154   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 19 August 2012 - 17:01

This is most likely the result of uploading a file to the wrong location. There are four files in this distribution. Check that each one is in the correct location on your server.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#155   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 19 August 2012 - 22:34

Hi Jim,

I download the oscommerce 2.3.3 version and installed together with only Accordion Catelog Menu on my local server, it works fine without any problem. (WAMP Server: MySQL 5.5.2 PHP 5.3.10 Apache 2.2.21)

When I upload it to server, the Modules/Boxes/Categories Accordion then go again the same problem.

And the website can't open with lots of error message:

Warning: include(includes/languages/english/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 86

Warning: include(includes/languages/english/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 86

Warning: include() [function.include]: Failed opening 'includes/languages/english/modules/header_tags/ht_canonical.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in //includes/classes/osc_template.php on line 86

Warning: include(includes/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /home/inmotion/public_html/mickgrip.com.au/TEST/includes/classes/osc_template.php on line 87

Warning: include(includes/modules/header_tags/ht_canonical.php) [function.include]: failed to open stream: No such file or directory in /includes/classes/osc_template.php on line 87

Warning: include() [function.include]: Failed opening 'includes/modules/header_tags/ht_canonical.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /includes/classes/osc_template.php on line 87

Fatal error: Class 'ht_canonical' not found in /includes/classes/osc_template.php on line 90

Can you see what is going on? Is it the problem from my hosting company's oscommerce version or PHP?

Thanks and regards,

Lyn

#156   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 19 August 2012 - 23:25

ok,

I added the ht_canonical.php and ht_robot_noindex.php and the website comes back again. (Sorry this was caused by I copy the 2.3.2 version, not the 2.3.3 version. I redo it again and make sure the ht_canonical.php and ht_robot_noindex.php are there!)

it is really strange. Exactly the same copy and paste, the localhost 2.3.3 version works great
and I did modified application_top.php as mentioned earlier, this time I didn't have any error message.


the localhost index
http://postimage.org...nnecf/3464aa96/

the localhost modules/boxes
http://postimage.org...49x0f/72944508/

the server index
http://postimage.org...ol36n/281f426c/

the server modules/boxes1
http://postimage.org...8khun/fd26f4cd/

the server modules/boxes2
when you click on the EDIT button show on moduels/boxes1 image,
it just jump directly to this image
http://postimage.org...izdy7/3e8b603f/


I don't know why I can not modify the modules / boxes in the live server version one?

Edited by ce7, 19 August 2012 - 23:26.


#157   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 19 August 2012 - 23:56

Log into your live server Admin, select View Source, and look at the end of the file. Is there an error message there? If you can't figure it out, post an image of the last part of that file.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#158   ce7

ce7
  • Members
  • 244 posts
  • Real Name:lyn

Posted 20 August 2012 - 00:35

Hi Jim,

I had sent your the source code by messages.
The first part is live server version and 2nd part is localhost version.

I am not sure the error message. (I had application_top.php modified as you suggested) I assume there is no error message there?
I can see the differences in the two but I dont know how to make the live version one works!

Thank you very much for your time.

regards,

Lyn

#159   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,211 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 20 August 2012 - 00:49

That looks just fine to me. I saved it as a file and opened it in Firefox, and everything looks right. Perhaps you need to try a different browser.

Edit: That also appears to be your local copy, which you have said works correctly. I can't do anything with that. Again, I need the source of the page that is broken.

Regards
Jim

Edited by kymation, 20 August 2012 - 00:51.

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#160   j_hankins

j_hankins
  • Members
  • 3 posts
  • Real Name:Jason

Posted 23 August 2012 - 04:20

Jim,

Thanks for the great contribution!

An issue I am having is when trying to edit the module settings in the admin. When I click on Edit I get the following error:

Fatal error: Call to undefined function tep_cfg_pull_down_icon() in /hermes/bosweb25a/b459 <...full web path omitted for security...> admin/modules.php(313) : eval()'d code on line 1

Everything else seems to be working fine including the front end. I have triple checked that all files are in the correct directories. Any insight on what might be causing this error?

Thank you,
Jason