SA Twitter Integration

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

Previous topic - Next topic

SA™

in sources/twitter/twitterhooks.php

$url = $twitterObjUnAuth->getAuthenticateUrl();

replace with

try {
    $url = $twitterObjUnAuth->getAuthenticateUrl();
}
catch (Exception $e) {
    $url = '';
}
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 -___-

cryber

sources/twitter/twitterhooks.php

Quote
#349 $twitterObjUnAuth = new EpiTwitter($modSettings['tw_app_id'], $modSettings['tw_app_key']);
#350      try {
#351          $url = $twitterObjUnAuth->getAuthenticateUrl();
#352       }
#353      catch (Exception $e) {
#354            $url = '';
#355        }

#371 $twitterObjUnAuth = new EpiTwitter($modSettings['tw_app_id'], $modSettings['tw_app_key']);
#372   try {
#373      $url = $twitterObjUnAuth->getAuthenticateUrl();
#374   }
#375   catch (Exception $e) {
#376        $url = '';
#377    }

#446 $url = $twitterObjUnAuth->getAuthenticateUrl();

new #445 - #451
Quote
#445 $twitterObjUnAuth = new EpiTwitter($modSettings['tw_app_id'], $modSettings['tw_app_key']);
#446 try {
#447    $url = $twitterObjUnAuth->getAuthenticateUrl();
#448 }
#449 catch (Exception $e) {
#450     $url = '';
#451 }

Now better (thank you very much for your hard work), though the following error message

Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

SA™

i think the edit was made wronge can you try the updated package pls
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 -___-

cryber

Sorry, I dnot understand.

to say that uninstall and reinstall the package SA_Twitter_Integration_0.5_REV24.zip?
Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

cryber

#124
I installed the package(SA_Twitter_Integration_0.5_REV24.zip) again and I still get the same error
QuoteWe caught an unexpected Exception
No problem with JSON, CURL, safe_mode or PHP version

I see this error is occurring

Quote

http://www.cryber.com/foro/index.php?action=twitter
8: Undefined index: oauth_token

Archivo: /-/-/www/foro/Sources/Twitter/TwitterHooks.php
Línea: 458
Thanks


Attached Spanish translation of the mod (spanish_es)
Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

SA™

thanks gonna have to look into this a little more
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 -___-

cryber

Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

distante

SA! now I'm trying this mod :P

I have a couple of question, how can I add a "sign with twitter" in my theme (like the social hooks of facebook integration)

and, there's a way to get the twitter username for the registration? because it shows all empty in the registration screen

Thanks!

SA™

you can use show_twitter_login(); to show on other themes
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 -___-

distante

without any $global requiere? as in the FB integration?

I suposse that for your Google Integration it will be show_google_login(); also? :P

Thanks

SA™

1 yes just that
2  close  gplus_show_auth_login();
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 -___-

distante

hehe, thanks! I think I will now give you a rest for today, then I will messing with the code and ask for help :P

cryber

Quote from: cryber on February 16, 2012, 02:38:22 AM
I installed the package(SA_Twitter_Integration_0.5_REV24.zip) again and I still get the same error
QuoteWe caught an unexpected Exception
No problem with JSON, CURL, safe_mode or PHP version

I see this error is occurring

Quote

http://www.cryber.com/foro/index.php?action=twitter
8: Undefined index: oauth_token

Archivo: /-/-/www/foro/Sources/Twitter/TwitterHooks.php
Línea: 458
Thanks


Attached Spanish translation of the mod (spanish_es)


And this error??

Thanks
Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

SA™

in that file find
$twitterObj->setToken($_GET['oauth_token']);
before add
$_GET['oauth_token'] = !empty($_GET['oauth_token']) ? $_GET['oauth_token'] : '';
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 -___-

GlitchPC

SA™...

Installed and configured...but, when I tweet a topic...the Tweet counter does not increase.

jun412715051

thanks gonna have to look into this a little more

cryber

Quote from: SA™ on March 08, 2012, 03:41:18 PM
in that file find
$twitterObj->setToken($_GET['oauth_token']);
before add
$_GET['oauth_token'] = !empty($_GET['oauth_token']) ? $_GET['oauth_token'] : '';

Sorry but when click http://www.cryber.com/foro/index.php?action=twitter

¡Un error ha ocurrido!
Ha habido un problema inesperado(We caught an unexpected Exception)


And When clicked on my profile to import the avatar

The database value you're trying to insert does not exist: p_avatar

Is this important for the mod work correctly???

Thank you very much for the effort
Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

SA™

what other mods you have installed cos it sounds like somthing is blocking the oauth_token
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 -___-

cryber

Los admisnistradores de SMFSIMPLE no borran las cuentas y siguen espameando a todo el mundo.Si se lo dices por privado no te hacen ni caso y si lo haces en foro abierto borran el mensaje PARA QUE NADIE MÁS SE ENTERE DE LO QUE HACEN.BORRAD MI CUENTA!!.Aquí,digo yo,que no podréis borrar mi firma,aunque seais moderadores.
4kstore responde: Lo siento, las cuentas no se borran y menos si sos asi de maleducado. Si hubieses atendido la 1ª vez hace tres días no hubiese tenido que ser maleducado!!
Lástima que no estáis en España sino la AGPD ya daría cuenta de vosotros.

SA™

try it this mod has that built in
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 -___-

Advertisement: