I would like to find either a wordpress plugin, HTML, javascript, etc. code that would allow me to insert a box at the bottom of my post that would give the users the HTML code to link to the post they were reading, including the title of the post as the anchor text. Anyone aware of where I could find these? I have seen similar embed code used at beemp3 dot com on their songs pages if you need an example.
<?php function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } ?> PHP: Use <?php echo curPageURL(); ?> when needed.
Thanks BigOne. I'm not so familiar with PHP... what theme file should I put the big chunk of this code in? I'm guessing I put the "when needed" part in each post I want that code listed?