Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 01-21-2007 12:47:34

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

header menu not working

After getting the cart to look like we want I moved the contents of khxc to the server root and changed paths through the install script. Most everything turned out OK with only a few things to change. I have it all figured out except the header menu. I must need to replace a file but I'm not sure or which one.
Almost forgot to tell you what it's doing. Everything points to the index page with the exception of the button for the account which works correctly.
http://www.pjclarkdesigns.com/

Here's the code in the skin.

Code:

<div id="skin_wrapper">

<div id="skin_header">

<table id="skin_ht"><tr>

<td id="skin_ht_lcol">
<a href="<?php print $link_home; ?>" title="Home"><img src="skins/Ecom/media/logo.png" alt="Home" width="500" height="60" /></a>
</td>

<td id="skin_ht_rcol">

<div class="skin_button"><a href="<?php print $link_contact; ?>" title="Contact">Contact</a></div>

<div class="skin_button"><a href="<?php print $link_account; ?>" title="Your Account">Your Account</a></div>

<div class="skin_button"><a href="<?php print $link_checkout; ?>" title="Checkout">Checkout</a></div>

<div class="skin_button"><a href="<?php print $link_cart; ?>" title="Shopping Cart &amp; Wish List">Shopping Cart &amp; Wish List</a></div>

<div class="skin_button"><a href="<?php print $link_home; ?>" title="Home">Home</a></div>

<div id="skin_headacct" style="clear: both">

Looks like it shoud work.

Last edited by grcauto (01-21-2007 12:54:02)

Offline

 

#2 01-22-2007 08:10:12

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19951
Website

Re: header menu not working

Did you remove this from the top of your skin?  If so, put it back (that's where those variables are defined):

Code:

     <?php /* PHP FUNCTION */
           /* REQUIRED: Skin startup */
           $skinfunc =& $this->include_skinfunc('KHXC_SkinFunc');
           extract($skinfunc->startup()); ?>

Nick Hendler

Offline

 

#3 01-22-2007 09:53:00

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

Re: header menu not working

Yes, it's there. I probably should have given you all the code.

Here's the skin.php

Code:

 <?php /* PHP FUNCTION */
           /* REQUIRED: Skin startup */
           $skinfunc =& $this->include_skinfunc('KHXC_SkinFunc');
           extract($skinfunc->startup()); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<meta name="keywords" content="<?php print $metakeywords; ?>" />

<meta name="description" content="<?php print $metadesc; ?>" />

<meta name="robots" content="index,follow" />

<base href="<?php print $disp_baseurl; ?>" />

     <?php /* PHP FUNCTION */
           /* REQUIRED: Prints lightbox code */
           $skinfunc->lightbox(); ?>

<link rel="stylesheet" type="text/css" media="all" href="skins/Ecom/css/all.css" />

<script type="text/javascript" src="skins/Ecom/scripts/scripts.js"></script>

<title><?php print $metatitle; ?></title>

</head>

     <?php /* PHP FUNCTION */
           /* REQUIRED: Prints the body tag */
           $skinfunc->bodytag(); ?>

<div id="skin_wrapper">

<div id="skin_header">

<table id="skin_ht"><tr>

<td id="skin_ht_lcol">
<a href="<?php print $link_home; ?>" title="Home"><img src="skins/Ecom/media/logo.png" alt="Home" width="500" height="60" /></a>
</td>

<td id="skin_ht_rcol">

<div class="skin_button"><a href="<?php print $link_contact; ?>" title="Contact">Contact</a></div>

<div class="skin_button"><a href="<?php print $link_account; ?>" title="Your Account">Your Account</a></div>

<div class="skin_button"><a href="<?php print $link_checkout; ?>" title="Checkout">Checkout</a></div>

<div class="skin_button"><a href="<?php print $link_cart; ?>" title="Shopping Cart &amp; Wish List">Shopping Cart &amp; Wish List</a></div>

<div class="skin_button"><a href="<?php print $link_home; ?>" title="Home">Home</a></div>

<div id="skin_headacct" style="clear: both">

     <?php /* PHP FUNCTION */
           /* Include the miniacctlogin namespace to print  */
           /* either a quick login info.                    */
           $skinfunc->namespace($app_id,'miniacctlogin'); ?>

</div>

</td>

</tr></table>

</div>

<table id="skin_ct">

<tr>

<td id="skin_ct_lcol">

     <?php /* PHP FUNCTION */
           /* Include the frontend menus namespace.  Pass LEFT     */
           /* as the menu id here.                                 */
           $skinfunc->namespace($app_id,'femenus','LEFT'); ?>

     <div class="skin_fenavh">Quick Store Search</div>
     <div class="skin_fenavmini">

          <?php /* PHP FUNCTION */
                /* Include the minisearch namespace. */
                $skinfunc->namespace($app_id,'minisearch'); ?>

     </div>

     <div class="skin_fenavh">Shopping Cart</div>

     <div class="skin_fenavmini">

          <?php /* PHP FUNCTION */
                /* Include the minicart namespace. */
                $skinfunc->namespace($app_id,'minicart'); ?>

     </div>

</td>

<td id="skin_ct_mcol">

     <?php /* PHP FUNCTION */
           /* Prints the page title.   */
           $skinfunc->titletag($disp_title); ?>

<div id="skin_content">

     <?php /* PHP FUNCTION */
           /* REQUIRED: Print the content for the page.  Do not   */
           /* remove this function call.  Doing so will result in */
           /* blank pages being generated. */
           $skinfunc->content(); ?>

</div>

</td>

<td id="skin_ct_rcol">

     <?php /* PHP FUNCTION */
           /* Include the frontend menus namespace.  Pass RIGHT    */
           /* as the menu id here.                                 */
           $skinfunc->namespace($app_id,'femenus','RIGHT'); ?>

</td>

</tr>

</table>

<div id="skin_footer">

     <?php /* PHP FUNCTION */
           /* Print the application owner's address and phone */
           /* numbers here.                                   */
           $skinfunc->printaddphone(); ?>

<p>&copy; <?php print $disp_year . ' ' . $site_name; ?>. All rights reserved worldwide.</p>

<p>
<a href="https://kryptronic.com/" title="Kryptronic"><img src="media/khxc/powered_khxc.png" alt="KHXC Powered" width="79" height="24" /></a>
&nbsp;
<img src="media/khxc/valid-xhtml10.png" alt="Valid XHTML" width="79" height="24" />
&nbsp;
<img src="media/khxc/valid-css.png" alt="Valid CSS" width="79" height="24" /></p>

</div>

     <?php /* PHP FUNCTION */
           /* REQUIRED: Run the debug and closure function. */
           $skinfunc->debug(); ?>

</div>

</body>

</html>

and here's the skinfunc.php

Code:

<?php /* PHP FUNCTION */
           /* REQUIRED: Skin startup */
           $skinfunc =& $this->include_skinfunc('KHXC_SkinFunc');
           extract($skinfunc->startup()); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />

<meta name="keywords" content="<?php print $metakeywords; ?>" />

<meta name="description" content="<?php print $metadesc; ?>" />

<meta name="robots" content="index,follow" />

<base href="<?php print $disp_baseurl; ?>" />

     <?php /* PHP FUNCTION */
           /* REQUIRED: Prints lightbox code */
           $skinfunc->lightbox(); ?>

<link rel="stylesheet" type="text/css" media="all" href="skins/Ecom/css/all.css" />

<script type="text/javascript" src="skins/Ecom/scripts/scripts.js"></script>

<title><?php print $metatitle; ?></title>

</head>

     <?php /* PHP FUNCTION */
           /* REQUIRED: Prints the body tag */
           $skinfunc->bodytag(); ?>

<div id="skin_wrapper">

<div id="skin_header">

<table id="skin_ht"><tr>

<td id="skin_ht_lcol">
<a href="<?php print $link_home; ?>" title="Home"><img src="skins/Ecom/media/logo.png" alt="Home" width="500" height="60" /></a>
</td>

<td id="skin_ht_rcol">

<div class="skin_button"><a href="<?php print $link_contact; ?>" title="Contact">Contact</a></div>

<div class="skin_button"><a href="<?php print $link_account; ?>" title="Your Account">Your Account</a></div>

<div class="skin_button"><a href="<?php print $link_checkout; ?>" title="Checkout">Checkout</a></div>

<div class="skin_button"><a href="<?php print $link_cart; ?>" title="Shopping Cart &amp; Wish List">Shopping Cart &amp; Wish List</a></div>

<div class="skin_button"><a href="<?php print $link_home; ?>" title="Home">Home</a></div>

<div id="skin_headacct" style="clear: both">

     <?php /* PHP FUNCTION */
           /* Include the miniacctlogin namespace to print  */
           /* either a quick login info.                    */
           $skinfunc->namespace($app_id,'miniacctlogin'); ?>

</div>

</td>

</tr></table>

</div>

<table id="skin_ct">

<tr>

<td id="skin_ct_lcol">

     <?php /* PHP FUNCTION */
           /* Include the frontend menus namespace.  Pass LEFT     */
           /* as the menu id here.                                 */
           $skinfunc->namespace($app_id,'femenus','LEFT'); ?>

     <div class="skin_fenavh">Quick Store Search</div>
     <div class="skin_fenavmini">

          <?php /* PHP FUNCTION */
                /* Include the minisearch namespace. */
                $skinfunc->namespace($app_id,'minisearch'); ?>

     </div>

     <div class="skin_fenavh">Shopping Cart</div>

     <div class="skin_fenavmini">

          <?php /* PHP FUNCTION */
                /* Include the minicart namespace. */
                $skinfunc->namespace($app_id,'minicart'); ?>

     </div>

</td>

<td id="skin_ct_mcol">

     <?php /* PHP FUNCTION */
           /* Prints the page title.   */
           $skinfunc->titletag($disp_title); ?>

<div id="skin_content">

     <?php /* PHP FUNCTION */
           /* REQUIRED: Print the content for the page.  Do not   */
           /* remove this function call.  Doing so will result in */
           /* blank pages being generated. */
           $skinfunc->content(); ?>

</div>

</td>

<td id="skin_ct_rcol">

     <?php /* PHP FUNCTION */
           /* Include the frontend menus namespace.  Pass RIGHT    */
           /* as the menu id here.                                 */
           $skinfunc->namespace($app_id,'femenus','RIGHT'); ?>

</td>

</tr>

</table>

<div id="skin_footer">

     <?php /* PHP FUNCTION */
           /* Print the application owner's address and phone */
           /* numbers here.                                   */
           $skinfunc->printaddphone(); ?>

<p>&copy; <?php print $disp_year . ' ' . $site_name; ?>. All rights reserved worldwide.</p>

<p>
<a href="https://kryptronic.com/" title="Kryptronic"><img src="media/khxc/powered_khxc.png" alt="KHXC Powered" width="79" height="24" /></a>
&nbsp;
<img src="media/khxc/valid-xhtml10.png" alt="Valid XHTML" width="79" height="24" />
&nbsp;
<img src="media/khxc/valid-css.png" alt="Valid CSS" width="79" height="24" /></p>

</div>

     <?php /* PHP FUNCTION */
           /* REQUIRED: Run the debug and closure function. */
           $skinfunc->debug(); ?>

</div>

</body>

</html>

Offline

 

#4 01-22-2007 10:05:36

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19951
Website

Re: header menu not working

Your skinfunc.php is totally incorrect.  Download the default skin here:

https://kryptronic.com/khxc/ccp0-displa … krypt.html

And get the right skinfunc.php.


Nick Hendler

Offline

 

#5 01-22-2007 13:40:37

grcauto
Member
From: Bloomsburg, PA
Registered: 09-11-2006
Posts: 128
Website

Re: header menu not working

Thanx,
That fixed it.

Offline

 

#6 05-08-2007 22:27:47

kgillespie
Member
From: Sandy, Oregon
Registered: 06-10-2004
Posts: 164
Website

Re: header menu not working

I have made a skin and it is working for the most part but I have a problem with the very bottom area it is printing the following:

Software: Kryptronic Hybrid X Core (KHXC) Copyright: 1999-2007 Kryptronic, Inc. Author: Nick Hendler, webmaster@kryptronic.com Info URL: https://kryptronic.com/ Exec Time: 0.273881 Seconds Memory Usage: 3.21122 Megabytes

How do I get rid of that text?

You can view my (still under construction) page at http://adventurescrapbooking.com/khxc/ to see the site.

Offline

 

#7 05-09-2007 05:31:37

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: header menu not working

That information is in a hidden div and isn't visible on the page.  If you don't want it on the page even though it is hidden edit skinfunc.php in the skin directory you are using and comment out line 153 which should look like this:

Code:

$this->include_file('khxc','closure.php');

Just change it to:

Code:

#$this->include_file('khxc','closure.php');

Offline

 

#8 05-09-2007 22:57:52

kgillespie
Member
From: Sandy, Oregon
Registered: 06-10-2004
Posts: 164
Website

Re: header menu not working

That information is in a hidden div and isn't visible on the page.  If you don't want it on the page even though it is hidden edit skinfunc.php in the skin directory you are using and comment out line 153 which should look like this:

I commented out that line and it worked - Thanks

I was afraid to comment it out because it says not delete or alter that part or the cart won't work properly so i didn't want to make changes to be safe. Which kind of leads me back to your notes about that information being in the hidden div and saying it isn't visible on the page. I am a little confused because it was showing up. So I am not clear about it being a hidden edit but doing what you told me fixed it so I guess it is all good. Otherwise if there was another way or something i did wrong with altering the code on the skin.php file I would fix it there properly but this new ccp khxc stuff is all new to me.

Offline

 

#9 05-10-2007 03:10:57

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: header menu not working

It wasn't visible on the page in your original post.  If you were seeing it then it would indicate that the styling information for the hidden class in all.css had been changed somehow.

Offline

 

Board footer