Textpattern Forum

You are not logged in. Register | Login | Help

#101 2010-08-06 10:02:16

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 897
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hi Andy,

I’ve been giving your plugin a whirl & I’ve hit a strange one. Links in the tweets don’t seem to be rendered properly.

Here’s what I get on the page:

<li>The most amazing setting for an Opera in Australia <a href='http://www.youtube.com/watch'>http://www.youtube.com/watch</a>?v=Mxe-ezgJixc <span class="arc_twitter-posted">Jul  8, 08:31 am</span></li>
<li>Gumboots &amp; Pearls is back with Opera in the Otways at Cape Otway Lightstation Saturday 16th October 2010 www.otwaysopera.com.au <span class="arc_twitter-posted">Jun 22, 07:53 pm</span></li>

Notice the misformed link in the first tweet and, in the second tweet, the website address is not a link at all.

Have a look at twitter.com/otwaysopera to see how it should look. I’m running 1.0.3beta.

Offline

#102 2010-08-07 13:55:59

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 189
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hi whocarez, if the error is appearing in the Update Twitter block, then it is Twitter that is not happy with what is being tweeted. I can’t see any obvious reason for this from what you’ve posted. I’ve only ever tested the plugin with latin based alphabet characters and am not sure how much help I’m going to be able to offer you on this one. I will attempt to see if I can spot anything obvious if I try and use the same article titles and get back to you.

gomedia, this is currently a known issue and something that I am working on ready for the next release that should see some general improvements to the tags offered by the plugin.

Offline

#103 2010-08-12 18:18:19

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hi Andy,

Really struggling again with installing this on existing sites…

I have created a brand new txp install and only installed arc_twitter and works ok.

Then I tried to install the latest version on a development subdomain and it doesn’t even let me use the tag to output a twitter stream I get the following when trying to connect to twitter (this is the only error message I can find as It doesn’t alert me to anything else

Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 851
Notice: Undefined index: oauth_token_secret in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 851
Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 264
Notice: Undefined index: oauth_token_secret in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 265
Notice: Undefined index: oauth_token in /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 862

or on the domain I will be using it says

Fatal error: Call to undefined function curl_init() in  /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 968

Im really lost

Thanks
Oli

Offline

#104 2010-08-13 06:39:10

Rimfya
Member
Registered: 2007-11-22
Posts: 31

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hey awesome plugin, cheers.

One question, is there any way to make arc_twitter only display public tweets? Or in other words, hide tweets that are replies?

Offline

#105 2010-08-13 07:55:18

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 189
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

oliverker wrote:

Fatal error: Call to undefined function curl_init() in  /path/to/domain/textpattern/lib/txplib_misc.php(594) : eval()'d code on line 968

Sounds like your development environment doesn’t have cURL installed which is a requirement for the plugin. If that’s the case then nothing will work for you.
Rimfya wrote:

Hey awesome plugin, cheers.

One question, is there any way to make arc_twitter only display public tweets? Or in other words, hide tweets that are replies?

Currently no as there is no simple way of doing this with the Twitter API. It is not something that I have ruled out of doing yet though.

arc_twitter v2 is in the works and the public tagging side of the plugin is where new functionality is going to be seen. Expect some new tags and the ability to retweet articles (as requested ages ago by oliverker). Conveniently Twitter have just released a Tweet Button just as I was about to launch in to working on that very functionality, so the plan is to tie that in with the workings of arc_twitter.

Last edited by monkeyninja (2010-08-13 08:02:12)

Offline

#106 2010-08-13 08:32:53

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

monkeyninja wrote:

Sounds like your development environment doesn’t have cURL installed which is a requirement for the plugin. If that’s the case then nothing will work for you.

Damn it : )

Any reason why its not working on my dev domain? its exaclty the same database on a different domain, but the dev server/domain does have cURL, it doesn’t even pull in the tweets?

Offline

#107 2010-08-13 09:42:22

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 189
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

oliverker wrote:

Any reason why its not working on my dev domain? its exaclty the same database on a different domain, but the dev server/domain does have cURL, it doesn’t even pull in the tweets?

If it doesn’t recognise curl_init() then the only thing I could think is that cURL is not available to you. Without cURL the plugin can’t communicate with Twitter I’m afraid.

Try checking for cURL using <?php phpinfo(); ?> and looking for “with curl”.

Offline

#108 2010-08-23 05:52:34

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 748
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

monkeyninja wrote:

There are known issues with multi-site installs, but fixable.

Are the fixes documented somewhere?

I’ve installed arc_twitter on a new multi-site install. When I go to “options”, I get the “Twitter username unknown (Connect to Twitter)” as exptected.

When I click on the link (Connect to Twitter) I get a 404.

Is this becomes the admin is in a sub domain? (I notice that it is using the main domain as the referring link instead of the admin subdomain).

Thanks for any help

Mike

Online

#109 2010-08-23 06:06:35

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,181
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Hi Mike, I came across this too. Either try and change /textpattern to /admin in the URL bar (it worked before for me but not on the latest version of arc_twitter) or edit the plugin by finding this line in the callbackURL() in the arc_twitter class:

public function callbackURL($event,$step)
    {
        return hu.'textpattern/index.php?event='.$event.'&amp;step='.$step;
    }

Change textpattern to admin and it will work fine.


TXP Tips | @txptips | Me | @jonathanstubbs | Github

TXP Builders – finely-crafted code, design and txp @txpbuilders

Offline

#110 2010-08-23 16:42:13

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 748
Website

Re: TXP Tweet: arc_twitter and arc_twitter_intents

Thanks Jonathan!

You nailed!

In case anyone else has issues, and my experience can help:

I got part way there trying to change the url, and finally decided that editing the code was the better long term option.

For some reason, even though my user name was showing in admin->preferences->advance, it was not showing on the arc_twitter options page (it wasn’t logging in). Yet I had logged into twitter using the plugin, and had authorized it.

I had to uninstall the plugin, use smd_prefalizer to remove all arc_twitter preference (deleting it didn’t delete them for some reason), and start all over wit the modified version of the plugin. I also “deauthorized” the plugin at twitter so I could start clean there as well.

This time it worked as advertised.

Mike

Online

Board footer

Powered by FluxBB