Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

Bill please tell me what's wrong with cssmenu, sometimes I see this error in the categories infobox

Warning: Invalid argument supplied for foreach() in /www/catalog/includes/boxes/categories_cssmenu.php on line 144

 

Just sometimes (!)

 

As a quick fix, turn off "Cache" in the admin.

 

You could also find the following lines in includes/modules/sts/sts_inc/sts_column_left.php and comment out the following lines:

 

 

 /*if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_categories_box();

 } else {

include(DIR_WS_BOXES . 'categories.php');

 }  

 $sts->restart_capture ('categorybox', 'box');  */

 

Other that that, I cannot duplicate the error. You may have installed some code that is conflicting with the CSS Menu contribution.

 

 

CSS Menu Support Thread:

http://www.oscommerce.com/forums/index.php?showtopic=231143

Edited by bkellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Any thoughts on getting the credit card error messages to show up instead of re-routing people to login? :blush:

 

Hi guys,

 

I'm stumped again - LOL I've tried searching and just haven't seemed to find the answer. Our credit card entry is now on the order_confirmation.php page (due to security modifications from osC to upgrade the store). If someone tries to use a credit card that we don't accept, they get booted back to the login screen with no error message. There is no error message in the URL either :blink:

 

I tried these instructions: http://www.oscommerce.com/forums/index.php?s=&...t&p=1071646 but it didn't fix anything.

 

Anybody know how to get it to show the TEXT_CCVAL_ERROR_INVALID_NUMBER message when the customer enters a cc number we don't accept? I have been wracking my brain going through all of the checkout pages I can find and I can't see any reason this wouldn't show up. I'm hoping someone here has run into this one already :blush:

~Tracy
 

Link to comment
Share on other sites

Any thoughts on getting the credit card error messages to show up instead of re-routing people to login? :blush:

 

Tracy,

Is the error message listed in the application_top.php?

 

The message_stack object is created in application_top.php and if there is a message to display, it is added to the stack here. With each message we also display a small icon and we use tep_image for that. STS should pick up the message if it is listed in the application_top.php file.

 

Also be sure you are using the most current application_top.php from the STSv4.5.8 contribution.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

thank you for your constant help Bill :wub:

 

 

there is another issue, the light box for sts 4 contribution didn't work for me.

 

The lightbox contribution works fine as long as it is installed correctly. The issue most users have problems with is that they do not reference the new JavaScript correctly.

 

The JavaScript should be uploaded to your "js" folder and the following references should be listed in your template just after you link to your stylesheet:

 

 

<script type="text/javascript" src="js/prototype.js"></script>

<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>

<script type="text/javascript" src="js/lightbox.js"></script>

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Believe me i did exactly this, stated also in the install.txt it is very easy to install. but it doesn't work.

 

2. Edit: includes/sts_templates/{your template name}/sts_template.html

between the <head> </head> add:

 

<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="includes/js/prototype.js"></script>

<script type="text/javascript" src="includes/js/scriptaculous.js?load=effects"></script>

<script type="text/javascript" src="includes/js/lightbox.js"></script>

 

3. Edit: includes/modules/sts_inc/product_info.php

 

About in line 80 find:

-------------------------------------------------------------------------------------------------

$template_pinfo['product_popup']= '<script language="javascript"><!--'."\n".

'document.write(\'<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . (int)$products_id) . '\\\')">' . $template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>\');'."\n".

'//--></script>'."\n".

'<noscript>'."\n".

'<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n".

'</noscript>'."\n";

} else {

$template_pinfo['imagesmall'] ='';

$template_pinfo['imagelarge'] ='';

$template_pinfo['product_popup']=''

}

-------------------------------------------------------------------------------------------------

 

Replace with:

-------------------------------------------------------------------------------------------------

$template_pinfo['product_popup']= '<a rel="lightbox" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" title="'. $product_info['products_name'] .' - '. $manufacturer['manufacturers_name'] .'">'.$template_pinfo['imagesmall'] . '<br>' . TEXT_CLICK_TO_ENLARGE .'</a>'."\n";

 

} else {

$template_pinfo['imagesmall'] ='';

$template_pinfo['imagelarge'] ='';

$template_pinfo['product_popup']='';

}

 

 

Also Ajax Shopping cart didn't work for me :(

http://www.oscommerce.com/forums/index.php?sho...p;#entry1354724

Link to comment
Share on other sites

Hi Bill,

 

Just compared my includes/application_top.php with the STSv4.5.8 copy and the only differences are additions to mine for SPPC, Master Products, a Referrals contrib and an Ad tracking contrib - etc.. But there is no difference in the message stack code in application_top.php

 

This is my includes/classes/message_stack.php file:

<?php
/*
 $Id: message_stack.php,v 1.1 2003/05/19 19:45:42 hpdl Exp $

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

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License

 Example usage:

 $messageStack = new messageStack();
 $messageStack->add('general', 'Error: Error 1', 'error');
 $messageStack->add('general', 'Error: Error 2', 'warning');
 if ($messageStack->size('general') > 0) echo $messageStack->output('general');
*/

 class messageStack extends tableBox {

// class constructor
function messageStack() {
  global $messageToStack;

  $this->messages = array();

  if (tep_session_is_registered('messageToStack')) {
	for ($i=0, $n=sizeof($messageToStack); $i<$n; $i++) {
	  $this->add($messageToStack[$i]['class'], $messageToStack[$i]['text'], $messageToStack[$i]['type']);
	}
	tep_session_unregister('messageToStack');
  }
}

// class methods
function add($class, $message, $type = 'error') {
  if ($type == 'error') {
	$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message);
  } elseif ($type == 'warning') {
	$this->messages[] = array('params' => 'class="messageStackWarning"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'warning.gif', ICON_WARNING) . ' ' . $message);
  } elseif ($type == 'success') {
	$this->messages[] = array('params' => 'class="messageStackSuccess"', 'class' => $class, 'text' => tep_image(DIR_WS_ICONS . 'success.gif', ICON_SUCCESS) . ' ' . $message);
  } else {
	$this->messages[] = array('params' => 'class="messageStackError"', 'class' => $class, 'text' => $message);
  }
}

function add_session($class, $message, $type = 'error') {
  global $messageToStack;

  if (!tep_session_is_registered('messageToStack')) {
	tep_session_register('messageToStack');
	$messageToStack = array();
  }

  $messageToStack[] = array('class' => $class, 'text' => $message, 'type' => $type);
}

function reset() {
  $this->messages = array();
}

function output($class) {
  $this->table_data_parameters = 'class="messageBox"';

  $output = array();
  for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) {
	if ($this->messages[$i]['class'] == $class) {
	  $output[] = $this->messages[$i];
	}
  }

  return $this->tableBox($output);
}

function size($class) {
  $count = 0;

  for ($i=0, $n=sizeof($this->messages); $i<$n; $i++) {
	if ($this->messages[$i]['class'] == $class) {
	  $count++;
	}
  }

  return $count;
}
 }
?>

 

I think it has to do with changes made to checkout_payment.php and checkout_confirmation.php for the release of rc2. They moved the payment entry info to checkout_confirmation.php. Although - I still have the discount coupon entry on checkout_payment.php and if I enter an incorrect coupon I don't get any errors - it actually allows me to go through to checkout_confirmation.php.

 

I have a debug print on checkout_confirmation.php and it is grabbing the error message that I have an invalid coupon code - but it is not printing that message anywhere:

 

<!--DEBUG<pre>Object order is: order Object

(

[info] => Array

(

BUNCH OF STUFF DELETED HERE

 

[content_type] => physical

[coupon] => discount_coupon Object

(

[messages] => Array

(

[error] => Array

(

[0] => The coupon code you have entered is not valid.

)

 

)

 

BUNCH MORE STUFF DELETED</pre>-->

 

So I started looking through the checkout php pages and I've found that the code to show errors is on checkout_payment.php:

<?php
 if (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
		<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></b></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
	  <tr class="infoBoxNoticeContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
			<td class="main" width="100%" valign="top"><?php echo tep_output_string_protected($error['error']); ?></td>
			<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }
?>

 

But there is no such code on checkout_confirmation.php

 

I currently have the coupons errors turned off (long story) but if I put it back I get the same result as with cc errors - any error message and I just get re-booted back to login and it won't allow me to login again unless I delete the session ID from the URL or wait for it to expire.

 

Ok - I'm guessing I've rambled on enough here :blush: - I'm just completely lost as to why error messages aren't being displayed (they aren't in the URL either) but instead you get booted to login.php :blink:

 

 

 

Tracy,

Is the error message listed in the application_top.php?

 

The message_stack object is created in application_top.php and if there is a message to display, it is added to the stack here. With each message we also display a small icon and we use tep_image for that. STS should pick up the message if it is listed in the application_top.php file.

 

Also be sure you are using the most current application_top.php from the STSv4.5.8 contribution.

~Tracy
 

Link to comment
Share on other sites

If you are entering the links in the HTML of your template:

 

Product links look like this:

<a href="<?php echo tep_href_link('product_info.php', 'products_id=53&', 'NONSSL'); ?>">Your Text or Image Here</a>

 

Category links look like this:

<a href="<?php echo tep_href_link('index.php', 'cPath=21&', 'NONSSL'); ?>">Category Name Here</a>

 

Other pages (for example and contact_us.php page) would have links like this:

<a href="<?php echo tep_href_link('contact_us.php', 'NONSSL'); ?>">Contact Us</a>

 

Hope that helps ;)

 

I'm trying to find out how to make a menu with links without losing the session ID. I'm so confused. What should I use for the links?

~Tracy
 

Link to comment
Share on other sites

Ok - first thing is an apology for cluttering this board with something that turned out to be an Ultimate SEO URL's issue (SORRY!) :blush:

 

Second thing: For anyone else who comes across this issue. If you are using Chemo's Ultimate SEO URL's contribution you need to make the following change:

For good measure find (catalog/includes/functions/general.php) .. 

------------ CODE SAMPLE ----------
header('Location: ' . $url);
-----------------------------------

Add directly above .. 

------------ CODE SAMPLE ----------
$url = str_replace('&', '&', $url);
-----------------------------------

Which can be found here:

http://www.oscommerce.com/forums/index.php?s=&...t&p=1341900

 

 

Hi Bill,

 

Just compared my includes/application_top.php with the STSv4.5.8 copy and the only differences are additions to mine for SPPC, Master Products, a Referrals contrib and an Ad tracking contrib - etc.. But there is no difference in the message stack code in application_top.php

~Tracy
 

Link to comment
Share on other sites

"ADD TO CART" BUTTON DOESN'T WORK

 

Hi,

can You help me find out and fix the problem I got? My "add to cart" button doesn't work, it behaves like a blank link image and nothing happens when I click it.

 

Here's my product_info.php

http://wklej.org/id/36783/

 

and Output code:

http://wklej.org/id/36784/

 

I've already posted it in the General Support:

http://www.oscommerce.com/forums/index.php?showtopic=325427&st=0&gopid=1355455entry1355455

, but I've been redirected to this thread. I'd add that it doesn't work only on product_info.php, on whats_new it works fine.

 

Cheers,

Soulfain

Link to comment
Share on other sites

Hi, hope you can help as I am a little stuck right now.

 

Installed version 4.5.8 and its working.

 

So had a go at doing my own template, at the moment I am on the info boxes.

 

The problem is I have somedisplaying as I want them and some not.

 

the header is made up of a left, a background and a right image, ileft, iright etc. ($headertxt) appears here

 

The bottom ($content) is basically on a white background.

 

code as used in my infobox.php.html

 

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td><img border="0" src="$templatedir/images/infobox/ileft.png"></td>
<td background="$templatedir/images/infobox/ibg.png" WIDTH="1428" class="infoBoxHeading" style="background-repeat: repeatx">$headertext</td>
	<td><img border="0" src="$templatedir/images/infobox/iright.png"></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
<td bgcolor="#ffffff"> </td>
<td bgcolor="#FFFFFF">$content</td>
<td> </td>
 </tr>
 <tr>
<td width="30"> </td>
<td width="100%"> </td>
<td width="31"> </td>
 </tr>
</table>

 

and I have

corrrectly displayed info boxes

 

Information, Currencies, Tell A Friend, Notifications, Manufacturers

 

Incorrectly displayed

Categories

Shopping Cart

What's New

Manufacturers Info

Specials

Quick find

Languages

Reviews

 

To make it more confusing to me the images are using the $templatedir and when checking the correct images and incorrect ones I get:-

 

correct image url http://yourdomain.com/shop2/templates/new/...obox/iright.png

incorrect image url http://yourdomain.com/shop2/$template...obox/iright.png

 

 

Can someone point me in the right direction I am guessing its something very simple

 

Thanks

 

Johnny

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

Okay, so I have the following code for the Quick search box, this displays correctly, the only difference as far as I can tell is the image url, ie. cant use $templatedir.

 

Any reason why for Information, Currencies, Tell A Friend, Notifications, Manufacturers I can use src="$templatedir/images/infobox/iright.png"

 

but for Categories Shopping Cart What's New Manufacturers Info Specials Quick find Languages Reviews

 

I have to use src="./templates/new/images/infobox/iright.png"

 

guessing I have missed something out??? any help would be much appreciated.

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#00FF00">

<tr>

<td><img border="0" src="./templates/new/images/infobox/ileft.png"></td>

<td background="./templates/new/images/infobox/ibg.png" style="background-repeat: repeat-x" WIDTH="1428" class="infoBoxHeading">$headertext</td>

<td><img border="0" src="./templates/new/images/infobox/iright.png"></td> </tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td bgcolor="#FFFFFF">$content</td>

</tr>

</table>

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

Okay, so I have the following code for the Quick search box, this displays correctly, the only difference as far as I can tell is the image url, ie. cant use $templatedir.

 

Any reason why for Information, Currencies, Tell A Friend, Notifications, Manufacturers I can use src="$templatedir/images/infobox/iright.png"

 

but for Categories Shopping Cart What's New Manufacturers Info Specials Quick find Languages Reviews

 

I have to use src="./templates/new/images/infobox/iright.png"

 

guessing I have missed something out??? any help would be much appreciated.

 

 

<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#00FF00">

<tr>

<td><img border="0" src="./templates/new/images/infobox/ileft.png"></td>

<td background="./templates/new/images/infobox/ibg.png" style="background-repeat: repeat-x" WIDTH="1428" class="infoBoxHeading">$headertext</td>

<td><img border="0" src="./templates/new/images/infobox/iright.png"></td> </tr>

</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="border-collapse: collapse" bordercolor="#111111">

<tr>

<td bgcolor="#FFFFFF">$content</td>

</tr>

</table>

 

 

 

 

 

Grrrrrr thats only solved a few more canm anyone help get this nailed properly please.

 

Thanks

Johnny

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

Okay things have moved on a little. I have 5 fsections that I can't use $templatedir on

 

Specials, Quick find (search), shopping cart, reviews, and manufacturer info basically I can have

<td><img border="0" src="./templates/new/images/infobox/ileft.png"></td>
<td background="./templates/new/images/infobox/ibg.png" style="background-repeat: repeat-x" WIDTH="1428" class="infoBoxHeading">$headertext</td>
<td><img border="0" src="./templates/new/images/infobox/iright.png"></td> </tr>

 

in these infobox_specials.php.html, infobox_search.php.html etc but can have for the others currently in use.

 

but cant have

<td><img border="0" src="$templatedir/images/infobox/ileft.png"></td>
<td background="$templatedir/images/infobox/ibg.png" WIDTH="1428" class="infoBoxHeading" style="background-repeat: repeatx">$headertext</td>
	<td><img border="0" src="$templatedir/images/infobox/iright.png"></td>

 

This means that those other infoboxes will have to be manually changed for each template, something I want to avoid.

 

Any idea on how to get the $templatedir working for these other infoboxes?

 

Thanks

Johnny

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

Hello Everyone

 

I am using Bills Modern Template and Im having a problem with the flyout part of the category css menu not being seen. Ive placed it in the left column but the sub categories are hidden behind my content in the center of the page. Any ideas? Ive tried making all the background colors transparent; its just white anyway. But that didnt help.

 

Thanks a million

Link to comment
Share on other sites

Hello Everyone

 

I am using Bills Modern Template and Im having a problem with the flyout part of the category css menu not being seen. Ive placed it in the left column but the sub categories are hidden behind my content in the center of the page. Any ideas? Ive tried making all the background colors transparent; its just white anyway. But that didnt help.

 

Thanks a million

 

Hi please PM me with a link to your site or post it here, i had lot of trouble with that template and i may help (maybe).

Link to comment
Share on other sites

Okay things have moved on a little. I have 5 fsections that I can't use $templatedir on

 

Specials, Quick find (search), shopping cart, reviews, and manufacturer info basically I can have

<td><img border="0" src="./templates/new/images/infobox/ileft.png"></td>
<td background="./templates/new/images/infobox/ibg.png" style="background-repeat: repeat-x" WIDTH="1428" class="infoBoxHeading">$headertext</td>
<td><img border="0" src="./templates/new/images/infobox/iright.png"></td> </tr>

 

in these infobox_specials.php.html, infobox_search.php.html etc but can have for the others currently in use.

 

but cant have

<td><img border="0" src="$templatedir/images/infobox/ileft.png"></td>
<td background="$templatedir/images/infobox/ibg.png" WIDTH="1428" class="infoBoxHeading" style="background-repeat: repeatx">$headertext</td>
	<td><img border="0" src="$templatedir/images/infobox/iright.png"></td>

 

This means that those other infoboxes will have to be manually changed for each template, something I want to avoid.

 

Any idea on how to get the $templatedir working for these other infoboxes?

 

Thanks

Johnny

 

Johnny,

 

This has been addressed before just a few pages back. The $templatedir needs to be made a global variable in order for it to work in the "catalog" infoboxe templates.

 

See the following post: http://www.oscommerce.com/forums/index.php?sho...p;#entry1324441

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hi please PM me with a link to your site or post it here, i had lot of trouble with that template and i may help (maybe).

 

I know you probably didn't mean it to come out this way but your comments suggest that my free template has a lot of bugs in it. The template is bug free. It works perfectly on a stock osC shop that has STSv4.5.8 installed and configured correctly. See a demo of this in action here.

One of the options of the template is to use the CSS Menu (files provided in the template download). If you are having problems getting the CSS Menu, I suggest posting your question in the support thread for the CSS Menu contribution (the link was mentioned just a few posts up in this support thread).

Edited by bkellum

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Hi,

 

Is it possible to have seperate header.php files in your template, basically want to design a few different headers and footers but dont want to change the default coding.

 

Thanks

 

Johnny

Yes, it is and it is a very common and very easy thing to do using STS.

 

Some use my step by step tutorial available in the STS Add-on Site (STSv4 Power Pack, link in my signature below) or they simply create new page templates for the specific page or category/product and insert the custom header directly into that template.

 

I strongly suggest using my step by step as it creates a header template with a PHP Include link in the page template.

 

If you decide to create the custom template directly into the template itself, you only need to save the template using the correct naming syntax. For example: home page (index.php_0.html), category ID1 (index.php_1.html), Product ID1 (product_info.php_1.html), etc.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Johnny,

 

This has been addressed before just a few pages back. The $templatedir needs to be made a global variable in order for it to work in the "catalog" infoboxe templates.

 

See the following post: http://www.oscommerce.com/forums/index.php?sho...p;#entry1324441

 

Tried at at least I think I did and someone also made reference to using the $sts and that I couldnt get to work either so for now I have settled with the ./templates/.... solution as its only a few files but guess I must have something else not quite right.

 

Thanks for your help, finding this mod great, but challlenging as I am sort misunderstanding somethings on the first few attempts but I am moving forward.

 

 

Used the code

function infoBoxHeaderTemplate($headertext,$right_arrow) {
// STS 4.3: put header template and tags in $sts object, do not display them now.
// STS 4.5.2: BUG corrected, was checking content cache instead of header cache
  global $sts;
$sts->template['templatedir'] = substr(((($request_type == 'SSL') ? DIR_WS_HTTPS_CATALOG : DIR_WS_HTTP_CATALOG) . STS_TEMPLATE_DIR),0,-1); 
 $btrace=debug_backtrace();
 $boxname=basename($btrace[1]['file'],".php");
 $boxprefix = "infobox_";

Edited by johnnybebad

Getting better with mods but no programmer am I.

Link to comment
Share on other sites

How can I make a html text link for this one, I´m using STS

define('BOX_HEADING_INFORMATION',

define('BOX_INFORMATION_PRIVACY',

define('BOX_INFORMATION_CONDITIONS',

define('BOX_INFORMATION_SHIPPING',

define('BOX_INFORMATION_CONTACT',

 

thanx

Link to comment
Share on other sites

I know you probably didn't mean it to come out this way but your comments suggest that my free template has a lot of bugs in it. The template is bug free. It works perfectly on a stock osC shop that has STSv4.5.8 installed and configured correctly. See a demo of this in action here.

One of the options of the template is to use the CSS Menu (files provided in the template download). If you are having problems getting the CSS Menu, I suggest posting your question in the support thread for the CSS Menu contribution (the link was mentioned just a few posts up in this support thread).

Thank you for your reply Bill. I have utilized your css menu files for the suckerfish menu. I just looked at your example and I see that the flyout are on top of the content to the right of the menu. so I have done something wrong. I will go back and look at your files again. Thank you for a great contribution to STS and OSC generally. You are one of the reasons I came back to OSC.

 

Marion

Link to comment
Share on other sites

Thank you for your reply Bill. I have utilized your css menu files for the suckerfish menu. I just looked at your example and I see that the flyout are on top of the content to the right of the menu. so I have done something wrong. I will go back and look at your files again. Thank you for a great contribution to STS and OSC generally. You are one of the reasons I came back to OSC.

 

Marion

 

That is likely a z-index issue... adjust the z-index style of the submenu to be above the content.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

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...