Julka Grodel
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Follow Buttons Plugin – AddThis] PHP code instead of shortcode?Hi Jeeni.
Thanks for the kind words!
You can use a shortcode in PHP with the do_shortcode() function.
Another option is the the_widget() function. They’re about the same. Our widget documentation has examples of how to use the_widget() in PHP.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Share Buttons Plugin – AddThis] Addthis config page emptyHi Joel & Carla.
Moments ago I released Follow Buttons by AddThis v. 2.0.2 and Website Tools by AddThis v 1.1.1, both of which now do more error handling around the locale variable.
As noted before, there are a lot of JavaScript variables like that in this plugin that it relies on to function that would define locale, so I expect there to continue to be issues in environments like this.
Thanks,
JulkaHi Carla.
Just an FYI: Moments ago I released v. 2.0.2, which switches over to checking for
activate_pluginspermissions instead ofinstall_plugins.Thanks,
JulkaForum: Plugins
In reply to: [WordPress Website Tools Plugin – AddThis] Infinite scrollI’m glad to hear you found a solution!
Hi Geminorum.
The fixes for these notices went out moments ago with version 1.1.1.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Share Buttons Plugin – AddThis] .It was still a valid issue 🙂
A fix for this was released moments ago with version 5.3.3.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Follow Buttons Plugin – AddThis] Icons missingHi Jory.
Thanks for letting us know about your issue.
Is there a page I could look at to see this happening? I’d you’d like to share privately, please feel free to reach out to us at help@addthis.com.
Thanks,
JulkaForum: Reviews
In reply to: [WordPress Share Buttons Plugin – AddThis] Great plugin.Thank you for the suggestion, and the review, Augustine!
Forum: Plugins
In reply to: [WordPress Share Buttons Plugin – AddThis] Addthis AdminHello Pilonpt.
Thanks for letting us know about your issue.
Did someone send you a link to them? Those URLs don’t exist with the Share Buttons by AddThis plugin.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Website Tools Plugin – AddThis] Infinite scrollHi Akira28.
I can’t be sure of what’s causing this without a copy of the theme, but, here’s what I’ve found.
Your theme is making AJAX calls to
http://gaming.softonic.com/wp-admin/admin-ajax.phpwith POST params such asaction=thb_infinite_ajax&post_id=2265Those are returning HTML, but that HTML doesn’t have the marker we’re using to know where to insert the share tools. Specifically, here, I’d want to see a DIV with the class
at-below-post.The content that loads with the very first entry has that DIV at the bottom and that’s why it’s working there.We add some HTML comments in as well to troubleshoot issues like this. It’s interesting that the first entry has comments like
<!-- AddThis Sharing Buttons above via filter on the_content -->and<!-- AddThis Sharing Buttons below via filter on the_content -->, as well as<!-- AddThis Sharing Buttons generic via filter on the_content -->. The later content loaded via AJAX has<!-- AddThis Sharing Buttons generic via filter on the_content -->but not the other two. It’s the same with the Recommended Content comments.I suspect that our plugin can’t identify the context it’s running in during these AJAX calls. It tries to determine whether it’s being added to a homepage, archive URL, category URL, a single post URL or a single page URL. It relies on the global $post being populated for this, and on in these context it would need is_single() to return true, as well.
My second guess (contraindicated by the Recommended Content comments behaving the same way above, as their filters run later) would be that after the above and below content filters run your theme runs a filter that’s removing all HTML off the results from the_content()(thus removing the above/below comments and the DIV with the
at-below-postclass).There’s a couple things you can try here.
-
Since
<!-- AddThis Sharing Buttons generic via filter on the_content -->is being added to these additional pieces, I believe shortcodes will work on that content (shortcode documentation). With the AJAX support enabled, I think that’ll add the sharing buttons onto the later loaded articles. However, that shortcode will need to be added manually to the bottom of every post. (FYI The shortcode won’t add the DIV with theat-below-postclass, but a similar one.) - You can add these tools into the template being generated for your AJAX requests using our widgets, specifically the AddThisSharingButtonsSquareWidgets (widget documentation).
-
If the problem is that our plugin does not have the context of what kind of page it’s on, you can hook into our filters with a little bit of custom PHP and override that for that AJAX endpoint before calling the_content(). I’m thinking specifically of the filter named
addthis_sharing_buttons_below_tool. I think you’d want it to returnat-below-post(assuming it’s only used for posts and not pages). -
If the problem is the theme stripping our HTML, you can hook into our filters with a little bit of custom PHP and make them run later (ideally after your theme’s filter runs and removes HTML on the_content). I’m thinking specifically of the filter named
addthis_sharing_buttons_content_filter_priority. There’s a *_filter_priority section in our filter documentation that explains these filters. Also see the example specifically usingaddthis_recommended_content_content_filter_priority. To make our filters run later, you’d make the number they return higher. - If the problem is the theme stripping our HTML, change the theme to not strip out HTML from the_content().
If you can get one of the above working to add the needed DIV onto the AJAX loaded content, then the AJAX support option should take care of the rest.
Let me know if you run into any issues.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Website Tools Plugin – AddThis] Infinite scrollHi Akira28.
Thanks for letting us know about your issue.
On the Advanced Settings page for this plugin, in the Loading Options section, there’s a checkbox for AJAX Support (Experimental). Have you tried that? Did it work? Did it break anything?
Thanks,
JulkaHi Aranger.
Lots of things in custom templates can cause issues. I mentioned the filters we use above. Those are the biggest ones. If you’re doing something special with excerpts, then our tools may not appear on excerpts, but that wouldn’t effect the_content().
Another is when addthis_widge.js isn’t being added onto pages, and that’s usually a problem with the way a template is making its header or footer.
There’s not much for me to say without a URL to look at.
Thanks,
JulkaHi Scott.
Thanks for letting us know about your issue.
It looks like you’re using a custom template for the linked page. Custom templates often skip the proper WordPress ways of retrieving content and that can stop above/below content buttons from being added on.
On that page, I’d expect the page to call the_content() but it doesn’t look like it does. We use filters on the_content, get_the_excerpt, the_excerpt and wp_trim_excerpt to add tools above and below posts and pages. If a theme doesn’t use those to get the text for a post or does something unexpected with it after (like shortening it, removing HTML, or escaping HTML) our above/below tools aren’t going to work. There’s no way around this.
However, it seems like that template is doing enough right that the sharing sidebar will work on those pages (it’s currently disabled). The mobile sharing sidebar is already working on them.
Thanks,
JulkaHi Aranger.
Thanks for letting us know about your issue. Would you mind sharing a URL with us that isn’t behaving as you expected? If you’d rather share privately, please feel free to email us at help@addthis.com.
Thanks,
JulkaForum: Plugins
In reply to: [WordPress Follow Buttons Plugin – AddThis] Not working on ChromeHi Tristan.
Thanks for letting us know about your issue.
Is there a URL I could look at to see the issue? If you’d prefer to share privately, feel free to email us at help@addthis.com.
Thanks,
Julka -
Since