1
I want to put a "send this page to a friend" link in either content or a block (i.e. I want to know how to do it in both!).
In another CMS I do this by having an include statement that calls this php file:
<?php
$host = $_SERVER['HTTP_HOST'];
$self = $_SERVER['PHP_SELF'];
$query = !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : null;
$url = !empty($query) ? "http://$host$self?$query" : "http://$host$self";
$msout = "<a href="mailto:please enter an email address?subject=I think you will find this website interesting";
$msout .= "&body=Click this link to visit the webpage I have selected for you:%0D%0A";
$msout .= $url;
$msout .= "%0D%0A">Send this page to a friend</a>";
print $msout;
?>
But I can't get this to work in Xoops. If I put the code in raw then the editors remove the php markers and I can't get either php include statement nor the HTML include statements to work.
Does anyone know how I might add a send this page link please?
Best wishes
Adrian