Relevanssi WP Search fixed; Twitter Digest Pointing to Larger Twitter API Questions

1. Relevanssi Search

The latest update of Relevanssi, version 3.3.4, seems to have handled the problems mentioned in my “interim report” – so I am using it now on the blog, and searches will now include all comments as well as posts, with the exception of Wall comments. Including the Wall tends to produce results with large numbers of misleading hits. Ideally, and perhaps with not too great difficulty, a separate, narrow search of Wall Comments could be set up, but it’s a low priority for me, especially since I’m always on the verge of dropping the Wall anyway. I’d have some further suggestions for the developer on presenting the plug-in and guiding new users, but I don’t have the time right now for a full improving WP Search with Relevanssi post. Maybe later.

2. Twitter Digest

I now realize that my initial guesses regarding production of truncated links were off (though the unnecessary excursion to Regular Expressions-land was educational). Instead, I’ve discovered a problem that is in some ways much simpler, though not easy for me at my present level of knowledge of the Twitter API and REST functions to solve. (I’m not even sure if I have just correctly stated the nature of the problem!)

I’ll put the problem here in something more like common language, prefatory to writing it up and grabbing examples:

Though I still think there might be some relatively infrequently arising RegEx or other problems in tweet re-formatting, after reviewing the “raw take” from Twitter prior to processing of output, the problem clearly originates there, or rather in the simple way that the Twitter Digest plug-in handles the data.

 In short, in the case of retweets, the Twitter “fetch” provides two “text”‘s associated with user ID Strings. The plug-in takes the first “text” associated with the present user’s ID string. Unfortunately, this text will be in the old “RT” + “@twitterusername” format, meaning that tweets get cut off, sometimes extensively, to fit the 140 character limit. The original retweeted tweet is present in the Twitter data, in full, but is associated with the other (prior, retweeted) user’s ID String.

I will need to know how, in the case of retweets, how to get the second “text” rather than the first, and process it in order with regular tweets.  Most twitter clients and Twitter itself use the second “original tweet” on user timelines unless the user/re-tweeter has actually manually entered “RT @[user-name”]”, or used a modified “quote” format, in order to re-tweet. So clearly it’s a problem that is both solvable and quite commonly solved in Twitter applications.

Though I don’t know how to do this yet, I haven’t given up hope of stumbling across a readymade solution or near-solution somewhere, perhaps in one of the many existing Twitter for WP plug-ins. If I don’t find what I need, I may create a “StackExchange” post on the subject. I am not sure how long it will take me to figure out how to do what I need to do, but this knowledge might eventually be very useful for developing more advanced twitter applications, for instance by utilizing some of the other information that Twitter Digest and similar applications fetch but don’t do anything with – such as full image URLs, user avatars, user background and profile images, data on favorites and retweets, and so on.

 

 


WordPresser
Home Page  Public Email  Twitter  Facebook  YouTube  Github   

Writing since ancient times, blogging, e-commercing, and site installing-designing-maintaining since 2001; WordPress theme and plugin configuring and developing since 2004 or so; a lifelong freelancer, not associated nor to be associated with any company, publication, party, university, church, or other institution.

0 comments on “Relevanssi WP Search fixed; Twitter Digest Pointing to Larger Twitter API Questions

Commenting at CK MacLeod's

We are determined to encourage thoughtful discussion, so please be respectful to others. We also provide a set of Commenting Options - comment/commenter highlighting and ignoring, and commenter archives that you can access by clicking the commenter options button (). Go to our Commenting Guidelines page for more details, including how to report offensive and spam commenting.

    1 Pings/Trackbacks for "Relevanssi WP Search fixed; Twitter Digest Pointing to Larger Twitter API Questions"
    1. […] a tool for quickly turning tweets into blog posts. I also have not yet gotten around to address the truncated RT issue that I’ve previously […]

    Commenter Ignore Button by CK's Plug-Ins

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    Related

    Noted & Quoted

    [E]ven Fox didn’t tout Bartiromo’s big scoops on Trump’s legislative agenda, because 10 months into the Trump presidency, nobody is so foolish as to believe that him saying, “We’re doing a big infrastructure bill,” means that the Trump administration is, in fact, doing a big infrastructure bill. The president just mouths off at turns ignorantly and dishonestly, and nobody pays much attention to it unless he says something unusually inflammatory.On some level, it’s a little bit funny. On another level, Puerto Rico is still languishing in the dark without power (and in many cases without safe drinking water) with no end in sight. Trump is less popular at this point in his administration than any previous president despite a generally benign economic climate, and shows no sign of changing course. Perhaps it will all work out for the best, and someday we’ll look back and chuckle about the time when we had a president who didn’t know anything about anything that was happening and could never be counted on to make coherent, factual statements on any subject. But traditionally, we haven’t elected presidents like that — for what have always seemed like pretty good reasons — and the risks of compounding disaster are still very much out there.

    Comment →

    So, does Mitchell make any money on the work, which has been shared so many times? He uploaded a high-res image of the symbol and granted permission for anyone to use it personally for free. But for those who want to support his work or simply want something readymade, you can also buy T-shirts, sweatshirts, mugs, and journals emblazoned with the symbol through Threadless.“I really just want to spread the image as much as possible and cement it in history,” Mitchell says. “In all honesty, the amount I’ve made from my Threadless shop so far is still less than my hourly rate, so I don’t really see it as a big deal. If you look at my Twitter, half the replies are people wanting to know where they can buy a shirt. Threadless is happy to help them out with that, and so I’m happy to let that happen.”Now that the symbol has flooded our streets and our timelines, Mitchell just has one request: “Impeach this idiot already,” he says.

    Comment →

    This is a Waterloo moment for Trump, the tea party and their alliance. They have been stopped in their tracks not only by Democratic opposition but because of a mutiny within their own ranks. Although never particularly liked or respected, it is now clear that they are no longer feared. The bankruptcy of their ideas and their incompetence have been exposed. Their momentum has been dissipated. Their rejection of political norms has itself been scorned. Our long national nightmare may finally be coming to an end.

    Comment →
    CK's WP Plugins

    Categories

    Extraordinary Comments

    CK's WP Plugins