kallensource
Forum Replies Created
-
I had to edit my theme and the sharedaddy code to get it working on all pages regardless of an excerpt.
And it was working, but now it’s only kind of working. Only a couple buttons are showing and it’s no longer counting the number of Tweets.
Forum: Plugins
In reply to: sharedaddy share buttons not appearingThat worked! Now, if I could just get the sharing display to display properly. Sometimes it shows all the buttons and sometimes it doesn’t. It seems to be rather random when it does this. Sometimes the label “Share This:” doesn’t even show up. So, I’m thinking there’s still some bugs to be worked out with this module.
I’ve done some simple debugging and discovered that the problem is likely to do with how the static array
shared_with_posts
is setup in thesharing_display()
function in the sharing-services.php file. For all pages and posts without custom excerpts, the call toisset()
onshared_with_posts
for the post’s ID is returning True when it should be returning False. Additionally, for a reason I’ve yet to track down, the functionsharing_display()
is getting called twice — well, it’s getting called twice when there is no custom excerpt. I don’t know how many times it’s getting called on posts with excerpts as my simpleecho
debugs are not showing up whenever the post has a custom excerpt and the sharing section is displayed.Cross-posted from another post on the subject in hopes that someone will solve this.
Forum: Plugins
In reply to: sharedaddy share buttons not appearingYeah. It’s not working like I dream for me because I actually USE the post excerpts whether they’re custom or not. Also, going through each post is rather tedious. I’ve tried making minor edits to the post and then updating without changing the blank excerpt to see if that helps and nothing changes.
I’ve done some simple debugging and discovered that the problem is likely to do with how the static array
shared_with_posts
is setup in thesharing_display()
function in the sharing-services.php file. For all pages and posts without custom excerpts, the call toisset()
onshared_with_posts
for the post’s ID is returning True when it should be returning False. Additionally, for a reason I’ve yet to track down, the functionsharing_display()
is getting called twice — well, it’s getting called twice when there is no custom excerpt. I don’t know how many times it’s getting called on posts with excerpts as my simpleecho
debugs are not showing up whenever the post has a custom excerpt and the sharing section is displayed.BTW, I’m cross-posting this to my Bug post for Jetpack as that’s how I’m using the Sharedaddy plugin.
D’oh. It’s because Sharedaddy only works on posts with custom excerpts. So, I have it in on some pages, but not on others. Hopefully this is fixed in the future.
Sharedaddy is not working on my site either.
1) replace line 97 with this:
$msg = preg_replace('/#([\w\pL-.,:??>]+)/iu', '<a href="https://twitter.com/#!/search/\1" class="twitter-link">#\1</a>', $msg);
2) Dump your site’s cache if you have one
3) Dump your browser’s cache
4) RefreshThis fixed it for me.