Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I implement this pc. of code


dragon5

Recommended Posts

Posted

Hello. I'm trying to eliminate the error: 'This pg contains both secure & non secure items' when a customer accesses any of the pages covered by my ssl. I have changed all the affiliate banner code from absolute paths to relative paths, but the Yahoo IM box is still giving me trouble.

 

<?php if ($request_type == NONSSL) { ?> supposedly will fix this problem but I'm not sure where to put it or if this is actually the correct solution. Here is the Yahoo.php box code. I tried to put it just before the <a href..... but that didn't work. Any help would be appreciated.

Tom

 

<!-- messaging //-->

<tr>

<td class="infoBox_right">

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => 'Yahoo Messenger'

);

new infoBoxHeading($info_box_contents, false, false);

define('ENTRY_YAHOO_ID', 'xxxxxxxxx');

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => 'Want to ask us<br>any questions?<br>We are: <br><br>

 

<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . ENTRY_YAHOO_ID . '&.src=pg"><img src="http://opi.yahoo.com/online?u=' . ENTRY_YAHOO_ID . '&m=g&t=4" border="0" alt="Yahoo Messenger"></a>'

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- messaging_eof //-->

Posted

I think you'll have to hide the yahoo box for SSL pages, by using the code you mentioned, in column_right.php before

 

include(DIR_WS_BOXES . 'theyahooboxname.php');

 

I guess it would be

 

if ($request_type != 'SSL') {

include(DIR_WS_BOXES . 'theyahooboxname.php');

}

 

Maybe I misunderstood...but I don't think there's another way to avoid the error w/ that unsecure link in the yahoo box

 

Hello. I'm trying to eliminate the error: 'This pg contains both secure & non secure items' when a customer accesses any of the pages covered by my ssl. I have changed all the affiliate banner code from absolute paths to relative paths, but the Yahoo IM box is still giving me trouble.

 

<?php if ($request_type == NONSSL) { ?> supposedly will fix this problem but I'm not sure where to put it or if this is actually the correct solution. Here is the Yahoo.php box code. I tried to put it just before the <a href..... but that didn't work. Any help would be appreciated.

Tom

 

<!-- messaging //-->

<tr>

<td class="infoBox_right">

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => 'Yahoo Messenger'

);

new infoBoxHeading($info_box_contents, false, false);

define('ENTRY_YAHOO_ID', 'xxxxxxxxx');

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => 'Want to ask us<br>any questions?<br>We are: <br><br>

 

<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . ENTRY_YAHOO_ID . '&.src=pg"><img src="http://opi.yahoo.com/online?u=' . ENTRY_YAHOO_ID . '&m=g&t=4" border="0" alt="Yahoo Messenger"></a>'

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- messaging_eof //-->

Posted

Thanks Mark. Does this look correct? I have to do this on my live shop as ssl is not available on my local install.

 

if ($request_type !== 'NONSSL') {

include(DIR_WS_BOXES . 'yahoo.php');

}

 

Thanks

Tom

 

catalog_left.php

 

// require(DIR_WS_BOXES . 'search.php');

require(DIR_WS_BOXES . 'ssl.php');

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

echo tep_cache_categories_box();

} else {

include(DIR_WS_BOXES . 'categories.php');

}

 

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

echo tep_cache_manufacturers_box();

} else {

include(DIR_WS_BOXES . 'manufacturers.php');

}

 

require(DIR_WS_BOXES . 'whats_new.php');

 

 

if ($request_type !== 'NONSSL') {

include(DIR_WS_BOXES . 'yahoo.php');

}

 

 

include(DIR_WS_BOXES . 'cc.php');

define('YAHOO_BOX_HEADING_MESSAGING', 'Y! Instant Message');

 

?>

Posted

Thanks, You are correct.

 

if ($request_type !== 'SSL') {

include(DIR_WS_BOXES . 'yahoo.php');

}

 

This worked.

Tom

Posted

Great news :thumbsup: ...I was too slow with my other reply . :blink:

 

Thanks, You are correct.

 

if ($request_type !== 'SSL') {

include(DIR_WS_BOXES . 'yahoo.php');

}

 

This worked.

Tom

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...