I couldn’t get #_EVENTURL to work, so here is another way to do it.
Sign up for addthis.com (it takes 3 minutes). Pick what style you want. Copy and pasting this code will not work, because you need to get your own addthis code.
This is the code to get the url that is displaying. Make sure this is used in a php file (not in the event manager single event box. I put it in my header.php
<?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;
}
?>
Use this code where you need to show the page url
<?php echo curPageURL();?>
In the addthis site it will give extra options where you can add a specific url and will look something like this: (you’ll notice I this <?php echo curPageURL();?> in place of the url)
<div class="addthis_toolbox addthis_default_style " addthis:url="<?php echo curPageURL();?>">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
<script type="text/javascript" src="your personalized addthis account will be here"></script>
The finished product will look something like this:
[Code moderated as per the Forum Rules. Please use the pastebin]
Remember to put this code in a php file, it won’t read the php script in the event manager settings. Good luck.