Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Addon Templates / HELP!! after delete "static categories menu", i can't install other adds-on anymore!

HELP!! after delete "static categories menu", i can't install other adds-on anymore!

Locked

Started by bluesky2008 on 7 Aug 2008, 10:49 PM · Views: 1,985

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
7 Aug 2008, 10:49 PM
#1
bluesky2008 avatar

bluesky2008

New Zenner

Join Date:
Jul 2008
Posts:
75
Plugin Contributions:
0

HELP!! after delete "static categories menu", i can't install other adds-on anymore!

sometimes i install some sidebox adds-on, they work fine, normally thoes adds-on which i install are in 3 folders:
\includes\languages\english
\includes\modules\sideboxes
\includes\templates\template_default\sideboxes
after installation, i go to admin - tool - layout boxes controller, it appears "new box found", then i make the status true, so everything's ok.

but these days, i installed the sidebox add-on "static categories menu", there are 3 files to upload, i dont like it very much, then i deleted thoes 3 files, and i went to admin - tool - layout boxes controller, this sidebox still appeared there and the row's background became pink, and appearing "MISSING", so i click this row and clicked "delete", then it doesnt appear there anymore.

but, after that, i try to install other sidebox adds-on, always failed, the case is that after transfer the files, when i go to admin - tool - layout boxes controller, no new sidebox appears, i can't find any new sidebox!

what shall i do now? i can't install sidebox adds-on anymore! i'm new, i dont know why and i cant figuer it out. could anyone help? thanks a lot.

here are the codes of those 3 files of "static categories menu"

\includes\languages\english\extra_definitions\staticmenu.php

<?php
/* ------------------------------------------------
* YahooTreeMenuWithAJAX for Zen-Cart v0.9
*
* Copyright (c) 2006 Andrew Yermakov <[email protected]>
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
*    notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
*    notice, this list of conditions and the following disclaimer in the
*    documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
  ------------------------------------------------
*/
?>
<?php
  define('BOX_HEADING_STATIC_MENU', 'Categories');
?>

\includes\modules\sideboxes\staticmenu.php

<?php
  require($template->get_template_dir('tpl_staticmenu.php', DIR_WS_TEMPLATE, $current_page_base, 'sideboxes') . '/tpl_staticmenu.php');
  
  $title = BOX_HEADING_STATIC_MENU;
  $title_link = false;

  require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base, 'common') . '/' . $column_box_default);
?>

\includes\templates\template_default\sideboxes\tpl_staticmenu.php

<?php

$content = '
<script language="javascript">
function movein(obj,html){
   obj.style.background=\'#8bd3e5\'
}

function moveout(obj){
   obj.style.background=\'#ffffff\'
}

//-->
</script>
';

$content .= '<table bgcolor="white" border="0" bordercolor="white" cellpadding="2" cellspacing="4">

<tr>
<td bordercolor="white" id="choice1" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'www.PreciousGive.com\')" onmouseout="moveout(this)"">
 <a style=\'font-size:1.1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com">Home</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice2" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Bracelet\')" onmouseout="moveout(this)">
 <a style=\'font-size:1.1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com/index.php?main_page=index&cPath=1">Sterling Silver Bracelet</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice3" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Charm\')" onmouseout="moveout(this)">
 <a style=\'font-size:1.1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com/index.php?main_page=index&cPath=2">Sterling Silver Charm</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice4" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Earrings\')" onmouseout="moveout(this)">
 <a style=\'font-size:1.1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com/index.php?main_page=index&cPath=12">Sterling Silver Earrings</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice5" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Stud Earrings\')" onmouseout="moveout(this)">
   <a style=\'font-size:1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com/index.php?main_page=index&cPath=12_13">SS Stud Earrings</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice6" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Dangle Earrings\')" onmouseout="moveout(this)">
   <a style=\'font-size:1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="http://www.preciousgive.com/index.php?main_page=index&cPath=12_14">SS Dangle Earrings</a></td></tr>
<tr>
<td class="menu" bordercolor="white" id="choice7" style="background-color:#ffffff; cursor:hand" onmouseover="movein(this,\'Sterling Silver Necklace\')" onmouseout="moveout(this)">
 <a style=\'font-size:1.1em; font-weight:bold; font-family:Arial; color:#008CD8;\' href="/index.php?main_page=index&cPath=3">Sterling Silver Necklace</a></td></tr>
</table>
';
?>
8 Aug 2008, 4:12 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP!! after delete "static categories menu", i can't install other adds-on anymore!

I see the box in my layout controller ...

I turn it on for the Left Column and set its sort order ...

It works fine ...

I would add to the tpl_staticmenu.php file:

$content = '';

So that this is clear of any content from other sideboxes ...

Make sure that you have no spaces or blank lines after the closing php tag at the bottom of the ?> as those can cause issues ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Aug 2008, 5:42 AM
#3
bluesky2008 avatar

bluesky2008

New Zenner

Join Date:
Jul 2008
Posts:
75
Plugin Contributions:
0

Re: HELP!! after delete "static categories menu", i can't install other adds-on anymore!

Ajeh:

I see the box in my layout controller ...

I turn it on for the Left Column and set its sort order ...

It works fine ...

I would add to the tpl_staticmenu.php file:

$content = '';

> 
> So that this is clear of any content from other sideboxes ...
> 
> Make sure that you have no spaces or blank lines after the closing php tag at the bottom of the **?>** as those can cause issues ...

hello ajeh, the box "static categories menu" did work fine in my zen too, i deleted it not cause it didnt work but cause it's not what i exactly want. 

the problem is after i deleted those 3 files 
\includes\languages\english\extra_definitions\staticmenu.php
\includes\modules\sideboxes\staticmenu.php
\includes\templates\template_default\sideboxes\tpl_staticmenu.php

(i also deleted the box from my layout box controller in admin tools), then i can't install other sidebox anymore. when i try to install other box, even i upload the files to my zen, i can't find any new box in layout box controller. 

now my big problem is there's no staticmenu php files in my zen (cause i have already deleted them), so i don't think i have a chance to modify them, but now other new sidebox doesnt work for me, after that, i tried three other boxes (very easy box), but they all failed, no new boxes appear in my layout box controller anymore (those current boxes work fine). please help me, thanks.
8 Aug 2008, 2:00 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: HELP!! after delete "static categories menu", i can't install other adds-on anymore!

Check the new files for errors as you could have errors in the code ...

The Layout Boxes Controller loads from what ever files it sees in the directories ...

Make sure you do not have dead, junk, trashed, backup files in there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Oct 2010, 12:00 PM
#5
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: HELP!! after delete "static categories menu", i can't install other adds-on anymore!

Ive installed this mod and it does exactly what I want, except it seems it doesnt have a border around it as all of my other sideboxes do by default.

Does anyone have any idea how to fix this?