Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2015-03-30 15:51:58

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

Re: pat-article-social

The “text” attribute isn’t attended to store a CSS class but it’s available for the text label before the count (i.e. Total of share).

So, where do you want to put this class (in which tag, this one: <b class="fa fa-share"> </b>)?

Last edited by Pat64 (2015-03-30 16:15:01)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#17 2015-03-31 08:13:56

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: pat-article-social

Pat64 wrote #289579:

The “text” attribute isn’t attended to store a CSS class but it’s available for the text label before the count (i.e. Total of share).

Is it a problem do do that? It works well…

So, where do you want to put this class (in which tag, this one: <b class="fa fa-share"> </b>)?

It’s <i class="fa fa-share"> </i>, and I put it in txp:pat_article_social_sum as said before. No problem for me about that.

The only problem for me is to hide the colon (See my previous post).

Last edited by NicolasGraph (2015-03-31 08:18:30)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#18 2015-03-31 09:32:04

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

Re: pat-article-social

Ok.

The colons are shown only if “text” attribute isn’t empty.
The “alternative” attribute is no more followed by a colon (need to add it manually).

https://github.com/cara-tm/pat_article_social/commit/b475d46f5cd1a13b3c7efa423c5c8144beca91f4

I’ll update this 0.4.9 version for the end of the day.


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#19 2015-03-31 11:23:02

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: pat-article-social

Pat64 wrote #289605:

The colons are shown only if “text” attribute isn’t empty.
The “alternative” attribute is no more followed by a colon (need to add it manually).

What is the alternative attribute for? Is it the same as text without the colon?
You are fast, thank you for that, but are these new attributes really needed?


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#20 2015-03-31 14:12:03

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

Re: pat-article-social

Done.
You can download it now: https://github.com/cara-tm/pat_article_social

The “alternative” attribute is a fallback (optional) when no count exist (attached with the “text” attribute – optional, too, i.e.: text=“Total of Shares”), so users can set an alternate texte (i.e.: “Share Now:”).

All these are’nt new ;)

And I’m fast maybe because I’m first user (added in many live projects).


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#21 2015-03-31 14:27:29

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: pat-article-social

Pat64 wrote #289610:

You can download it now: https://github.com/cara-tm/pat_article_social

Thanks!

All these are’nt new ;)

ok, I get out…


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#22 2015-06-17 10:58:33

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

Re: pat-article-social

Hi Patrick,

Just trying this plugin now.

The only thing I’m trying to use at the moment is this tag: <txp:pat_article_social_twttr status="" />, per your Github info.

A couple of questions.

First, instructions say that after installation, go to Preferences and set the “cache” directory /root/cache. My field was already filled with just cache (just like the images directory path), but are you’re saying the directory field needs to be edited as /root/cache?

I also see this in your instructions: “Previews of articles don’t show the renderings of this plugin, voluntarily.” That probably explains why I don’t see the rendered tweets when I use the “View” link while article is in a Draft status. Is that correct? And if so, is there really no way to see the rendered tweets while the article is in Draft status?

Last edited by Destry (2015-06-17 11:01:17)

Offline

#23 2015-06-17 11:06:38

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

Re: pat-article-social

Has that embedded tweet tag I referenced previously been replaced by this one, which is actually in the plugin documentation? …

<txp:twttr status=”“ />

Offline

#24 2015-06-17 11:30:24

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

Re: pat-article-social

I did some testing and can confirm that <txp:twttr status=”“ /> is the correct tag to use (nice, it’s shorter), and the article must be “Live” to see the rendered tweets (unfortunately, but not too big of deal). I can see a test tweet.

The only thing I’m still unclear about is the cache field. I currently have it filled as /root/cache, and a directory “cache” installed in my public root, but that seems odd to me.

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,443
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.

Hire 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,912
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,676
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,912
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,676
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,676
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

Board footer

Powered by FluxBB