1
Moonrakre
Send link to a friend
  • 2010/6/23 11:25

  • Moonrakre

  • Just popping in

  • Posts: 30

  • Since: 2005/12/6


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


Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits