
Originally Posted by
DivaVocals
Ha!! thanks Rus.. this worked!!!

Well that was quick.. I cry uncle..

HELP!!!!!
in admin/includes/configure.php zen cart has this as a comment:
Code:
/**
* WE RECOMMEND THAT YOU USE SSL PROTECTION FOR YOUR ENTIRE ADMIN:
* To do that, make sure you use a "https:" URL for BOTH the HTTP_SERVER and HTTPS_SERVER entries:
*/
now if you do what they suggest (which I did) it means anything that references those variables is going to use the secure prefix. What I suggest is to just fix it on the front side and not only for the same reasons as the target fix we just added, but because we should feed the link to the user with whatever the current prefix is at that time...the time of viewing. The user may have come out of a secure section or the owner is feeding his whole site through ssl, who knows. So my suggestion is to add, right after the last line we just added:
Code:
$events->fields['ZC_link'] = preg_replace("/(\s*target\s*=\s*('|\")?\s*_blank\s*('|\")?)\s*/i","",$events->fields['ZC_link']); //**rus:add
$events->fields['ZC_link'] = preg_replace("#https?://#i",(isset($_SERVER['HTTPS']) ? "https://" : "http://"),$events->fields['ZC_link']); //**rus:add
$event_array = array('id' => $events->fields['event_id'],
Also, after looking at that additional link again I noticed that they didn't close the link there, so:
Code:
<tr> <!-- event Additonal Link row -->
<td class="event_heading" nowrap="nowrap">
<strong><?php echo TEXT_EVENT_LINK;?></strong></td>
<td class="event_description"><a href="http://<?php echo $event_array['ADDL_link'];?>" target="_blank">
<?php echo $event_array['ADDL_link'];?></a></td>
Rus