Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
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
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
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
Re: lam_addthis not working
just to test, can you still see it working at nineorchid.com? (using safari for mac or whatever)
even if you leave the ‘wraptag’ attribute out, the plugin STILL actually uses the default value of wraptag="div" anyway. this is very odd..
also what i still dont understand is how the direct code from addthis.com doesn’t work for you but somehow the plugin using weird attributes does? hmm
ps. sorry to put you through such grief! this very small plugin seems to be causing bigger issues than it should!
Last edited by iblastoff (2007-12-29 18:40:31)
Offline
Re: lam_addthis not working
Yes, I see nineorchids fine on Safari/Mac. Like I said earlier, I did reset the preferences at addthis.com, but I don’t know if that made any difference. It should not affect the wraptag attribute.
I feel bad for you as well – its perplexing!
Offline
Re: lam_addthis not working
jstubbs – maybe there are some else javascripts onyour page that can conflict with Steve’s plugin?
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: lam_addthis not working
he mentioned that he had some other js frameworks but disabled them and still no dice…
i wonder if anyone else has got this working? maybe i’m just going crazy.
Offline
Re: lam_addthis not working
There are no library JS frameworks on that page. There is on other pages, but not the pages that display the addthis.com widget. I reckon its an error in the addthis.com code, but who knows. All I know is it works now, even with the TXP error, and that will go away when I set the site to Live after finishing it!
PS. Steve, hope you did not lose all your hair like your avatar! Who is that anyway?
Offline
Re: lam_addthis not working
jonathan i hate to leave you with a lingering error but i really have no idea why its causing issues on your site. very odd.
as for the avatar its larry david! star of curb your enthusiasm and co-creator of the seinfeld show!
Offline