News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

page name in sharing

Started by BaghdadGhost, February 04, 2012, 07:16:02 PM

Previous topic - Next topic

BaghdadGhost

Hi all,


I am trying to use http://share.I'm a spammer.com/ plugin in my smf 2.0.2

I know there are many mods here but I like this one as it is easy to use, does not slow load of a page, come in all languages and have the chance to chose from many social sites.

I have this code


echo'

<!-- I'm a spammer Share BEGIN -->
<div class="a2a_kit a2a_default_style">
<a class="a2a_dd" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fahalna.com&amp;linkname=">شارك و ارسل</a>
<span class="a2a_divider"></span>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_yahoo_mail"></a>
<a class="a2a_button_google_gmail"></a>
<a class="a2a_button_email"></a>
<a class="a2a_button_yahoo_messenger"></a>
</div>
<script type="text/javascript">
var a2a_config = a2a_config || {};
a2a_config.linkurl = "http://ahalna.com";
a2a_config.locale = "ar";
</script>
<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
<!-- I'm a spammer Share END -->
';


after "// Custom banners and shoutboxes should be placed here,"

the only problem is that when I am using any of the chosen social sites it always share the home page!

I went to the steps of generating the code and noticed that I provided my home page as the page url for the code as it was recommended. what should I replace this with in order to make it pick the current page tittle and url when used?


thanks

edit: for some reason the topic changing the referred site. I am going to spell it for you. it is share(.)l-o-c-k-e-r-z(.)com

BaghdadGhost

sorry for posting in the wrong place.

thanks Illori for moving it.

BaghdadGhost

#2
this one was solved with the following code


echo'

<!-- I'm a spammer Share BEGIN -->
<div class="a2a_kit a2a_default_style">
<a class="a2a_dd" href="http://www.addtoany.com/share_save">شارك و ارسل</a>
<span class="a2a_divider"></span>
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_yahoo_mail"></a>
<a class="a2a_button_google_gmail"></a>
<a class="a2a_button_email"></a>
<a class="a2a_button_yahoo_messenger"></a>
</div>
<script type="text/javascript">
var a2a_config = a2a_config || {};
a2a_config.locale = "ar";
</script>
<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
<!-- I'm a spammer Share END -->
';


solved

Advertisement: