Neat little mod, and hopefully will get a lot of traffic to our sites!!! But alas, I too had the missing URL problem!
I found out why my URL wasn't showing up, in the recform.php I downloaded, the "php" was missing after the ? in the following lines.
<? $refurl = $_SERVER['HTTP_REFERER']; ?>
<? print $refurl;?>
Adding it made the URL appear like magic.
<?php $refurl = $_SERVER['HTTP_REFERER']; ?>
<?php print $refurl;?>
Now, what I *really* would be interested in seeing is:
(A) instead of the ugly URL showing, the title of the story.
(B) A stop at the age warning -- or at the least some type of warning before arriving at hot smut.
(C) Possibly an expanded email to the friend, with stuff like summary, characters, word count, etc.
But again, wow! Great job. Didn't know I was missing it until I saw it!
Kevin
efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/
Sadly that didn't help the form send info to me. I don't know if it's just because I am sending it to myself or something else. Neither the notification or the regular mail has a url. π
Current Version: 3.4.2
PHP 4
Mods: Challenges, Recommendations, Storyend, Display Word, Beta Reader, Bad Reviewer
For those having trouble with the mod, I used javascript to do this, I've had it on my site for a while. Mind you I still run ver 1.1, because I have modded it with features the upgraded still don't have, anyway here's the script:
<script language="javascript">
function mailpage()
{
mail_str = "mailto:?subject=Check out the " + document.title;
mail_str += "&body=I thought you might be interested in reading this fic at " + document.title;
mail_str += ". You can view it at, " + location.href;
location.href = mail_str;
}
</script>
I added this coding at the top of the 'viewstory.tpl' *again I run ver 1.1, I don't know if this file is still in the newer version of eFiction*
Then further down on the 'viewstory.tpl' where I wanted the link to be I posted this code:
[<a href=""javascript:mailpage()">Email" to a Friend</a>]
I put it after {printicon}
You can see it in action here:
http://www.thehookupzone.net/SpuffyRealm/viewstory.php?sid=29645&i=1
Pari