Advertisement:

Author Topic: SA Twitter Integration  (Read 124814 times)

Offline Danni_X

  • Semi-Newbie
  • *
  • Posts: 10
Re: SA Twitter Integration
« Reply #40 on: September 26, 2011, 03:12:15 PM »
You are great! Thx man! Work now!  ;)

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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #41 on: September 26, 2011, 05:32:21 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline anicolac

  • Semi-Newbie
  • *
  • Posts: 49
    • Apple Maniacos
Re: SA Twitter Integration
« Reply #42 on: September 29, 2011, 03:57:59 AM »

Offline Connor Macleod

  • Semi-Newbie
  • *
  • Posts: 31
  • Gender: Male
Re: SA Twitter Integration
« Reply #43 on: October 05, 2011, 09:34:25 AM »
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!
« Last Edit: October 05, 2011, 04:26:53 PM by vegster »

Offline Connor Macleod

  • Semi-Newbie
  • *
  • Posts: 31
  • Gender: Male
Re: SA Twitter Integration
« Reply #44 on: October 05, 2011, 04:31:26 PM »
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).

Offline MegaByte

  • Semi-Newbie
  • *
  • Posts: 53
    • Konfiskated Teknologies Network
Re: SA Twitter Integration
« Reply #45 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.

Offline BPLive

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
    • ChineseDemocracy.com
Re: SA Twitter Integration
« Reply #46 on: October 16, 2011, 02:40:07 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
« Last Edit: October 16, 2011, 02:43:27 AM by BPLive »
www.ChineseDemocracy.com Your Guns N Roses Forum

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #47 on: October 24, 2011, 01:03:28 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: SA Twitter Integration
« Reply #48 on: October 29, 2011, 11:22:25 PM »
for me, the mod is installed but suddenly i see twitter button disappeared from registration page

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: SA Twitter Integration
« Reply #49 on: November 05, 2011, 02:32:13 AM »
can anyone answer why twitter button is not working(seen) anymore on registration page?
even twitter login integration is now not possible

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #50 on: November 05, 2011, 05:49:35 PM »
link to site?
http://samods.github.io/SAChatBar/

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

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: SA Twitter Integration
« Reply #51 on: November 08, 2011, 08:47:15 AM »
i've sent you the link

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: SA Twitter Integration
« Reply #52 on: November 08, 2011, 12:43:08 PM »
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

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #53 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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Dblog

  • Jr. Member
  • **
  • Posts: 153
  • Gender: Female
Re: SA Twitter Integration
« Reply #54 on: November 09, 2011, 06:39:41 AM »
okay but what about SA twitter thats already installed?

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #55 on: November 09, 2011, 07:56:23 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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline awolexpat

  • Jr. Member
  • **
  • Posts: 129
Re: SA Twitter Integration
« Reply #56 on: November 14, 2011, 10:40:53 PM »
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.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #57 on: November 14, 2011, 11:02:20 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA Twitter Integration
« Reply #58 on: November 21, 2011, 02:27:37 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline ~DS~

  • SMF Hero
  • ******
  • Posts: 2,599
  • Gender: Male
Re: SA Twitter Integration
« Reply #59 on: November 21, 2011, 02:41:18 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