Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: pat-article-social
Destry wrote #291598:
the article must be “Live” to see the rendered tweets
Can you post-date the article, even by a few minutes? At least it won’t necessarily be “live” for the rest of the world to see.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: pat-article-social
I did not think of that time and space warping slight of hand. Thanks, Steph. I’ll keep that in mind.
Offline
Re: pat-article-social
Oh sorry guys I was IRL (out there).
First. Yeah! just use <txp:twttr status="" markup="" />
where: status
is required (to store the link of a tweet given by Twitter); markup
is optional (choice among object
or iframe
for the tag that embed the Tweet. Default: object
).
Second. Yeah! just be sure the /root/cache
directory is present (the plugin did’nt create it for you) and set it into the preferences panel into the “cache directory” field.
Third. Yeah! only “Live” article shows the social links.
Last edited by Pat64 (2015-06-18 07:48:30)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat-article-social
Thanks, Patrick.
As much as I love the small tag your plugin provides, versus the larger blockquote
complex you get from a regular Tweet embed, the height handling won’t work for me.
The problem is that some tweets are single tweets, while others are embed conversations (seemingly tied to initial tweets that I can’t separate) which need greater embed heights to work. By using the native blockquote
embeds, the height for each embed is auto-calculated. With your plugin it’s one height for all, which either ends up with big spaces after single tweets if you target conversation heights, or scrolling boxes on conversation embeds if you target single tweets.
Is there any way your tag can use the embed code that Twitter provides so you get the right heights each time? I don’t know if that’s possible, but just tossing it out there.
In the meantime, I’ll have to use the native tweet embeds. :/
Offline
Re: pat-article-social
Sure!
That’s exactly what I’m working on ;)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat-article-social
Sorry guys ;)
Only for Destry (new version 0.5.1 available soon): https://github.com/cara-tm/pat_article_social/commit/9c15e4a55d53d18d4a023436eb38385802d204b4
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat-article-social
Latest v 0.5.1: allow embedded tweets into articles bodies from Twitter © json services (with medias support and adapted height for all tweets):
https://github.com/cara-tm/pat_article_social/blob/master/pat_article_social_v0.5.1_zip.txt
Plugin help will be updated soon. But you can try this new feature now with this simple and short line (a tweet from the best french TXP community of users ;) :
<txp:twttr status="601628600098488320" />
Or this one from @TweetDev with medias in it:
<txp:twttr status="611392725582098432" />
Plugin help page: https://github.com/cara-tm/pat_article_social
You can read the commits for more informations (before plugin help update) : https://github.com/cara-tm/pat_article_social/commits/master
Last edited by Pat64 (2015-06-27 11:43:30)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: pat-article-social
Well, three years later and I’ve had a change of heart about social media.
I’ve removed this plugin, and the /root/cache directory (or at least I don’t see it anymore, so I must have removed it), but I still have this preference field in the Admin panel:
pat_article_social_dir : /root/cache
How should I get that out of there?
Offline
Re: pat-article-social
Destry wrote #312486:
I still have this preference field in the Admin panel:
pat_article_social_dir :
/root/cache
How should I get that out of there?
If you’ve absolutely deleted the plugin (not just disabled), you might still have the prefs entry in your txp_prefs
table. Have a look in the database in the table txp_prefs
for prefs beginning with pat_article_social
and remove that.
TXP Builders – finely-crafted code, design and txp
Offline
Re: pat-article-social
jakob wrote #312489:
you might still have the prefs entry in your
txp_prefs
table
That was is. Thanks.
Surprised to find dozens of records in there from old plugins long gone. I guess they’re derelict and can remain?
I was consufed by these three:
- blog_uid
- blog_time_uid
- blog_mail_uid
The blog_time_uid
had a value of 2005. The original website wasn’t even created until 2011, so I’m confused about that. And the blog_mail_uid
had an email from someone from 2011. Were those old Txp fields that are since obsolete?
Offline
Re: pat-article-social
Yes, not all plugins clear up properly after them (though pat_article_social should have). Some also don’t delete their stuff deliberately in case you wish to resurrect it again or to avoid accidental deletion of vital content (glz_custom_fields is a case in point).
blog_uid …
They are part of Textpattern: here’s a page from Textpattern solutions detailing them. And they are still in the core. I think they appear in the rss/atom feed headers.
TXP Builders – finely-crafted code, design and txp
Offline