Change the from email address to the person sending the mail
Line 184 of phpcode.php change this:
$headers = 'From: '.($website_name ? $website_name : $parts['host']).' <'.$email_address.'>' . "\r\n";
to this:
$headers = 'From: '.preg_replace('#\r|\n#','',$_REQUEST['your_name']).' <'.preg_replace('#\r|\n#','',$_REQUEST['your_email']).'>' . "\r\n";
note: this will most likely cause all “send to friend” emails to be received as spam. because you are sending an email from another persons email address which isn’t linked to your hosting account.
Lightbox isn’t working (it takes me to a new page)
The easiest way to fix your lightbox issue is to add this extra jquery tag just before the send to friend tag:
<script src="send_to_friend/sendfiles/gb/jquery-latest.js" type="text/javascript"></script>
So your page should look something like this:
<script type="text/javascript" src="send_to_friend/sendfiles/gb/jquery-latest.js"></script>
<script language="javascript" src="send_to_friend/popup.php?js" type="text/javascript"></script>
make the overlay automatically change its height whenever user scrolls up or down in a page?
$.getDocHeight = function(){
return Math.max(
$(document).height(),
$(window).height(),
/* For opera: */
document.documentElement.clientHeight
);
};
$("#GB_overlay").css({width:w+"px",height:$.getDocHeight()+"px"});


528 Purchases
107 Comments