Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2015-06-17 11:32:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,271
Website GitHub

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

#26 2015-06-17 11:35:48

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

#27 2015-06-17 16:34:20

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#28 2015-06-20 14:54:23

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

#29 2015-06-21 10:00:09

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#30 2015-06-23 12:04:19

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#31 2015-06-27 11:09:54

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#32 2018-06-10 01:54:37

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

#33 2018-06-10 09:03:43

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

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

#34 2018-06-10 10:05:06

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

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

#35 2018-06-10 11:06:15

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,596
Website

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

Board footer

Powered by FluxBB