News:

Wondering if this will always be free?  See why free is better.

Main Menu

SA Twitter Integration

Started by SMFHacks.com Team, August 17, 2011, 04:26:47 PM

Previous topic - Next topic

Danni_X

You are great! Thx man! Work now!  ;)

P.S. A hooks for a template like facebook?  :)

SA™

there isnt one right now maybe i the futer ill add some hooks
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-


Connor Macleod

#43
I'm not sure if this is a Twitter issue or something to do with your mod, but I'll take my chances and ask.

I installed it first and everything worked perfectly. Then I suddenly wasn't allowed to log in with my personal twitter account anymore (the one stated in my forum profile). Turned out I had been logged into twitter with another twitter account (that I use for a page I created for the project which also has the forum), and apparently it had to be the same account to make it work.

Now, the first time I installed this and logged in I was asked for my personal Access token. Then I changed my twitter username, recreated the access token and tried again. Then I just got the "Whoa stop there" message from Twitter, saying that somebody else already used that token.

I tried deleting the application and making it again, I tried uninstalling the mod, deleting it and then upload (zip from harddisk since download in package manager doesn't work) and install again while also deleting/remaking the twitter application with a new Consumer key and all, but still I got the same problem. The key issue here is that I was never asked again for my Access token. I saw that it appeared automatically in the URL when pressing the "Log in with Twitter" button on the login page. So it seems to me that the Access token value has been stored in the SMF database and that it is not deleted when I delete the mod. Therefore it doesn't ask again for a new value of the token next time I run it, and since I am unable to change the token, I am unable to verify my identity to the twitter application, which therefore doesn't allow me to log into SMF.

If you think my analysis here is correct, then my question is if you can help me delete this entry from the database, or preferrably make sure that the next version of the mod deletes this database entry upon uninstalling.

If I have misunderstood, then my question is if you can tell me what really happens and what I can do to fix it.

Thanks in advance!

Connor Macleod

Quote from: darcysarto on August 24, 2011, 08:28:59 AM
When I click on the button I get taken to Twitter and do the confirming bit then end up back at my forum at a screen where I have to enter username, email and password.  When I click save I get the error.  However, the new member does appear as registered?

Any thoughts as to what I've done wrong?

Perhaps this has already been solved, but I remember this phase clearly and I almost did the same mistake. The screen you come to is "REGISTER OR LOG IN" and enter the forum. You want to log in to the forum with your existing account, not register a new account (perhaps even with the same name).

MegaByte

This mod has very bad behavior when Twitter is down/slow. It seems to block requests, making individual processes use up CPU until the connection fails, making the entire forum/server non-responsive.

BPLive

#46
Quote from: MegaByte on October 14, 2011, 09:05:36 AM
This mod has very bad behavior when Twitter is down/slow. It seems to block requests, making individual processes use up CPU until the connection fails, making the entire forum/server non-responsive.

this happenned to me last night.  only been using this mod for a fews weeks and the fb one. I can get no support for the facebookhooks.php and twitterhook.php with the get_boards (in forum error log filling up) and showing a topic url in the error that does not include my forums directory. Not sure if this has something to do with simple portal being involved.

anyway my server vps... went to 100 cpu load yesterday at an important time for me. I was getting these kind of errors during the time in forum log:

http://www.chinesedemocracy.com/forum/index.php?topic=27968.0;prev_next=next
2: Invalid argument supplied for foreach()
File: /home/xx/public_html/forum/twitterauth/lib/Twitter.php
Line: 396

My hosting company who is a good company, got the load down somehow... I guess killing off processes I dunno. but I need to fix these errors
www.ChineseDemocracy.com Your Guns N Roses Forum

SA™

Quote from: MegaByte on October 14, 2011, 09:05:36 AM
This mod has very bad behavior when Twitter is down/slow. It seems to block requests, making individual processes use up CPU until the connection fails, making the entire forum/server non-responsive.

i dont know any way around this issue unfortuantly :(
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Dblog

for me, the mod is installed but suddenly i see twitter button disappeared from registration page

Dblog

can anyone answer why twitter button is not working(seen) anymore on registration page?
even twitter login integration is now not possible

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Dblog


Dblog

twitter login button appeared for sometime on login and registration page and then again disappeared.

for a while on login page twitter oauth_token=  was empty and again it started taking a token value
strange MOD

SA™

this maybe the twitter lib i used im looking into changing the lib to a different one but my main focus right now is the fb one as i use facebook more than twitter
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Dblog

okay but what about SA twitter thats already installed?

SA™

Quote from: SA™ on November 08, 2011, 11:27:43 PM
this maybe the twitter lib i used im looking into changing the lib to a different one but my main focus right now is the fb one as i use facebook more than twitter
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

awolexpat

SA (or anyone),
I know nothing about the Twitter lib but am willing to learn; firstly which lib did you use for the mod and is it difficult to change it myself? I looked at the Twitter.php file in the twitterauth>lib folder and at the start of that file it credits CodeIgniter Twitter API library and an Elliot Haughin, so is that what you used? When i look at the dev part of the Twitter site (https://dev.twitter.com/docs/twitter-libraries), there is no mention of this library. Is it as simple as choosing one of those others listed and replacing some or all the code in Twitter.php? I can't believe it is as otherwise SA would have already done it, but if someone can point me in the right direction I'll have a go at doing whatever I need to do myself (I have a clone of my forum to test on). The errors relating to this on my live forum are starting to really irritate me, plus I am worried that it also means people are receiving error messages and/or are not actually able to log on/register with Twitter. When I try it myself it works but I'm not completely convinced that is the case for other guests and members.

Otherwise any idea when you will have time to change the lib and look at this SA? If it is only a matter of a couple of weeks I will leave it, but if it is going to be months then I'll have a crack at fixing it myself.

SA™

well im probaly not gonna get to it after christmas myself but it might be longer cos when i change the lib ill also redo most of the code to use oop instead facebook mod is nealy ready ti realse with oop programing

if you decide to crack at it your self there is a bit to change it not just the lib your most like have to chnage theactual source code a little
yes CodeIgniter Twitter API library is what it uses
http://codeigniter.com/wiki/CodeIgniter-Twitter_Library
http://codeigniter.com/forums/

there is one in the link you posted above that i used first that seemed more stable dont ask me why i chnaged the lib lol
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

i am working on this this week updating the lib and fixing the many bugs
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

~DS~

Quote from: SA™ on November 21, 2011, 02:27:37 PM
i am working on this this week updating the lib and fixing the many bugs
Whatever happen to "after christmas"? :P
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Advertisement: