I have a matching/dating site that sends these "Virtual Kisses" to the member?s personal email. I want to change it so the "Virtual Kiss" just goes to the member?s internal inbox not to their personal email. Does anyone know how to change this script to do this?
<?
if($profile_id hahahaha "")
{
include "templates/index.ihtml";
return;
}
$f_profile = f(q("SELECT id, name, status FROM dt_profile WHERE member_id='$fMember[id]'"));
$f_target_profile = f(q("SELECT member_id FROM dt_profile WHERE id='$profile_id'"));
$f_target_member = f(q("SELECT email FROM dt_members WHERE id='$f_target_profile[member_id]'"));
if($f_profile[ status ] != 1)
{
include "templates/vkiss_failed.ihtml";
}
else
{
$profile_name = $f_profile[ name ];
$profile_link = $root_host."index.php?page=view_profile&id=$f_prof ile[id]";
$profile_free_text = "";
$gm = f(q("select id from dt_members where member_id='$fMember[id]' and system_status='1' and system_status_end>='".strtotime(date("d M Y H:i:s"))."'"));
if($gm != "")
{
$profile_free_text = "You can contact this user for free!";
}
mailSend($user_info["email"], "virtual_kiss");
include "templates/vkiss_success.ihtml";
}
?>
<?
if($profile_id hahahaha "")
{
include "templates/index.ihtml";
return;
}
$f_profile = f(q("SELECT id, name, status FROM dt_profile WHERE member_id='$fMember[id]'"));
$f_target_profile = f(q("SELECT member_id FROM dt_profile WHERE id='$profile_id'"));
$f_target_member = f(q("SELECT email FROM dt_members WHERE id='$f_target_profile[member_id]'"));
if($f_profile[ status ] != 1)
{
include "templates/vkiss_failed.ihtml";
}
else
{
$profile_name = $f_profile[ name ];
$profile_link = $root_host."index.php?page=view_profile&id=$f_prof ile[id]";
$profile_free_text = "";
$gm = f(q("select id from dt_members where member_id='$fMember[id]' and system_status='1' and system_status_end>='".strtotime(date("d M Y H:i:s"))."'"));
if($gm != "")
{
$profile_free_text = "You can contact this user for free!";
}
mailSend($user_info["email"], "virtual_kiss");
include "templates/vkiss_success.ihtml";
}
?>

Comment