Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-12-28 10:39:00

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_addthis not working

i think i may have found it…there seems to have been an odd commenting out issue with safari that i wasn’t aware of.

try v0.3 if you wish

Offline

#14 2007-12-28 10:55:45

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

Sorry man…it works still with FF and Camino. Safari and Opera == no! Tried v3.

Offline

#15 2007-12-28 11:02:21

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_addthis not working

i just double checked and reinstalled v0.3 onto nineorchids.com and can see the dropdown effect in safari (albeit this is on windows XP) and opera 9.24 (also on windows). very odd that you can see it in your safari (assuming on mac) but the plugin doesn’t work on your own site..theres got to be something else blocking it then but i’m not sure exactly what it would be (i have no mac and thus no way to test it…grr)

Offline

#16 2007-12-28 11:39:39

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

I can see the output in the page, so you are right, must be something blocking it in Safari/Opera on Mac.

<div class="socialwrap"><script type="text/javascript"><!--
	addthis_url='http://www.mydomain.com'; addthis_title='the title'; addthis_pub='user'; //--> </script><script src="http://s7.addthis.com/js/addthis_widget.php?v=12" type="text/javascript"></script></div>

I have mootools and Slimbox on that page. I will try turning it off to see if that is what is blocking it.

Edit: Turned off mootools and slimbox, no change. Its not me then ;-)

Last edited by jstubbs (2007-12-28 11:41:59)

Offline

#17 2007-12-29 17:16:31

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

Did some more testing. I did get to see the addthis.com widget once, when I used just the <txp:lam_addthis /> tag. Odd. Now it disappeared again. I will try the direct code form addthis.com and see if it works.

Edit: Direct code does not work, so I tested the plugin on another site but it did not work there either.

Last edited by jstubbs (2007-12-29 17:28:23)

Offline

#18 2007-12-29 17:39:44

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_addthis not working

if the direct code from addthis.com doesnt work for you then i’m afraid the plugin won’t either (since all it does is output their code pretty much verbatim). there definitely has to be something else wrong. no idea why that would be the case since you can see it working at the example site i have. if you’d like, i can give you a temp account there and you can see and peak around at what could possibly be different from your setup?

Last edited by iblastoff (2007-12-29 17:45:04)

Offline

#19 2007-12-29 17:53:20

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

The only thing that can be different is the tag usage – why don’t you give me that, just blank out the user? And are you using v3 on that site?

Offline

#20 2007-12-29 17:58:45

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_addthis not working

sure thing. this is the exact tag in use right now <txp:lam_addthis user="her_username" type="bookmark" />

its placed in the default article form which looks like this in its entirety:

<div class="article">
	<h3><txp:permlink><txp:title /></txp:permlink></h3>
	<p class="info"><txp:posted /></p>
	<txp:body />

	<txp:lam_addthis user="her_username" type="bookmark" />

	<p class="info"><txp:comments_invite showcount="1" textonly="0" /></p>
</div>

and yep using v0.3

Last edited by iblastoff (2007-12-29 17:59:36)

Offline

#21 2007-12-29 18:14:24

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

Weird. Did not work.

Edit: Its working! BUT, I get this error below. Notice that the wrap attribute is set, and in your plugin help it says the attribute is called “wraptag”. It does NOT work with wraptag. So there may be something in your plugin.

I did go to addthis.com and clicked reset on the Preferences > My Bookmarks. But it does not work with “wraptag” as an attribute.

Tag error: <txp:lam_addthis user=“username” type=“bookmark” wrap=“div” class=“socialwrap” /> -> Textpattern Notice: Unknown tag attribute: wrap on line 605

Offline

#22 2007-12-29 18:24:51

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_addthis not working

there is no ‘wrap’ attribute. it should be ‘wraptag’. if you leave wraptag out then by default it will be wrapped by a ‘div’ anyway.

just to test i added wraptag="div" and even a class="test" to the example site and it worked fine..

(so now the whole tag looks like this: <txp:lam_addthis user="bumblesea" type="bookmark" wraptag="div" class="test" />)

this is the code it output:

<div class="test"><script type="text/javascript"><!--
	addthis_url='http://nineorchids.com/index.php?s=blog&t=esque-glass'; addthis_title='esque glass'; addthis_pub='bumblesea'; //--> </script><script src="http://s7.addthis.com/js/addthis_widget.php?v=12" type="text/javascript"></script></div>

and the widget loads fine for me in FF, Safari (on XP), Opera 9+.

Last edited by iblastoff (2007-12-29 18:30:07)

Offline

#23 2007-12-29 18:28:09

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

Right. But with the attribute set to wraptag=“div” it does not work – it does with wrap=“div”. The errors are displayed because the site is set to “Testing”.

Offline

#24 2007-12-29 18:30:31

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: lam_addthis not working

Just double-checked:

This does not work:

<txp:lam_addthis user="user" type="bookmark" wraptag="div" class="socialwrap" />

This does:

<txp:lam_addthis user="user" type="bookmark" wrap="div" class="socialwrap" />

Offline

Board footer

Powered by FluxBB