AustinBrunkhorst

AustinBrunkhorst supports this item

Supported

112 comments found.

gcdm

gcdm Purchased

Is it possible to check for a valid twitter user, before displaying their feed?

Hi there,

This class wasn’t designed to query for this type of information.

One possible solution, rather than checking specifically if the user is valid, is to check for errors in general. If there is an error you can assume something went wrong with the request (i.e. the user isn’t valid). Display “unable to process request”, rather than “the user is invalid”.

The code required is a try/catch block.

try {
    // do setup, etc. ...

    $twitter->PrintFeed( );
} catch(TwitterException $e) {
    // there was an error. Nothing will be printed if the exception occurs.
}

Hi, first of all I would like to say you have made a great plugin. I have just a small issue with the number of tweets retrieved. I have only 15 tweets and in my Twitter timeline I have many more. I have set cache_life to 60 and play with the var count, but can’t get this works. Can you help? Thank you Best regards Tanguy

Hi there!

If you make changes to the count option, you must delete the cached tweets before the updated results will be displayed, otherwise they won’t be displayed until the cache is out of date (based on the cache_life. This is because the tweets cached are respecting the options you used when they were cached.

cc21

cc21 Purchased

I get this error. How to correct it?

[19-Jun-2015 01:57:24 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/www/clients/client1/web1/web/utfc/ultimate.twitter.feed.php on line 742 [07-Sep-2015 01:25:37 UTC] PHP Warning: array_keys() expects parameter 1 to be array, null given in /var/www/clients/client1/web1/web/utfc/ultimate.twitter.feed.php on line 742

cc21

cc21 Purchased

It seems working but still needs more time to observe. And where is the option curl_ssl_verifypeer? I can’t find it in the config file.

The option curl_ssl_verifypeer is not documented. It’s simply forwarded as an option to how requests are made with CURL to the API endpoint.

My site catches another error related to this software. I’ve sent the log to your email address. Please check.

Really good job here, all works really well – thankyou! Just one issue – I need to add target=”_blank” to the link generated in the feed (to open new window when clicked on the tweet link). Is this possible? Thanks

Hi nicshar,

You sure can! You can set the option format_link to change how links are formatted in the output.

The default value is

<a href="{link:expanded_url}" class="link-tweet">{link:url}</a>

Something like this should suffice

<a target="_blank" href="{link:expanded_url}" class="link-tweet">{link:url}</a>

Here’s the list of all options available

http://austinbrunkhorst.com/demos/twitter-class/#options
Lyre

Lyre Purchased

Thank you for you work. But i have this message when i want to use it :

Fatal error: Uncaught exception ‘TwitterException’ with message ‘the following errors were reported by Twitter – Could not authenticate you.; code 32.’ in C:\wamp64\www\twitter\src\ultimate.twitter.feed.php on line 573

TwitterException: the following errors were reported by Twitter – Could not authenticate you.; code 32. in C:\wamp64\www\twitter\src\ultimate.twitter.feed.php on line 573

Can you help me ?

Thank you ! :)

Lyre

Lyre Purchased

Sorry i had some trouble with the keys, but now :

( ! ) Fatal error: Uncaught exception ‘TwitterException’ with message ‘the following errors were reported by Twitter – Sorry, that page does not exist.; code 34.’ in C:\wamp64\www\twitter\src\ultimate.twitter.feed.php on line 573

( ! ) TwitterException: the following errors were reported by Twitter – Sorry, that page does not exist.; code 34. in C:\wamp64\www\twitter\src\ultimate.twitter.feed.php on line 573

Hi Lyre!

Sorry for the late response.

According to Twitter’s documentation (found here) code 34 means that the specified account or list doesn’t exist. Can you make sure that you entered the username correctly in the options?

Hi,does this work with the new twitter cards?

Hi neuropass,

I haven’t done anything with Twitter cards before, so therefore my knowledge of them is pretty limited. After doing a little bit of research, it looks as though they are just extra meta properties you can include in web pages to enrich links when they are referenced in a tweet.

With that said, out of the box, this class doesn’t support displaying cards like they are seen on Twitter. You would need to add extra functionality that parses media objects in the API to scrape links and manually extract the aforementioned meta properties. I will consider adding this functionality in a future release, as it does seem interesting and useful.

Hope this helps.

Hi, any thoughts on the update to add the support for twitter cards? Its quite important I would say. Please, your plugin seems to be the only working one on codecanyon. I think you are due with an update now :)

0x001

0x001 Purchased

support RTL ?

0x001

0x001 Purchased

OK nice , There is a URL at end of tweets can I remove it ? also can we make printFeed looks like LIVE so every new tweet it will be post automatically

Yes, you can remove links by setting the option format_link to an empty string. You can find all the options available in the class here.

The “live” effect is a little bit more involved and difficult to accomplish, so it’s not something supported out of the box. Fortunately, I actually created a simple demo replicating a live search ticker. You can find that demo with source here under Live Search Ticker.

0x001

0x001 Purchased

I want keep links in tweet , what’s i mean I want remove link to that’s tweet https://t.co.****

After ordering , try to install but get: >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Installing Plugin from uploaded file: codecanyon-462029-ultimate-twitter-feed-class.zip Unpacking the package… Installing the plugin… The package could not be installed. No valid plugins were found. Plugin install failed. Return to Plugins page

Any suggestion?

Sorry for the silly mistake.I installed properly and works.Only questions is I don`t find any example showing how to get the latest the tweets of an account. Thanks

Hi, is it possible to show the link/icons for “reply”, “retweet”, “like” ? I dont see any examples. I just assumed those would be there as default?

Thanks!

Hi there,

Check out Web Intents from Twitter. Using the custom format option on this class, you can construct one of the intent URLs by accessing the id_str property of a tweet.

0x001

0x001 Purchased

developer still here?

Hi there! I’m still here. You can email me at – contact [ at ] austinbrunkhorst [ dot ] com

0x001

0x001 Purchased

Possible to get joson API? , because i plan to make an mobile app

0x001

0x001 Purchased

1 week no answer , I’m asking for Refund !

Hi there,

I apologize for not getting to your question in a timely manner. There is a public method in the class Twitter::GetRequestData( ) that returns the processed data returned from the Twitter API. This is effectively the JSON response from the API, but with some post processing based on the options of the class. For example, expanding format options, replacing emojis, etc. For almost all API endpoints, this is an array of tweet objects.

Let me know if this helps answer your question.

0x001

0x001 Purchased

I email you

Is there no support for HTTPS in the media URLs? I’m getting errors because the embedded images are using http:// instead of https://

Hi there,

By default, the option format_media uses the tweet’s expanded_url as seen below -

<a href="{media:expanded_url}" class="link-media">{media:url}</a>

It looks like you’re after media_url_https. (Note that these fields didn’t exist in the API at the time of writing this class). Try this for the option format_media -

<a href="{media:media_url_https}" class="link-media">{media:url}</a>

If you experience the same issues with links, the same concept applies, just use the *_https alternative provided by the API. You can find the documentation here – https://dev.twitter.com/overview/api/entities-in-twitter-objects#urls

That worked, thanks so much!!

by
by
by
by
by
by