AddThis Social Bookmarking

Started by Marook, January 22, 2008, 10:38:21 PM

Previous topic - Next topic

Marook


addthis_pub    = ''   <-- enter your addthis account name
SMF Rulez ;) | Meet me home ! | My Mods

Spamiam


Marook

Depends on where it should appear.... display.template.php is a good place
SMF Rulez ;) | Meet me home ! | My Mods

Neorics

this is cool, thanks for sharing!
[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Marook

SMF Rulez ;) | Meet me home ! | My Mods

estepp

Do you know how I can change the widget button from "Bookmark" to "Share"?

I already have the Bookmarks mod for internal user bookmarks, and I don't want to confuse my users.

Thanks.
Ceci n'est pas une signature.

Come visit FORUM: Lucidity [nofollow] for discussions on world events, politics, economics, and society in general.

Marook

its not possible to change the caption of the button because its given by the addthis-javascript file...
SMF Rulez ;) | Meet me home ! | My Mods

estepp

Quote from: Marook on April 17, 2008, 03:20:12 PM
its not possible to change the caption of the button because its given by the addthis-javascript file...

Ok, thanks.

One more question... I have an account now at AddThis. Is there any way to use the code for the buttons that they generate from their wizard?

For example, I was given this code to add to my site:


<!-- AddThis Button BEGIN -->
<script type="text/javascript">addthis_pub  = 'ericstepp';</script>
<a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')"
onmouseout="addthis_close()" onclick="return addthis_sendto()">
<img src="http://s9.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="" />
</a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- AddThis Button END -->


But, I keep getting parser errors when I replace the mod code with the above.
Ceci n'est pas une signature.

Come visit FORUM: Lucidity [nofollow] for discussions on world events, politics, economics, and society in general.

Marook

#28
you have to escape the ' signs... like this

from this :

<script type="text/javascript">addthis_pub  = 'ericstepp';</script>


to this....


<script type="text/javascript">addthis_pub  = \'ericstepp\';</script>


You see ' is replaced with \'
you have to replace all other ' signs too...

How is ' called in english ?? hmmm......[/code]
SMF Rulez ;) | Meet me home ! | My Mods

Basie


estepp

#30
Quote from: Marook on April 17, 2008, 04:11:19 PM
you have to escape the ' signs... like this

from this :

<script type="text/javascript">addthis_pub  = 'ericstepp';</script>


to this....


<script type="text/javascript">addthis_pub  = \'ericstepp\';</script>


You see ' is replaced with \'
you have to replace all other ' signs too...

Awesome, thanks. I'll give that a shot.  It worked a charm.

Quote from: Marook on April 17, 2008, 04:11:19 PM
How is ' called in english ?? hmmm......

An apostrophe if it is part of a contraction, grammatically.

I think in this instance, they're called "single quotes".
Ceci n'est pas une signature.

Come visit FORUM: Lucidity [nofollow] for discussions on world events, politics, economics, and society in general.

Cyberm@rmotte

#31
Hey Marook,
I can't make this mod work on my forum. Can you help me please? The button is not showing; I tried all possibilities in the code. Manually, by the copy/paste code.
Thanks to help. My forum link is in the signature.

http://www.electroflash.fr/forum-siteperso [nofollow]


EDIT: Pbm fixed !!!

neil h


Marook

yeah "anywhere you like" means "anywhere you like" ;)
SMF Rulez ;) | Meet me home ! | My Mods

neil h

Quote from: Marook on May 20, 2008, 03:33:28 PM
yeah "anywhere you like" means "anywhere you like" ;)

OK, i'll add it to firefox...

shegeeks

Hi Marook,

We are having a lot of problems getting this mod to work. We've tried adding it via the instructions here as well as using the manual install instructions for 1.1.5 from the mod site. It's still not showing up in our forum.  I used the nopaste that you listed in a previous post-but am not sure what to do with that now. Any help would be appreciated.
Thanks :)
the difference is in the hyphen
http://www.she-geeks.com [nofollow]

Marook

Its the same code as your Add-This widget under your donation button. Just copy it anywhere you want...
SMF Rulez ;) | Meet me home ! | My Mods

shegeeks

Quote from: Marook on June 05, 2008, 07:41:58 AM
Its the same code as your Add-This widget under your donation button. Just copy it anywhere you want...

Yes we have tried that, as well as trying the code you've provided. Believe me I have surely noticed how many times you have already said that in this thread. It sounds so easy and yet, it doesn't show up in our forum. We are using the absado theme- don't know if that makes a difference or not.
the difference is in the hyphen
http://www.she-geeks.com [nofollow]

Marook

ok that sounds funny...i will do that for you, please send me your theme and tell me where you want to appear the widget... and believe me, its soooo easy ;)
SMF Rulez ;) | Meet me home ! | My Mods

shegeeks

#39
Quote from: Marook on June 05, 2008, 03:10:57 PM
ok that sounds funny...i will do that for you, please send me your theme and tell me where you want to appear the widget... and believe me, its soooo easy ;)

That is so nice of you, you're a gem! :)

We would like it to appear above the <<previous next>> links.

Thanks again!
Jewels
the difference is in the hyphen
http://www.she-geeks.com [nofollow]

Advertisement: