Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on August 17, 2011, 04:26:47 PM

Title: SA Twitter Integration
Post by: SMFHacks.com Team on August 17, 2011, 04:26:47 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=3055)

Description:
Allow Users To Login Register And Sync Accounts With Twitter

HOWTO:
Create an app on twitter
https://dev.twitter.com/apps/new

Fill In
Application Website: your site url

Callback URL: website url plus ?action=twitter
example
http://siteurl/index.php?action=twitter

Fill in the other stuff then once you have done that and got your keys
goto twitter admin and add your keys

Version 1.3
!Fixed signin twitter image for new installs. Link is now set to http://www.smfhacks.com/images/sign-in-with-twitter-l.png
!Updated http://twitter.com to https://twitter.com for profile links,sharing.


Version 1.2
!Use https for api connection

Version 1.1
!Fixed to work with new twitter api
Title: Re: SA Twitter Integration
Post by: Spoogs on August 17, 2011, 09:39:25 PM
Congrats on getting it approved :)
Title: Re: SA Twitter Integration
Post by: ~DS~ on August 17, 2011, 11:01:02 PM
Congrats, indeed. :)
Title: Re: SA Twitter Integration
Post by: SA™ on August 18, 2011, 12:43:13 AM
thanks guys
Title: Re: SA Twitter Integration
Post by: ReaperX on August 18, 2011, 02:50:03 PM
I created new app, and now i have Consumer key, Consumer secret, Access token and Access token secret. Where can i get Twitter Api Key ?
Title: Re: SA Twitter Integration
Post by: SA™ on August 19, 2011, 01:10:31 AM
it isnt needed any more by the looks of thing :/ try it with out it was only for the @anywere wich wasnt fully implemented yet anyway
Title: Re: SA Twitter Integration
Post by: ReaperX on August 19, 2011, 02:19:38 AM
yes, it seems to work without api key.
Thanks for creating this mod ;)

//
I have one more question...
How can I change language for Sign in button or add my own image (like it is in FB integration) ?
Title: Re: SA Twitter Integration
Post by: SA™ on August 19, 2011, 04:15:07 AM
it is an image

in sources/twitter/twitterhooks.php

http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png
Title: Re: SA Twitter Integration
Post by: darcysarto on August 23, 2011, 09:37:58 AM
Hi, I've just installed this and attempting to test it I get this error:

QuoteThe database value you're trying to insert does not exist: p_twitname
Title: Re: SA Twitter Integration
Post by: SA™ on August 23, 2011, 03:47:21 PM
did you setup an app on twitter?
Title: Re: SA Twitter Integration
Post by: darcysarto on August 24, 2011, 08:28:59 AM
Quote from: SA™ on August 23, 2011, 03:47:21 PM
did you setup an app on twitter?

Hi, yes I did.

I installed mod successfully and set up app.  Entered consumer key and consumer secret and switched mod on.

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?
Title: Re: SA Twitter Integration
Post by: tectonny on August 24, 2011, 09:17:59 AM
The database value you're trying to insert does not exist: p_twitname

Test:
http://buscashare.in/forum/index.php?action=twitter

And already created and configure the app on Twitter
Title: Re: SA Twitter Integration
Post by: ~DS~ on August 24, 2011, 11:26:22 AM
I can confirm this even though it was already reported. :)
Title: Re: SA Twitter Integration
Post by: tectonny on August 24, 2011, 11:45:36 AM
I got to work, but when you register at Twitter just enter a PIN number and nothing happens.
Title: Re: SA Twitter Integration
Post by: SA™ on August 24, 2011, 03:55:17 PM
http://www.sa-smf.com/community/index.php?topic=1161.msg6881#msg6881

see that regarding the pin it isnt needed
Title: Re: SA Twitter Integration
Post by: darcysarto on August 25, 2011, 04:13:35 AM
Quote from: tectonny on August 24, 2011, 11:45:36 AM
I got to work, but when you register at Twitter just enter a PIN number and nothing happens.

How did you get it to work, I still just get The database value you're trying to insert does not exist: p_twitname

?
Title: Re: SA Twitter Integration
Post by: SA™ on August 26, 2011, 03:43:48 AM
can i have link to your site pls?
Title: Re: SA Twitter Integration
Post by: darcysarto on August 26, 2011, 08:04:05 AM
Quote from: SA™ on August 26, 2011, 03:43:48 AM
can i have link to your site pls?

Yes it's here http://www.bbcradioforum.co.uk I have switched on the mod so would appreciate if you could let me know when you have finished looking as I'd like to turn it off again until it's all working correctly.  Thanks for your help.
Title: Re: SA Twitter Integration
Post by: SA™ on August 29, 2011, 01:50:19 PM
sry for the long wait

just a hunch do you have datasebase driven sessions enabled?
Title: Re: SA Twitter Integration
Post by: darcysarto on August 29, 2011, 03:15:25 PM
I'll check but have no idea what that means or what will happen if I disable it?
Title: Re: SA Twitter Integration
Post by: darcysarto on August 29, 2011, 05:26:54 PM
Quote from: SA™ on August 29, 2011, 01:50:19 PM
sry for the long wait

just a hunch do you have datasebase driven sessions enabled?

Yes it was enabled, I have turned it off but the problem still exists.
Title: Re: SA Twitter Integration
Post by: kingkingston on August 31, 2011, 01:05:05 PM
Quote from: darcysarto on August 23, 2011, 09:37:58 AM
Hi, I've just installed this and attempting to test it I get this error:

QuoteThe database value you're trying to insert does not exist: p_twitname
I got that same message when i registered at your site but it registered me anyway
Title: Re: SA Twitter Integration
Post by: darcysarto on September 01, 2011, 04:31:05 AM
Quote from: kingkingston on August 31, 2011, 01:05:05 PM
I got that same message when i registered at your site but it registered me anyway

Hi yes, thanks for trying it.  Yes it does still register you, although I don't think you can then actually login with your Twitter account?
Title: Re: SA Twitter Integration
Post by: mxcape21 on September 01, 2011, 07:52:43 PM
How can I manually un-install this mod, my site suddenly won't load at all and this mod is the only error showing in the logs?  ???
It worked just fine for a week and all of a sudden KA-POW, white screen with no display of errors or reason for site not loading....

Note this is not the site in my sig.

Edit; Yep...that was it, I deleted all of the files for this mod and everything is back to normal, the site is accessible with no errors.

Thanks anyway  ::)
Title: Re: SA Twitter Integration
Post by: awolexpat on September 02, 2011, 03:16:21 AM
I am getting an error in my logs which I can only presume is related to this mod (thanks by the way as I had been waiting for it!). The error is as follows:

http://www.awolonline.net/forum/index.php?action=register
2: Invalid argument supplied for foreach()
File: /home/xxxxxxx/public_html/forum/twitterauth/lib/Twitter.php
Line: 394

This looks like it is something to do with Guests trying to register using their Twitter ID but I have no idea really. I have not altered the file in question and it installed without a hitch. Can anyone help?
Title: Re: SA Twitter Integration
Post by: darcysarto on September 02, 2011, 05:05:05 AM
I have now switched this mod off.  Has anyone actually got it working?
Title: Re: SA Twitter Integration
Post by: Errapolis on September 04, 2011, 12:06:53 AM
I'm so pleased this mod is now available, thank you!  I've got it working fine on my website.

However, my own theme is a customised version of curve, and I was looking for a way to place the Twitter login button just under my Facebook login button in the site header.

With Facebook (i'm using your SA Facebook mod) I simply copied the HTML for the button from the Login page of SMF and pasted it into index.template.php.  However with the Twitter login button, I can't as it seems to generate a new oauth token each time.

Is there an easy way of dropping the button into the theme coding somehow?

Here's my site: http://forum.onlyanexcuse.com/

I'd like the button to sit just under my Facebook Connect button at the top-right of the screen.  I'd be okay in adding this to the index.template.php file, what I need is the right code to put in there.  I looked through the mod's files but i'm none the wiser.

If you can help then that would be great, or even a push in the right direction.  Thanks!
Title: Re: SA Twitter Integration
Post by: SA™ on September 05, 2011, 11:00:31 AM
your need to call

twit_init();

then you can use the $url varible like


global $url;
twit_init();
echo'<a href="'.$url.'"><img src="http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png" alt="'.$txt['twittsign'].'"/></a>';
Title: Re: SA Twitter Integration
Post by: SA™ on September 05, 2011, 11:03:55 AM
Quote from: awolexpat on September 02, 2011, 03:16:21 AM
I am getting an error in my logs which I can only presume is related to this mod (thanks by the way as I had been waiting for it!). The error is as follows:

http://www.awolonline.net/forum/index.php?action=register
2: Invalid argument supplied for foreach()
File: /home/xxxxxxx/public_html/forum/twitterauth/lib/Twitter.php
Line: 394

This looks like it is something to do with Guests trying to register using their Twitter ID but I have no idea really. I have not altered the file in question and it installed without a hitch. Can anyone help?

in that file line 394 you can add
$obj = array();
before
$obj = json_decode($this->responseText);
Title: Re: SA Twitter Integration
Post by: awolexpat on September 05, 2011, 11:53:08 AM
Thanks SA - I have made that edit and will only post on here again if the errors continue.
Title: Re: SA Twitter Integration
Post by: Errapolis on September 05, 2011, 04:46:00 PM
Much appreciated SA, going to try this out now. Cheers!
Title: Re: SA Twitter Integration
Post by: Errapolis on September 05, 2011, 06:34:21 PM
Quote from: SA™ on September 05, 2011, 11:00:31 AM
your need to call

twit_init();

then you can use the $url varible like


global $url;
twit_init();
echo'<a href="'.$url.'"><img src="http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png" alt="'.$txt['twittsign'].'"/></a>';


I tried putting this in but to no avail, and tried messing about with it to try get it working, but it ended up confusing me no end.

I want to place it in a div container (called "twbox" which I can use to position it under the FB button), then into the index.template.php inside the "top_section" div of the curve theme.

If it's possible you could help further it would be greatly appreciated.  PHP isn't my forte, sadly.
Title: Re: SA Twitter Integration
Post by: awolexpat on September 06, 2011, 09:24:37 PM
Sorry to report that the error has started appearing again - to save anyone searching it is this:
Guest 66.249.68.114        Today at 05:46 AM  58f390da47f21f73c162a6ed3afe3bc9
Type of error: General
hxxp://www.awolonline.net/forum/index.php?topic=527.02: Invalid argument supplied for foreach()
File: /home/xxxxxxx/public_html/forum/twitterauth/lib/Twitter.php
Line: 395

Different line I guess because of the edit made. Any ideas?
Title: Re: SA Twitter Integration
Post by: SA™ on September 08, 2011, 10:41:43 AM
@Errapolis
if you can post up the file your editing i can show you what todo

@awolexpat
thanks for testing that i think im going to use a different twitter lib in the next realse the current one does seem a ittle to buggy for my liking
Title: Re: SA Twitter Integration
Post by: darcysarto on September 09, 2011, 05:17:02 AM
Quote from: SA™ on September 08, 2011, 10:41:43 AM
@Errapolis
if you can post up the file your editing i can show you what todo

@awolexpat
thanks for testing that i think im going to use a different twitter lib in the next realse the current one does seem a ittle to buggy for my liking

Any news on the 'The database value you're trying to insert does not exist: p_twitname' error?
Title: Re: SA Twitter Integration
Post by: anicolac on September 11, 2011, 05:01:51 AM
the mod works great, but I stop working some functionality of TinyPortal, such as block management.
Anyone else has happened?
----------------
el mod funciona muy bién, pero me deja de funcionar alguna funcionalidad de Tinyportal, como por ejemplo la gestión de bloques.
A alguién más le ha pasado?

Saludos y gracias.
Title: Re: SA Twitter Integration
Post by: Danni_X on September 19, 2011, 08:05:14 PM
Yes,me.
It's a problem with TinyPortal and this.
When SA twitter is enable dont work admin from tiny portal and error is Fatal error: Cannot redeclare get_boards() (previously declared in /home/****/public_html/Sources/Twitter/TwitterHooks.php:293) in /home/****/public_html/Sources/TPortalAdmin.php on line 3877

get_boards() is declared in tinyportal files.
Title: Re: SA Twitter Integration
Post by: Adrek on September 20, 2011, 06:12:40 PM
i think i have the same error as awolexpat
/index.php?/board,31.0.html
2: Invalid argument supplied for foreach()
File: /home/xxx/domains/xxx/public_html/twitterauth/lib/Twitter.php
Line: 396


how to fix it?
Title: Re: SA Twitter Integration
Post by: Danni_X on September 26, 2011, 02:33:01 AM
Quote from: Danni_X on September 19, 2011, 08:05:14 PM
Yes,me.
It's a problem with TinyPortal and this.
When SA twitter is enable dont work admin from tiny portal and error is Fatal error: Cannot redeclare get_boards() (previously declared in /home/****/public_html/Sources/Twitter/TwitterHooks.php:293) in /home/****/public_html/Sources/TPortalAdmin.php on line 3877

get_boards() is declared in tinyportal files.

PLS help me to fix it!
Title: Re: SA Twitter Integration
Post by: SA™ on September 26, 2011, 02:52:44 PM
try this package
Title: Re: SA Twitter Integration
Post by: Danni_X on September 26, 2011, 03:12:15 PM
You are great! Thx man! Work now!  ;)

P.S. A hooks for a template like facebook?  :)
Title: Re: SA Twitter Integration
Post by: SA™ on September 26, 2011, 05:32:21 PM
there isnt one right now maybe i the futer ill add some hooks
Title: Re: SA Twitter Integration
Post by: anicolac on September 29, 2011, 03:57:59 AM
Quote from: SA™ on September 26, 2011, 02:52:44 PM
try this package

Thank you.
Title: Re: SA Twitter Integration
Post by: Connor Macleod 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!
Title: Re: SA Twitter Integration
Post by: Connor Macleod on October 05, 2011, 04:31:26 PM
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).
Title: Re: SA Twitter Integration
Post by: 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.
Title: Re: SA Twitter Integration
Post by: BPLive on October 16, 2011, 02:40:07 AM
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
Title: Re: SA Twitter Integration
Post by: SA™ on October 24, 2011, 01:03:28 PM
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 :(
Title: Re: SA Twitter Integration
Post by: Dblog on October 29, 2011, 11:22:25 PM
for me, the mod is installed but suddenly i see twitter button disappeared from registration page
Title: Re: SA Twitter Integration
Post by: Dblog 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
Title: Re: SA Twitter Integration
Post by: SA™ on November 05, 2011, 05:49:35 PM
link to site?
Title: Re: SA Twitter Integration
Post by: Dblog on November 08, 2011, 08:47:15 AM
i've sent you the link
Title: Re: SA Twitter Integration
Post by: Dblog 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
Title: Re: SA Twitter Integration
Post by: 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
Title: Re: SA Twitter Integration
Post by: Dblog on November 09, 2011, 06:39:41 AM
okay but what about SA twitter thats already installed?
Title: Re: SA Twitter Integration
Post by: SA™ on November 09, 2011, 07:56:23 PM
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
Title: Re: SA Twitter Integration
Post by: awolexpat 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.
Title: Re: SA Twitter Integration
Post by: SA™ 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
Title: Re: SA Twitter Integration
Post by: SA™ on November 21, 2011, 02:27:37 PM
i am working on this this week updating the lib and fixing the many bugs
Title: Re: SA Twitter Integration
Post by: ~DS~ on November 21, 2011, 02:41:18 PM
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
Title: Re: SA Twitter Integration
Post by: SA™ on November 21, 2011, 02:57:40 PM
it needed tobe done
Title: Re: SA Twitter Integration
Post by: ~DS~ on November 21, 2011, 03:34:15 PM
Here's a view of what's coming in the next version. :)
Title: Re: SA Twitter Integration
Post by: SA™ on November 25, 2011, 04:08:03 AM
0.4 relesed

chnaged to a different twitter php lib [fixes most of the Bugs]
fixed issue where it was calling twitter info on each page load now only does it when needed
added support for custom login url
added support for custom login img
now reqires oauth keys from twitter
now uses session url whn loggin in
updated twitter logs in admin to use creat list function
fixed errors with api call failing with try and catch functions to catch errors
added support for at anywere
now you can import twitter avatars
added allready registerd check
added support for last tweets at index
added supoort for reg agreement
added publisher
fixed issue showing redirect boards in bards list
Title: Re: SA Twitter Integration
Post by: awolexpat on November 25, 2011, 05:32:55 AM
Hi SA,
Thanks for the update BUT I am getting a bunch of errors after installation (it installed no problems), as follows:

hxxp://www.awolonline.net/forum/index.php?http://www.awolonline.net/forum/
8: Undefined index: oauth_token
File: /home/xxxxx/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 442

hxxp://www.awolonline.net/forum/index.php?http://www.awolonline.net/forum/
8: Undefined index: twusername
File: /home/xxxxx/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 465

hxxp://www.awolonline.net/forum/index.php?http://www.awolonline.net/forum/
8: Undefined index: twuserid
File: /home/xxxx/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 467

hxxp://www.awolonline.net/forum/index.php?http://www.awolonline.net/forum/
8: Undefined index: twpic
File: /home/xxxxx/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 468

These errors are accumulating rapidly! Also if I try to access my forum as a guest it doesn't load properly. I uninstalled the old (last version) mod but didn't delete it and the uninstallation seemed also to have no problem. Any clues as to what is happening?

P.S I have just uninstalled it, but now (as a guest trying to open the forum on Google Chrome) I am getting the following error appearing:
Fatal error: Call to undefined function twit_init() in /home/awolonl1/public_html/forum/Sources/Load.php(2494) : eval()'d code on line 260

Would this be some stray code that hasn't been removed in either the old or new version of the mod?

P.P.S I have reinstalled the previous version and my forum is accessible again for guests; interestingly I was logged in as admin all the time and never had any issues (thankfully) so that might give you a clue to where the problem lies?
Title: Re: SA Twitter Integration
Post by: SA™ on November 25, 2011, 06:13:11 AM
hmm it shouldent be loads them vars on index have you got twit_init() decalred someware else

prob down to this
Call to undefined function twit_init() but it is an eval()' error can you disable template evalation

admin>server settings>Disable evaluation of templates then try a repopulate that error it should give more info this way

Title: Re: SA Twitter Integration
Post by: awolexpat on November 28, 2011, 10:08:43 AM
Sorry for the delay in replying. I have Simple Twitter installed, but that was installed with the previous version as well - I assume that might declare twit_init()? The eval error appeared not in the error log but at the top of the screen when the forum wouldn't load properly as a guest. I am loathe to reinstall the new version for fear it will break the forum completely, so I will wait to see if anyone else has similar problems I think. I have a suspicion that it is either a conflict (possibly with Simple Twitter) or there might be some code that is not being removed fully when I uninstall the old version. When i have time I will look at the parse and compare it to my files. My forum is heavily modded so there is every chance that something is conflicting though.
Title: Re: SA Twitter Integration
Post by: SA™ on November 28, 2011, 01:36:59 PM
twit_init has nothing todo wit the simple twitter mod you have a custom theme right?

did you do this to add the login button?
http://www.simplemachines.org/community/index.php?topic=446987.msg3153017#msg3153017

if so your need to remove that and use show_twitter_login() with the new version other wise using twit_init in the new version will give the errors above
Title: Re: SA Twitter Integration
Post by: awolexpat on November 29, 2011, 10:38:02 PM
Hi SA,
Thanks, that fixed the problem with the errors (after I also removed the same code from my portal block), and I have successfully added the Twitter button to my themes, but it does not show up on the default curve theme - can you tell me how to add it there? Also how can I make sure it goes below the Facebook button rather than alongside it on my themes?  I am sure others will also want a more detailed description of what how and where to put the code as well. Thanks for the mod and your help so far.
Title: Re: SA Twitter Integration
Post by: SA™ on November 30, 2011, 01:49:21 AM
for the default theme  index.template.php

echo '
<input type="hidden" name="hash_passwrd" value="" />
</form>';


add after
show_twitter_login();

to make them side by side wich needs to be done anyway cos it does look better ill have to play around with the code mmore later


Title: Re: SA Twitter Integration
Post by: awolexpat on November 30, 2011, 02:12:49 AM
Hi SA,
OK, did that but no button is showing, either side by side or below the Facebook one. That is on the forum home page (in my case a portal where i have also managed to add FB and Twitter buttons to the user block which do show) but also on the login and register pages for all my themes. Which file(s) do i need to edit to get it on the login and register pages, and again, what should I add and where?
Title: Re: SA Twitter Integration
Post by: SA™ on December 01, 2011, 08:56:27 PM
hmm make sure you have anbled the mod after updating cos it installs disabled as default this is the only reason i can think of why it dont show
Title: Re: SA Twitter Integration
Post by: awolexpat on December 01, 2011, 09:32:12 PM
Hi SA,
Yes, I discovered that last night but didn't have a chance to come on here to update. I would still like to be able to put the Twitter button below the Facebook one on some themes though, so any hint how I can do that? Thanks for all your help by the way, and again for the mod.
Title: Re: SA Twitter Integration
Post by: SA™ on December 01, 2011, 09:51:23 PM
if you inserted the button manualy you need to add echo'<br />'; between the button coded like this

facebook code
echo'<br />';
twitter code

if it is the one that show when the mod is installled you need to

depending on what was installed first twitter or facebook

for twitter sources/twitter/twitterhooks.php

$buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a><br /><div class="info">'. $txt['guestnew']. '</div>', $buffer);

replace with

$buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a><br /><div class="info">'. $txt['guestnew']. '</div><br />', $buffer);

if that does not do it your need todo simualr to the sources/facebook/facebookhooks.php file
Title: Re: SA Twitter Integration
Post by: awolexpat on December 03, 2011, 12:18:57 AM
Thanks SA, that's perfect.
Title: Re: SA Twitter Integration
Post by: Dblog on December 03, 2011, 07:30:54 AM
thanks for the update
show_twitter_login();
works cool
Title: Re: SA Twitter Integration
Post by: awolexpat on December 04, 2011, 12:03:10 AM
Hi SA, me again  :-[
I'm getting some errors in my error log as follows:

http://www.awolonline.net/forum/index.php?action=register2
8: Undefined index: tw_enpub
File: /home/awolonl1/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 84

http://www.awolonline.net/forum/index.php?topic=827.0
8: Undefined index: tw_enpub
File: /home/awolonl1/public_html/forum/Sources/Twitter/TwitterHooks.php
Line: 133

The first one has appeared many times, the second one only once (so far). They are all from guests, not logged in members. Any ideas?
Title: Re: SA Twitter Integration
Post by: SA™ on December 04, 2011, 03:29:15 AM
enable then disable the publisher and they will go
Title: Re: SA Twitter Integration
Post by: Dblog on December 05, 2011, 12:58:40 AM
SMF package manager shows 0.3.3 and why doesnt it show version is old, when existing new version is 0.4
Title: Re: SA Twitter Integration
Post by: SA™ on December 05, 2011, 01:30:57 AM
package_info.xml says 0.4 so you must of got the old version
Title: Re: SA Twitter Integration
Post by: awolexpat on December 05, 2011, 02:41:39 AM
Thanks SA, that worked.
Title: Re: SA Twitter Integration
Post by: Dblog on December 06, 2011, 12:27:10 AM
i know i had the old version
but why is SMF package manager showing green button still and says package is upto date???????????
Title: Re: SA Twitter Integration
Post by: SA™ on December 06, 2011, 05:40:23 AM
i would thinkit the way the package manager work seem to treat 0.3.3 as a greater number than 0.4 it is nothing to worry about once you have updated you can remove the 0.3.3 package
Title: Re: SA Twitter Integration
Post by: snadge on December 16, 2011, 08:57:52 AM
I cant get this too work?

after user allows the app to be used it gives a PIN and says to return to the website and enter the pin as part of the verification process.. if you click BACK your just back to login, if you click 'continue to *** website' you jst go back to homepage and start over, log in via twitter brings you to page with PIN on it telling you to enter it..?
Title: Re: SA Twitter Integration
Post by: SA™ on December 16, 2011, 05:25:17 PM
quick google comes back with

QuoteOne method of authenticating via OAuth is called out-of-band (OOB). Instead of redirecting a user to a callback URL this method of OAuth instead displays a pin code for the user to input into an application. It sounds like this is the pin code being referred to.

did you set your callback url>?
Title: Re: SA Twitter Integration
Post by: alanmcg on December 17, 2011, 04:22:58 PM
How do you move the twitter share buttons location within themes? I'm not keen on the current location just under the link tree, especially as there's a big gap beneath the button.

Great mod by the way, very clever.
Title: Re: SA Twitter Integration
Post by: snadge on December 17, 2011, 04:40:44 PM
Quote from: alanmcg on December 17, 2011, 04:22:58 PM
How do you move the twitter share buttons location within themes? I'm not keen on the current location just under the link tree, especially as there's a big gap beneath the button.

Great mod by the way, very clever.
I disabled that within the mod and used a different mod that put both facebook and twitter buttons next to the topic title in the title bar on the first post in a topic...much better.. the mod was Facebook & Twitter Sharer
http://custom.simplemachines.org/mods/index.php?mod=2827

@ SA - I have now set it and it works... E-Notify mod blocks it though just so you know...dunno why, ive had to get rid of that in favour of your mod
this was on a white page
({ "title": "Notification Feed", "generator": "ENotify Modification for Simple Machines Forum", "items": [ ] })
Title: Re: SA Twitter Integration
Post by: alanmcg on December 17, 2011, 08:12:41 PM
^ I've tried that mod and agree it makes a lot more sense where it puts the buttons, but I'd rather not complicate matters by having lots of mods doing similar things. Would be great if I could just alter a bit of code and get the existing mods twitter button in the right place.
Title: Re: SA Twitter Integration
Post by: snadge on December 18, 2011, 07:35:51 AM
Quote from: alanmcg on December 17, 2011, 08:12:41 PM
^ I've tried that mod and agree it makes a lot more sense where it puts the buttons, but I'd rather not complicate matters by having lots of mods doing similar things. Would be great if I could just alter a bit of code and get the existing mods twitter button in the right place.

thing is with doing that you have to start noting/remembering where and what code you have added/changed and reversing it later if you want to remove or change mods - where as using mods does it all for you
Title: Re: SA Twitter Integration
Post by: alanmcg on December 18, 2011, 11:27:39 AM
True, I already have that with my customised theme though, every time I update something breaks.  ;D SimplePortal recently decided to randomly ruin much of the spacing for no clear reason.
Title: Re: SA Twitter Integration
Post by: SA™ on December 18, 2011, 02:35:18 PM
i am considering moving the the share buttons in the next realse the main reason in having them where they are was to save on code edits
Title: Re: SA Twitter Integration
Post by: usrfsledge on December 19, 2011, 10:35:03 AM
Hi there, somehow this sounds as a great mod.
I've installed the mod on a testing-board and I've managed to tweet automatic new topics from a board.

However, to link my twitter-account on my profile page doesn't seem to work.
Besides of that, I have really no idea what else to expect from this mod. What does it do, besides to auto-tweet new topics ?

Tnx in advance

Working on a clean/fresh/empty SMF 2.0.1 with simple portal 2.3.4 and this mod 0.4Rev23
Title: Re: SA Twitter Integration
Post by: snadge on December 19, 2011, 10:53:49 AM
Quote from: usrfsledge on December 19, 2011, 10:35:03 AM
Hi there, somehow this sounds as a great mod.
I've installed the mod on a testing-board and I've managed to tweet automatic new topics from a board.

However, to link my twitter-account on my profile page doesn't seem to work.
Besides of that, I have really no idea what else to expect from this mod. What does it do, besides to auto-tweet new topics ?

Tnx in advance

Working on a clean/fresh/empty SMF 2.0.1 with simple portal 2.3.4 and this mod 0.4Rev23

It allows users to login with twitter (you need to create an app for this)
It puts a button at top of each topic so users can tweet the topic
Title: Re: SA Twitter Integration
Post by: usrfsledge on December 19, 2011, 11:32:48 AM
Okay, not really much as other mods do, only they don't need the app.
Weird anyway, the auto-post-new-topics-from-a-specific-board seems to work well. So I suppose the app works.
But linking a members (profile) to Twitter doesn't. No errors, but also no linking. And because of that, I suggest, I can't see any buttons on top of pages/topics.
Title: Re: SA Twitter Integration
Post by: snadge on December 19, 2011, 12:00:42 PM
Quote from: usrfsledge on December 19, 2011, 11:32:48 AM
Okay, not really much as other mods do, only they don't need the app.
Weird anyway, the auto-post-new-topics-from-a-specific-board seems to work well. So I suppose the app works.
But linking a members (profile) to Twitter doesn't. No errors, but also no linking. And because of that, I suggest, I can't see any buttons on top of pages/topics.

sure your using this mod?
A) I cant "auto-post-from-certain-boards"... how do you set that up as I would like to?
B) for tweet button you have to enable it under BOARDS by checking which ones you want the button to appear
..personally i dont and use a different mod as this mod places the button at top left which uses up a whole line of space just for the button (2 lines when you use his Facebook integration mod too), another mod I use puts tweet and facebook share buttons on the title-bar of the first post on every topic (which is better)

all mods that allow users to sign into the forum with twitter require an app, its quite easy to setup. anyway, you still have to create a username, password and email when they use it for first time - there are no twitter/FB login mods that can do this without needing to sign up first with username/pass/email etc - if you know of one please do let me know.

the ones your on about probs just post straight to that users wall if they are logged into twitter in same browser session.. 
Title: Re: SA Twitter Integration
Post by: usrfsledge on December 19, 2011, 08:58:47 PM
Quote from: snadge on December 19, 2011, 12:00:42 PM
the ones your on about probs just post straight to that users wall if they are logged into twitter in same browser session.. 

Yup, that's correct.

Quote from: snadge on December 19, 2011, 12:00:42 PM
sure your using this mod?
A) I cant "auto-post-from-certain-boards"... how do you set that up as I would like to?

Yup again, I'm pretty sure.
I can't tell you exactly, because I've deleted my test-scenario. But somewhere at the admin-section you can select the board from wich a tweet will be done whenever a new topic is started in that board.
Title: Re: SA Twitter Integration
Post by: SA™ on December 21, 2011, 10:27:21 AM
in twitter admin you can enable the publisher to publish new post or/and new members to twitter you can select wich boards get published by visting the boards section in twitter admin
Title: Re: SA Twitter Integration
Post by: snadge on December 23, 2011, 01:50:14 PM
Quote from: SA™ on December 21, 2011, 10:27:21 AM
in twitter admin you can enable the publisher to publish new post or/and new members to twitter you can select wich boards get published by visting the boards section in twitter admin

well thats what I thought, but when I do it it doesnt work? nothing gets posted

I have publisher checked for "new posts and new members" and my chat section checked under 'publish' (I dont have tweet button enabled, shouldnt need to) - when I post in that section nothing is posted to twitter
Title: Re: SA Twitter Integration
Post by: SA™ on December 23, 2011, 04:43:09 PM
whats is you application Access level set to it should be read and write

if it is just read your have to go into your app settings page click settings and check read and write now go to your
twitter profile settings on twitter and revoke access to you app then go back to you application setting pagw and click create my access token now the access level should say read and write
Title: Re: SA Twitter Integration
Post by: Apllicmz on January 02, 2012, 02:02:05 PM
Yes Nice work
when Update dont forget Portuguese files
Title: Re: SA Twitter Integration
Post by: Shrink on January 03, 2012, 03:15:29 PM
When i try t
Quoteo open user profile it give following error
"Fatal error: Uncaught exception 'EpiOAuthUnauthorizedException' in /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php:432 Stack trace: #0 /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /home/shrinkdw/public_html/forum/Sources/Twitter/TwitterHooks.php(366): EpiOAuth->getAuthenticateUrl() #3 /home/shrinkdw/public_html/forum/Sources/Subs.php(4248): twitter_profile_areas(Array) #4 /home/shrinkdw/public_html/forum/Sources/Profile.php(360): call_integration_hook() #5 /home/shrinkdw/public_html/forum/index.php(153): ModifyProfile('twitter_profile...', Array) #6 {main} thrown in /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php on line 432"
what to do?? :'(
Title: Re: SA Twitter Integration
Post by: SA™ on January 03, 2012, 06:09:38 PM
did you create an application on twitter? and input the keys in admin?
Title: Re: SA Twitter Integration
Post by: Shrink on January 14, 2012, 01:23:18 AM
yes i fallow all the steps i can integrate other functions successfully.
Title: Re: SA Twitter Integration
Post by: SA™ on January 14, 2012, 11:03:17 AM
well the only way i can replicate this error is by not having api keys in twitter admin
Title: Re: SA Twitter Integration
Post by: LadyLarke on January 18, 2012, 01:13:42 AM
I do not understand what I am supposed to be doing with the Boards section of this mod admin? It has checkmarks for "Twitter Button" and "Publish".
With no apparent documentation that I can find.

Please elaborate?
Title: Re: SA Twitter Integration
Post by: SA™ on January 18, 2012, 10:48:54 AM
sry i assumed i woulda been self explainatry :/

tweet button will show a tweet button on selected boards
publish will allow you to auto maticly publish topics to twitter on selected boards
Title: Re: SA Twitter Integration
Post by: LadyLarke on January 18, 2012, 01:33:57 PM
thank you kindly
Title: Re: SA Twitter Integration
Post by: ariolander on January 29, 2012, 10:26:00 AM
Excellent mod!

Had some issues getting it to post to twitter but it was just a matter of resetting my keys.

Suggestion:
Ability to add #keywords and/or the #category to the tweets would be nice.
Title: Re: SA Twitter Integration
Post by: SA™ on January 30, 2012, 02:56:06 PM
you mean

published post #board


type thing?
Title: Re: SA Twitter Integration
Post by: ariolander on January 31, 2012, 11:00:06 PM
Yea something like that.

I know the twitter-bot is an appreciated feature for my users but sometimes it is not immediately obvious by the tweet/thread title what board it was posted it.

Might be nice to be able to assign a #hashtag to the categories being published, IE #Review for my "Reviews & Critiques" category or #Support for the "Q&A and Tech Support" section.
Title: Re: SA Twitter Integration
Post by: SA™ on February 01, 2012, 03:17:24 PM
ill see though dont expect it anytime soon as i am very busy at the moment
Title: Re: SA Twitter Integration
Post by: ariolander on February 01, 2012, 07:33:24 PM
No problem! Thanks again for the mod.

I think its really cool that my site can now have its own twitter-bot!

The pop-up twitter profiles was a nice touch too.
Title: Re: SA Twitter Integration
Post by: Ascot on February 04, 2012, 01:32:28 PM
where do i edit twitter iframe css properties ?
Title: Re: SA Twitter Integration
Post by: SA™ on February 04, 2012, 03:17:31 PM
iframe css propertys?
Title: Re: SA Twitter Integration
Post by: Ascot on February 04, 2012, 03:37:00 PM
When i check twitter buttown shown on post at firebug it's an iframe. I want it to float right because it is at top of facebook hooks and that doesn't look so well.
Title: Re: SA Twitter Integration
Post by: SA™ on February 05, 2012, 02:18:45 PM
it is acualy this part in twitterhooks.php

echo'<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="'.$context['data_via'].'">'.$txt['twti'].'</a>
       <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>';
Title: Re: SA Twitter Integration
Post by: DanielJLewis on February 06, 2012, 09:08:29 PM
I love what this plugin is supposed to do, but it seems pointless to offer a Twitter login if the user still has to create a username and password. That's the whole point of social logins—that you don't have to create a new username and password.

I'm testing between phpBB and SMF. phpBB has a plugin that can register a user with Twitter without requiring an extra username and password. I've been to many other sites and web apps that work the same.

Is this on the roadmap for this mod?
Title: Re: SA Twitter Integration
Post by: Ascot on February 08, 2012, 06:28:55 PM
good, that helped. Thanks! :)
Title: Re: SA Twitter Integration
Post by: cryber on February 13, 2012, 10:21:42 AM
Quote from: Shrink on January 03, 2012, 03:15:29 PM
When i try t
Quoteo open user profile it give following error
"Fatal error: Uncaught exception 'EpiOAuthUnauthorizedException' in /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php:432 Stack trace: #0 /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /home/shrinkdw/public_html/forum/Sources/Twitter/TwitterHooks.php(366): EpiOAuth->getAuthenticateUrl() #3 /home/shrinkdw/public_html/forum/Sources/Subs.php(4248): twitter_profile_areas(Array) #4 /home/shrinkdw/public_html/forum/Sources/Profile.php(360): call_integration_hook() #5 /home/shrinkdw/public_html/forum/index.php(153): ModifyProfile('twitter_profile...', Array) #6 {main} thrown in /home/shrinkdw/public_html/forum/twitterauth/EpiOAuth.php on line 432"
what to do?? :'(


I have the same error even without the mod enabled (I'm spanish, sorry my english). The error occurs when you click on http://www.cryber.com/foro/index.php?action=profile (only)

Fatal error: Uncaught exception 'EpiOAuthException' in /htdocs/public/www/foro/twitterauth/EpiOAuth.php:434 Stack trace: #0 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /htdocs/public/www/foro/Sources/Twitter/TwitterHooks.php(366): EpiOAuth->getAuthenticateUrl() #3 [internal function]: twitter_profile_areas(Array) #4 /htdocs/public/www/foro/Sources/Subs.php(4283): call_user_func_array('twitter_profile...', Array) #5 /htdocs/public/www/foro/Sources/Profile.php(380): call_integration_hook('integrate_profi...', Array) #6 [internal function]: ModifyProfile() #7 /htdocs/public/www/foro/index.php(151): call_user_func('ModifyProfile') #8 {main} thrown in /htdocs/public/www/foro/twitterauth/EpiOAuth.php on line 434

SMF 2.0.2
SA Twitter Integration 0.4 REV23
url http://www.cryber.com/foro/
error url http://www.cryber.com/foro/index.php?action=profile
Twitter consumer key correct
Twitter consumer secret correct
Twitter access token correct
Twitter access token secret correct
Your Twitter User Name  correct
Callback URL    http://www.cryber.com/foro/index.php?action=twitter 
(the same error)
Fatal error: Uncaught exception 'EpiOAuthException' in /htdocs/public/www/foro/twitterauth/EpiOAuth.php:434 Stack trace: #0 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /htdocs/public/www/foro/Sources/Twitter/TwitterHooks.php(435): EpiOAuth->getAuthenticateUrl() #3 /htdocs/public/www/foro/Sources/Twitter/Twitter.php(120): twit_init() #4 /htdocs/public/www/foro/Sources/Twitter/Twitter.php(51): twit_main() #5 [internal function]: Twitter() #6 /htdocs/public/www/foro/index.php(151): call_user_func('Twitter') #7 {main} thrown in /htdocs/public/www/foro/twitterauth/EpiOAuth.php on line 434

Thanks
Title: Re: SA Twitter Integration
Post by: SA™ on February 13, 2012, 04:36:45 PM
pls try this package
Title: Re: SA Twitter Integration
Post by: cryber on February 13, 2012, 11:43:10 PM
The first bug (when click profile)has been fixed but the second is the same (when click http://www.cryber.com/foro/index.php?action=twitter)
Fatal error: Uncaught exception 'EpiOAuthException' in /htdocs/public/www/foro/twitterauth/EpiOAuth.php:434 Stack trace: #0 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(404): EpiOAuthException::raise(Object(EpiCurlManager), false) #1 /htdocs/public/www/foro/twitterauth/EpiOAuth.php(45): EpiOAuthResponse->__get('oauth_token') #2 /htdocs/public/www/foro/Sources/Twitter/TwitterHooks.php(446): EpiOAuth->getAuthenticateUrl() #3 /htdocs/public/www/foro/Sources/Twitter/Twitter.php(120): twit_init() #4 /htdocs/public/www/foro/Sources/Twitter/Twitter.php(51): twit_main() #5 [internal function]: Twitter() #6 /htdocs/public/www/foro/index.php(151): call_user_func('Twitter') #7 {main} thrown in /htdocs/public/www/foro/twitterauth/EpiOAuth.php on line 434

What are the file and certificate permissions ?

Thanks
Title: Re: SA Twitter Integration
Post by: SA™ on February 15, 2012, 05:21:38 AM
in sources/twitter/twitterhooks.php

$url = $twitterObjUnAuth->getAuthenticateUrl();

replace with

try {
    $url = $twitterObjUnAuth->getAuthenticateUrl();
}
catch (Exception $e) {
    $url = '';
}
Title: Re: SA Twitter Integration
Post by: cryber on February 15, 2012, 02:01:35 PM
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

(http://i39.tinypic.com/w8qekh.png)
Title: Re: SA Twitter Integration
Post by: SA™ on February 15, 2012, 02:45:35 PM
i think the edit was made wronge can you try the updated package pls
Title: Re: SA Twitter Integration
Post by: cryber on February 15, 2012, 11:33:54 PM
Sorry, I dnot understand.

to say that uninstall and reinstall the package SA_Twitter_Integration_0.5_REV24.zip?
Title: Re: SA Twitter Integration
Post by: 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)
Title: Re: SA Twitter Integration
Post by: SA™ on February 18, 2012, 01:58:14 PM
thanks gonna have to look into this a little more
Title: Re: SA Twitter Integration
Post by: cryber on February 19, 2012, 02:45:07 AM
Quote from: SA™ on February 18, 2012, 01:58:14 PM
thanks gonna have to look into this a little more

Ok, thanks
Title: Re: SA Twitter Integration
Post by: distante on March 07, 2012, 04:39:24 PM
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!
Title: Re: SA Twitter Integration
Post by: SA™ on March 07, 2012, 06:27:30 PM
you can use show_twitter_login(); to show on other themes
Title: Re: SA Twitter Integration
Post by: distante on March 07, 2012, 06:30:17 PM
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
Title: Re: SA Twitter Integration
Post by: SA™ on March 07, 2012, 06:41:36 PM
1 yes just that
2  close  gplus_show_auth_login();
Title: Re: SA Twitter Integration
Post by: distante on March 07, 2012, 06:58:58 PM
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
Title: Re: SA Twitter Integration
Post by: cryber on March 07, 2012, 11:47:21 PM
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
Title: Re: SA Twitter Integration
Post by: 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'] : '';
Title: Re: SA Twitter Integration
Post by: GlitchPC on March 08, 2012, 07:18:06 PM
SA™...

Installed and configured...but, when I tweet a topic...the Tweet counter does not increase.
Title: Re: SA Twitter Integration
Post by: jun412715051 on March 09, 2012, 01:35:04 AM
thanks gonna have to look into this a little more
Title: Re: SA Twitter Integration
Post by: cryber on March 09, 2012, 02:28:51 AM
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
Title: Re: SA Twitter Integration
Post by: SA™ on March 09, 2012, 06:23:25 PM
what other mods you have installed cos it sounds like somthing is blocking the oauth_token
Title: Re: SA Twitter Integration
Post by: cryber on March 10, 2012, 01:48:17 AM
I installed
Calling Your twitter    2.5  (http://custom.simplemachines.org/mods/index.php?mod=2895)

uninstall this?
Title: Re: SA Twitter Integration
Post by: SA™ on March 10, 2012, 01:56:57 AM
try it this mod has that built in
Title: Re: SA Twitter Integration
Post by: cryber on March 10, 2012, 01:37:21 PM
Quote from: cryber on March 10, 2012, 01:48:17 AM
I installed
Calling Your twitter    2.5  (http://custom.simplemachines.org/mods/index.php?mod=2895)

uninstall this?

uninstall the mod, but the errors are the same

Thanks
Title: Re: SA Twitter Integration
Post by: SA™ on March 10, 2012, 03:26:11 PM
hmmm ok can you give me a few days? to look into this more?
Title: Re: SA Twitter Integration
Post by: cryber on March 10, 2012, 03:52:12 PM
Quote from: SA™ on March 10, 2012, 03:26:11 PM
hmmm ok can you give me a few days? to look into this more?

ok..thanks
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 18, 2012, 02:31:56 AM
The auto-tagging feature is awesome :)
Can we do such thing to tag our forum usernames ?? Same method as of this ? Such mod will do wonders to SMF forum.... If possible, do try for this too :)

You did an awesome work SA... I am loving each of your mods and your support for each mod too is great !!!
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 18, 2012, 02:58:16 AM
Getting Errors in log. Though I have not activated twitter integration i.e I have installed the mod, provided the settings but unchecked the option where it says "Enable Twitter"

Following are the Errors:


Type of error: Undefined
http://yoursite.com/index.php?action=register28: Undefined index: tw_enpub
File: (server path)/Sources/Twitter/TwitterHooks.php
Line: 84


Type of error: Undefined
http://yoursite.com/index.php?action=register28: Undefined index: tw_enpub
File: (server path)/Sources/Twitter/TwitterHooks.php
Line: 84


Type of error: Undefined
http://yoursite.com/index.php?action=facebookintegrate;area=auto;agree
8: Undefined index: tw_enpub
File: (server path)/Sources/Twitter/TwitterHooks.php
Line: 84
Title: Re: SA Twitter Integration
Post by: SA™ on March 18, 2012, 03:10:34 AM
added new version

Quotechnage th authorisesation logic should fixe some errors
added supprt for hash tags witht the publisher
added support for auto login
fixed issue with guest acesss dissabled
fixed error Undefined index: tw_enpub
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 18, 2012, 03:12:40 AM
Quote from: SA™ on March 18, 2012, 03:10:34 AM
added new version

Quotechnage th authorisesation logic should fixe some errors
added supprt for hash tags witht the publisher
added support for auto login
fixed issue with guest acesss dissabled
fixed error Undefined index: tw_enpub
Wow, thatz great :)
I am checking out !!!
Title: Re: SA Twitter Integration
Post by: SA™ on March 18, 2012, 03:17:27 AM
i wanted to also add auto register to this but there is no way of getting an email addy from twitter they only way would to be use a fake one but im not going that route it is the same for the gplus one aswell shame realy even the auto login part in this can be a bit of a hit and miss somtimes been testing it out the last few weeks most of the time it ok tho
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 18, 2012, 05:48:45 PM
I found a bug which is when I go to Profile>Twitter>Import (Import Twitter Avatar)
I get the following error

Error Has Occurred!
The database value you're trying to insert does not exist: p_avatar


What maybe the issue ?
Title: Re: SA Twitter Integration
Post by: SA™ on March 18, 2012, 06:10:21 PM
Quote from: die2mrw007 on March 18, 2012, 05:48:45 PM
I found a bug which is when I go to Profile>Twitter>Import (Import Twitter Avatar)
I get the following error

Error Has Occurred!
The database value you're trying to insert does not exist: p_avatar


What maybe the issue ?

pls try the updated package
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 18, 2012, 06:13:14 PM
Quote from: SA™ on March 18, 2012, 06:10:21 PM
Quote from: die2mrw007 on March 18, 2012, 05:48:45 PM
I found a bug which is when I go to Profile>Twitter>Import (Import Twitter Avatar)
I get the following error

Error Has Occurred!
The database value you're trying to insert does not exist: p_avatar


What maybe the issue ?

pls try the updated package
okay fine :)
Title: Re: SA Twitter Integration
Post by: SA™ on March 19, 2012, 03:04:04 AM
so it ok now?
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on March 19, 2012, 03:25:57 AM
Quote from: SA™ on March 19, 2012, 03:04:04 AM
so it ok now?
yes, its working perfect :)
Title: Re: SA Twitter Integration
Post by: Adrek on March 28, 2012, 12:56:36 PM
Hi, today I made update at my site, and tried to change login image, so I added URL to my new image,  but modification do not use it..

Any idea what can be wrong?

// I changed image URL in TwitterHooks.php
Title: Re: SA Twitter Integration
Post by: SA™ on March 28, 2012, 01:19:45 PM
you can chnage this in twitter admin area
Title: Re: SA Twitter Integration
Post by: Adrek on March 28, 2012, 01:47:12 PM
yes, i know, but when i added url for my image in settings mod does not use it
Title: Re: SA Twitter Integration
Post by: SA™ on March 29, 2012, 02:20:29 PM
in twitterhooks.php

$buffer = preg_replace('~(' . preg_quote($txt['forgot_your_password']. '</a></p>') . ')~', ''. $txt['forgot_your_password']. '</a></p><div align="center"><a href="'.$url.'"><img src="http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png" alt="'.$txt['twittsign'].'"/></a></div>', $buffer);
    $buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a><br /><div class="info">'. $txt['guestnew']. '</div>', $buffer);
    $buffer = preg_replace('~(' . preg_quote('<dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>') . ')~', '<dt>'.$txt['twittregister'].'</dt><dd><a href="'.$url.'"><img src="http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png" alt="'.$txt['twittsign'].'"/></a></dd><dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>', $buffer);


replace with

$buffer = preg_replace('~(' . preg_quote($txt['forgot_your_password']. '</a></p>') . ')~', ''. $txt['forgot_your_password']. '</a></p><div align="center"><a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a></div>', $buffer);
    $buffer = preg_replace('~(' . preg_quote('<div class="info">'. $txt['guestnew']. '</div>') . ')~', '<a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a><br /><div class="info">'. $txt['guestnew']. '</div>', $buffer);
    $buffer = preg_replace('~(' . preg_quote('<dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>') . ')~', '<dt>'.$txt['twittregister'].'</dt><dd><a href="'.$url.'"><img src="'.$modSettings['tw_app_log_img'].'" alt="'.$txt['twittsign'].'"/></a></dd><dt><strong><label for="smf_autov_username">'. $txt['username']. ':</label></strong></dt>', $buffer);
Title: Re: SA Twitter Integration
Post by: Adrek on March 29, 2012, 02:25:41 PM
and now it works :) Thanks
Title: Re: SA Twitter Integration
Post by: SA™ on March 29, 2012, 02:32:51 PM
yw not sure why i never chnaged that lol just an oversight i guess
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on April 15, 2012, 06:03:35 AM
Getting some errors :(
What maybe the issue ?

Quotehttp://forum.gizmolord.com/index.php?action=login2;synctw
The database value you're trying to insert does not exist: p_twitname
Function: updateMemberData
File: (server path)/Sources/Subs.php
Line: 544
Title: Re: SA Twitter Integration
Post by: buzzybee on May 07, 2012, 01:48:50 PM
Hello,

I've been using SA facebook and it works very well so I thought I would try this. I'm running SMF 2.0.2 with Simple Portal 2.3.5 using Inferno theme but when I click on the 'Sign in with Twitter' button I just get redirected back to my index page.

Any ideas what could be going wrong?

Title: Re: SA Twitter Integration
Post by: buzzybee on May 08, 2012, 01:46:15 AM
Never mind.. I fixed the problem.

thx
Title: Re: SA Twitter Integration
Post by: Eclipse16V on May 16, 2012, 04:09:42 AM
Hello,
maybe someone here can tell me where I must submit to the API, so this mod is.
'm Just not on and the instructions are no longer accessible.

It's about Facebook, Twitter and Google +.

Please help me.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on May 16, 2012, 08:21:16 PM
Have taken over work/support of this mod.

What would help me out is if you any bugs that you know about why this modification let me know and I will try to get it fixed. Might back port it to 1.1.x as well not sure though.
Title: Re: SA Twitter Integration
Post by: Eclipse16V on May 17, 2012, 05:28:59 AM
I have to first find an explanation on how the whole set up on Twitter.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on May 17, 2012, 12:24:54 PM
Check the first post of this topic what part are you stuck on?
Title: Re: SA Twitter Integration
Post by: Eclipse16V on May 18, 2012, 01:46:29 AM
Thank you
Yes I had done. Unfortunately, it did not then and still now it works.
Title: Re: SA Twitter Integration
Post by: amitets on May 18, 2012, 08:15:27 AM
Thanks guys,for sharing it on this forum...
Title: Re: SA Twitter Integration
Post by: Nitesh Kunnath on May 19, 2012, 04:56:07 PM
Quote from: vbgamer45 on May 16, 2012, 08:21:16 PM
Have taken over work/support of this mod.

What would help me out is if you any bugs that you know about why this modification let me know and I will try to get it fixed. Might back port it to 1.1.x as well not sure though.
Great to know :)
I would like to report a bug:
This mod clashes with Wordpress mod named "WPSMF" : http://wordpress.org/extend/plugins/wpsmf/
When we integrate this twitter mod, a database error pops out in wordpress blog when we try to publish any article, but the post get published anyway.
Title: Re: SA Twitter Integration
Post by: Texan78 on May 27, 2012, 04:30:44 AM
Thank you VB for taking over this one as well, you're doing a great job. You have already ironed out a lot of the bugs I was having. I just have a couple of very small issues. Only one is a issue if a issue at all.

1. I don't have a Publish option for topics. I have the boxes checked under boards for both tweet and publish but no publish option appears as it does with the FB mod. I have the tweet button though.

2. Since there is no style or template edits I am not sure how to approach this. I would like to move the tweet option to the right of the FB so they are in line together but not sure how to do that since like I said there is not style or template edits. How would I need to do this? See attached screenshot 1

3. Same as the 2nd, but I would like to move my buttons below the login box as shown by the red text in the 2nd attachment.

-Thanks
Title: Re: SA Twitter Integration
Post by: ictsource on June 05, 2012, 06:22:07 AM
Quote from: DanielJLewis on February 06, 2012, 09:08:29 PM
I love what this plugin is supposed to do, but it seems pointless to offer a Twitter login if the user still has to create a username and password. That's the whole point of social logins—that you don't have to create a new username and password.

I'm testing between phpBB and SMF. phpBB has a plugin that can register a user with Twitter without requiring an extra username and password. I've been to many other sites and web apps that work the same.

Is this on the roadmap for this mod?

Hi,

I've installed the twitter mod and it requires people to login even though they're already logged into twitter? is this how its supposed to work or have i done something wrong. Please can you clarify as I'm not sure if its working correctly or not?

I have filled in the Twitter consumer key, Twitter consumer secret, Twitter access token, and Twitter access token secret, I'm just checking that all these fields are required.

Thanks
Title: Re: SA Twitter Integration
Post by: Gà Mái on June 14, 2012, 01:28:51 AM
It do not work at all. I try doing every thing, but when i post a topic, my twitter have no new tweet.
Title: Re: SA Twitter Integration
Post by: SMFHacks.com Team on June 14, 2012, 01:50:07 AM
Any errors? Check your forum's error log too
Title: Re: SA Twitter Integration
Post by: Gà Mái on June 15, 2012, 12:34:22 AM
I like this mod very much, it's a nice and useful mod.

Can you help me fixing this

(http://nn4.upanh.com/b1.s28.d3/8d007d659068608bf9ebb32458635106_46135484.fix.jpg)
(I add 2 mods: SA Facebook and SA twitter and 2 images broke my user area table, may by it was set up 80px X 80px by theme default but i do not know where to edit and fix, i want them smaller and on the same line)

My smf 2.0.2
My theme:  Adk Excellency

Thank you alot!
Title: Re: SA Twitter Integration
Post by: Ascot on June 15, 2012, 10:14:20 AM
Hi, i have the 0.3.3 version of this mod.
I want to install the last, guess it's 0.6

How i must proceed ?
help please.
Thanks.
Title: Re: SA Twitter Integration
Post by: SA™ on June 15, 2012, 03:24:15 PM
Quote from: Gà Mái on June 15, 2012, 12:34:22 AM
I like this mod very much, it's a nice and useful mod.

Can you help me fixing this

(http://nn4.upanh.com/b1.s28.d3/8d007d659068608bf9ebb32458635106_46135484.fix.jpg)
(I add 2 mods: SA Facebook and SA twitter and 2 images broke my user area table, may by it was set up 80px X 80px by theme default but i do not know where to edit and fix, i want them smaller and on the same line)

My smf 2.0.2
My theme:  Adk Excellency

Thank you alot!

todo this you need to find some smaller images to use and then change the images in twitter and facebook admin

Quote from: Ascot on June 15, 2012, 10:14:20 AM
Hi, i have the 0.3.3 version of this mod.
I want to install the last, guess it's 0.6

How i must proceed ?
help please.
Thanks.

you uninstall the 0.3 version and then install the 0.6 version
Title: Re: SA Twitter Integration
Post by: Gà Mái on June 15, 2012, 10:35:03 PM
Quote from: SA™ on June 15, 2012, 03:24:15 PM
Quote from: Gà Mái on June 15, 2012, 12:34:22 AM
I like this mod very much, it's a nice and useful mod.

Can you help me fixing this

(http://nn4.upanh.com/b1.s28.d3/8d007d659068608bf9ebb32458635106_46135484.fix.jpg)
(I add 2 mods: SA Facebook and SA twitter and 2 images broke my user area table, may by it was set up 80px X 80px by theme default but i do not know where to edit and fix, i want them smaller and on the same line)

My smf 2.0.2
My theme:  Adk Excellency

Thank you alot!

todo this you need to find some smaller images to use and then change the images in twitter and facebook admin

Quote from: Ascot on June 15, 2012, 10:14:20 AM
Hi, i have the 0.3.3 version of this mod.
I want to install the last, guess it's 0.6

How i must proceed ?
help please.
Thanks.

you uninstall the 0.3 version and then install the 0.6 version
No, although i use a small or a bigger image, it show that, it show exactly fit 80px X 80px
Title: Re: SA Twitter Integration
Post by: NPimenta on June 22, 2012, 09:52:13 PM
Hi there!

in install the twitter integration, it works fine, with integration and logins, tweets, etc.

but when i create topcis or new members registered, we dont have tweets in our page.

any help??

regards
Title: Re: SA Twitter Integration
Post by: kattara on June 22, 2012, 10:06:57 PM
Hi there!  I just installed this mod on my forum, and am not sure I did it right.  Can anybody test it?  Here it is ---> http://www.themobilehangout.com (http://www.themobilehangout.com).  Much appreciated!!
Title: Re: SA Twitter Integration
Post by: NPimenta on June 23, 2012, 07:57:27 AM
Hi All,

i install in my SMF 2.0 the SA integration plugins. everything its OK

but i want to know how to put the buttons in the same line, in this moment o have one under the other like i show in thies image:

(http://s17.postimage.org/8o0qbc4mn/Capturar.png) (http://postimage.org/)


tanks for help

regards
Title: Re: SA Twitter Integration
Post by: Texan78 on June 29, 2012, 12:08:55 PM
Quote from: NPimenta on June 23, 2012, 07:57:27 AM
Hi All,

i install in my SMF 2.0 the SA integration plugins. everything its OK

but i want to know how to put the buttons in the same line, in this moment o have one under the other like i show in thies image:

(http://s17.postimage.org/8o0qbc4mn/Capturar.png) (http://postimage.org/)


tanks for help

regards

I would like to know the exact same thing as well. I asked about it a month ago and have been patiently waiting.

http://www.simplemachines.org/community/index.php?topic=446987.msg3342129#msg3342129

Title: Re: SA Twitter Integration
Post by: Texan78 on June 29, 2012, 05:31:30 PM
Anyone know how I can make this happen?
Title: Re: SA Twitter Integration
Post by: Texan78 on July 01, 2012, 08:28:19 PM
Anyone?

-Thanks
Title: Re: SA Twitter Integration
Post by: kattara on July 03, 2012, 12:16:39 AM
Quote from: Texan78 on July 01, 2012, 08:28:19 PM
Anyone?

-Thanks

Make what happen, exactly?
Title: Re: SA Twitter Integration
Post by: Texan78 on July 03, 2012, 01:05:11 PM
Quote from: kattara on July 03, 2012, 12:16:39 AM
Quote from: Texan78 on July 01, 2012, 08:28:19 PM
Anyone?

-Thanks

Make what happen, exactly?

Did you not look at the picture attached above in my post and previous 3 posts?
Title: Re: SA Twitter Integration
Post by: kattara on July 03, 2012, 04:00:02 PM
Quote from: Texan78 on July 03, 2012, 01:05:11 PM
Quote from: kattara on July 03, 2012, 12:16:39 AM
Quote from: Texan78 on July 01, 2012, 08:28:19 PM
Anyone?

-Thanks

Make what happen, exactly?

Did you not look at the picture attached above in my post and previous 3 posts?

Ah...  Sorry about that.  I was on my phone and didn't see the picture.  You can check this out:  http://www.simplemachines.org/community/index.php?topic=334955.0 (http://www.simplemachines.org/community/index.php?topic=334955.0).  It works real great for me!
Title: Re: SA Twitter Integration
Post by: Texan78 on July 03, 2012, 04:50:15 PM
This mod works great for me, nothing wrong with it. Just need to make some cosmetic edits.
Title: Re: SA Twitter Integration
Post by: kattara on July 03, 2012, 05:28:09 PM
Quote from: Texan78 on July 03, 2012, 04:50:15 PM
This mod works great for me, nothing wrong with it. Just need to make some cosmetic edits.

I use this mod for the logging/signing in.  Then I use ShareThis for the actual sharing.  I find that mod a bit easier to customize in terms of where to place the +1/tweets, etc.
Title: Re: SA Twitter Integration
Post by: Texan78 on July 18, 2012, 03:58:06 PM
Quote from: Texan78 on June 29, 2012, 12:08:55 PM
Quote from: NPimenta on June 23, 2012, 07:57:27 AM
Hi All,

i install in my SMF 2.0 the SA integration plugins. everything its OK

but i want to know how to put the buttons in the same line, in this moment o have one under the other like i show in thies image:

(http://s17.postimage.org/8o0qbc4mn/Capturar.png) (http://postimage.org/)


tanks for help

regards

I would like to know the exact same thing as well. I asked about it a month ago and have been patiently waiting.

http://www.simplemachines.org/community/index.php?topic=446987.msg3342129#msg3342129

I guess what were asking is a lot harder to do. Figured it would be easy edit for someone fluent in SMF and mods...

Can anyone offer any help?
Title: Re: SA Twitter Integration
Post by: Rawkher on July 19, 2012, 02:30:37 PM
Quote from: buzzybee on May 07, 2012, 01:48:50 PM
When I click on the 'Sign in with Twitter' button I just get redirected back to my index page.

I am having this issue as well, how do I fix it?
Title: Re: SA Twitter Integration
Post by: Rawkher on July 20, 2012, 10:09:56 AM
Quote from: Rawkher on July 19, 2012, 02:30:37 PM
Quote from: buzzybee on May 07, 2012, 01:48:50 PM
When I click on the 'Sign in with Twitter' button I just get redirected back to my index page.

I am having this issue as well, how do I fix it?

Bump.

I still can't figure this out :(
Title: Re: SA Twitter Integration
Post by: sake cat on July 29, 2012, 10:50:06 PM
Is there a way to get rid of the password requirement hell can I get rid of the email requirement too. I know this is kind of an odd thing to ask but is there any way to get ride of the password requirement and only make users logging into twitter, pick a user name wambam done. The whole Idea of this to me is that prospect users don't have to work to get into my forum. the less work they have to do the better. I understand the A typical forum cares that everyone sets up a password and e-mail for security reasons but I could give a darn less. My forum is very niche and its an extremely aloof demographic dare I say some what douche even.

Its not an end all be all though thanks for any feed back.   
Title: Re: SA Twitter Integration
Post by: briggz5d on August 03, 2012, 11:21:59 AM
Hello, Nice Mod - Good for the alternative and easy login it provides.. but question:
Who Puts a LIKE / Tweet button at the top of their Page (Header) -
Why would a User LIKE / TWEET a Post or topic he/she has not even scrolled down to READ???
Please the Like/Tweet buttons are way better of at the Bottom of Post / or with option to add in each reply

Another feature i love about this mod is Auto-linkification of Twitter usernames with "@"
But again i had to disable it because No "_blank" attribute was set to it.
When users click on a a twitter username that is auto-linkified, It SHOULD Open in a NEW TAB - and not navigate them away from the current page.

my thoughts
Title: Re: SA Twitter Integration
Post by: Texan78 on August 03, 2012, 03:36:58 PM
Quote from: briggz5d on August 03, 2012, 11:21:59 AM
Please the Like/Tweet buttons are way better of at the Bottom of Post / or with option to add in each reply

You mean like this?

(http://www.mesquiteweather.net/weatherconnection/images/bottom_social.png)

Quote from: briggz5d on August 03, 2012, 11:21:59 AMAnother feature i love about this mod is Auto-linkification of Twitter usernames with "@"
But again i had to disable it because No "_blank" attribute was set to it.
When users click on a a twitter username that is auto-linkified, It SHOULD Open in a NEW TAB - and not navigate them away from the current page.

Just find the code and modify it to add the _blank so it does what you need it to do. Not a hard task.

Title: Re: SA Twitter Integration
Post by: SA™ on August 03, 2012, 04:29:04 PM
this is the part that link the @ usernames in twitterhooks.php

$context['html_headers'] .= '
<script type="text/javascript">
                twttr.anywhere(function (T) {

                    T(".section").linkifyUsers({
                        username: function(node) {
                            return node.alt;
                        }
                    });
                });

                twttr.anywhere(function(twitter) {
                    twitter.linkifyUsers();
                });
            </script>';


there is no way from what i can see to make it open in a new window google didnt realy yeld much eaither
Title: Re: SA Twitter Integration
Post by: LOVELORD on August 07, 2012, 02:15:45 AM
Hello,

when i try to asociate my forum profile with twiter account i recive this error:

An Error Has Occurred!
The database value you're trying to insert does not exist: p_twitname
Title: Re: SA Twitter Integration
Post by: SA™ on August 07, 2012, 01:00:45 PM
and have you created an application on twitter?
Title: Re: SA Twitter Integration
Post by: LOVELORD on August 07, 2012, 01:32:33 PM
yes... created... and work with publishing posts... but not work when i want to associate my account...
Title: Re: SA Twitter Integration
Post by: Antes on August 11, 2012, 08:42:34 PM
<Edit>
"No connection" error based on SEFed URLs not accepted by both sided.

I used /twitter (index.php?action=twitter SEFd). After typing action=twitter (non-sefd) everything working awesome :)
Title: Re: SA Twitter Integration
Post by: Texan78 on August 12, 2012, 10:04:51 PM
I've been doing some extensive testing to get ready to go live and the mod is working great from what I can tell. Only small thing I have come across is the feed isn't showing on the index. It's blank, anyone have any idea what might be causing that? You click on the twitter icon in the header and it shows my page, just no feed.

(http://www.mesquiteweather.net/wxconnection/screenshots/twitter_feed.png)

-Thanks
Title: Re: SA Twitter Integration
Post by: SA™ on August 13, 2012, 10:07:26 PM
what mod disoplays this last messages from twitter on boarindex that will probaly conflict with the one in this mod
Title: Re: SA Twitter Integration
Post by: Texan78 on August 14, 2012, 11:22:46 AM
Quote from: SA™ on August 13, 2012, 10:07:26 PM
what mod disoplays this last messages from twitter on boarindex that will probaly conflict with the one in this mod

Yes, it was my call my twitter mod that places the feed on the index. I was meaning to uninstall it to test it but got sidetracked. As soon as I uninstalled it the other started working. I am going to use the other, but at least I know this one works and how to make it work.

-Thanks
Title: Re: SA Twitter Integration
Post by: johnpaul2k2 on August 15, 2012, 04:18:05 PM
i have some question about this mod

1. i inserted it successfully  and also inserted all the code accordingly  but when i want to sign in via twitter.i will see the following message "You've granted access to topnichez!

Next, return to topnichez and enter this PIN to complete the authorization process"  *********
when i go back, i will not see anything :-[

2. does it has "Social Hooks" like facebook because i wish to place it where my facebook logo is ?

thanks
Title: Re: SA Twitter Integration
Post by: johnpaul2k2 on August 16, 2012, 04:12:13 AM
Please i need help!!!!
Title: Re: SA Twitter Integration
Post by: SA™ on August 16, 2012, 12:00:28 PM
look thrue the topic the anser is in this thread not too far back basiclly pin is for out of band mobile devices so you need to disable it in your app
Title: Re: SA Twitter Integration
Post by: johnpaul2k2 on August 16, 2012, 01:32:36 PM
Quote from: SA™ on August 16, 2012, 12:00:28 PM
look thrue the topic the anser is in this thread not too far back basiclly pin is for out of band mobile devices so you need to disable it in your app
Sorry but the question somebody asked about the same problem im using has no Feedback concerning PIN requirement . Please tell me what to do.

Also on the issue of Social hook, i saw many codes on that. please help me
Title: Re: SA Twitter Integration
Post by: Texan78 on August 17, 2012, 12:42:20 AM
Hello,

I am not having a problem with the Twitter integration that I have noticed. BUT I did install yesterday "RSS Feed Poster 3.0.4 Released with 2.0 Support!" It has a cron file that you can run for the mod. When you run it in the browser I get "The database value you're trying to insert does not exist: current_board".

So I go to my log file and see this error. It is referring to the TwitterHooks.php. I am stumped because I am not sure how or why a cron file from another mod could even conflict with this.

Quotehttp://www.wxconnection.com/cronrss.php
The database value you're trying to insert does not exist: current_board
Function: tiwtt_get_boards2
File: /home4/mesquiu0/public_html/wxconnection/Sources/Twitter/TwitterHooks.php
Line: 627

This is showing lines 615-627 which 627 is the line its referring to, but that's because it is the end of the line. So posting the start of that function.

function tiwtt_get_boards2($board=0){
global $smcFunc, $context, $board;

   $req1 = $smcFunc['db_query']('', '
SELECT
COUNT(*) AS total
FROM {db_prefix}boards
WHERE tweet_pubenable = {int:one} AND id_board = {string:current_board}',
    array(
            'one' => 1,
            'current_board' => $board,
        )
);


Any ideas or suggestions of what might be causing this. I am stumped and don't even know where to start looking.

-Thanks
Title: Re: SA Twitter Integration
Post by: LOVELORD on August 28, 2012, 08:01:31 PM
Hello,

Is there some info how to create app for twitter?

Like i said earlier...

First I create one app and that app work with my site.

After that i transfer my site to VPS and everything stop work. I think on facebook, twitter and google+ integration.

It show me twitter integration, but i cant intagrate with twitter accounts.

Also when someone try to register and try to register with twitter account script just back user to page where user must accept rulest and terms of use on index.php?action=register .

I try to uninstall and install again twitter integration but i recive stil same problem.

Also when I login to twitter and i have one account already integrate with accounts and when i try to open twitter settings page just star load and stop after menu.. Dont show anything under this menu in profile.
Where can be problem?
Title: Re: SA Twitter Integration
Post by: Texan78 on August 28, 2012, 08:46:12 PM
Quote from: LOVELORD on August 28, 2012, 08:01:31 PM
After that i transfer my site to VPS and everything stop work. I think on facebook, twitter and google+ integration.

Sounds like file paths are different and not the same as they were on what you were testing it on. Double check your file paths and domain in the app and in the mod.

Quote from: LOVELORD on August 28, 2012, 08:01:31 PM
Also when someone try to register and try to register with twitter account script just back user to page where user must accept rulest and terms of use on index.php?action=register .

That's what it is suppose to do. It transfers you to your Twitter app and asked you to login and accept the app and then forward you to acceptance agreement. If you are already logged in it will bypass the first step and go to the acceptance agreement. After you except the agreement then it will go to another page that asks for your username and password. Enter that and hit registered and you will be registered via Twitter. Then every time a members wants to log in hit the log in with twitter and it will log them in.

Title: Re: SA Twitter Integration
Post by: LOVELORD on August 28, 2012, 09:23:09 PM
Domain is same... all thing is same, even the ip adress becouse i change from shared hosting to VPS. I have a lot of users who use poddcast of my show.

And then all thing stop work, but i create a new app and enter again the all same things. And now all thing stop working.

Here is configuration of my app on twitter

OAuth settings

Your application's OAuth settings. Keep the "Consumer secret" a secret. This key should never be human-readable in your application.

Access level    Read, write, and direct messages
About the application permission model
Consumer key   
Consumer secret   
Request token URL   https://api.twitter.com/oauth/request_token
Authorize URL   https://api.twitter.com/oauth/authorize
Access token URL   https://api.twitter.com/oauth/access_token
Callback URL   http://www.domain.rs/index.php?action=twitter
Your access token

Use the access token string as your "oauth_token" and the access token secret as your "oauth_token_secret" to sign requests with your own Twitter account. Do not share your oauth_token_secret with anyone.

Access token   
Access token secret   
Access level   Read-only


I remove all sicret information...

That information i enter in admin panel in details about twitter integration.
Title: Re: SA Twitter Integration
Post by: Texan78 on August 29, 2012, 04:05:08 PM
What is VPS?
Title: Re: SA Twitter Integration
Post by: LOVELORD on August 29, 2012, 07:37:02 PM
Quote from: Texan78 on August 29, 2012, 04:05:08 PM
What is VPS?

Virtual Private Server, something like Hosting, just youhave dedicated ram and cpu.
Title: Re: SA Twitter Integration
Post by: Texan78 on August 29, 2012, 11:33:26 PM
It's probably a issue with with way you're hosted then.
Title: Re: SA Twitter Integration
Post by: johnpaul2k2 on August 30, 2012, 01:30:16 AM
Quote from: Texan78 on August 29, 2012, 11:33:26 PM
It's probably a issue with with way you're hosted then.
please Master help me out with this. i asked this question but i couldn't find exactly where the answer is on the previous pages

i have some question about this mod

1. i inserted it successfully  and also inserted all the code accordingly  but when i want to sign in via twitter.i will see the following message "You've granted access to topnichez!

Next, return to topnichez and enter this PIN to complete the authorization process"  DE6******
when i go back, i will not see anything

2. does it has "Social Hooks" like facebook because i wish to place it where my facebook logo is ? i need a Social hook

thanks
Title: Re: SA Twitter Integration
Post by: Texan78 on August 30, 2012, 01:52:19 AM
Are you trying to log into your forum with the same account your that you have linked to your forum?

If so that will not work.
Title: Re: SA Twitter Integration
Post by: johnpaul2k2 on August 30, 2012, 06:31:17 AM
Quote from: Texan78 on August 30, 2012, 01:52:19 AM
Are you trying to log into your forum with the same account your that you have linked to your forum?

If so that will not work.

thanks for that but what about the Social hook. please help me with it
Title: Re: SA Twitter Integration
Post by: Texan78 on August 30, 2012, 10:18:33 AM
Read this thread...

http://www.simplemachines.org/community/index.php?topic=482843.msg3381293#msg3381293
Title: Re: SA Twitter Integration
Post by: JamesWC on September 09, 2012, 10:52:42 AM
I've just added this mod to a brand new, out-of-the-box install of SMF 2.0.2, and I get the following message on SMF when Twitter's authentication page returns me to /index.php?action=twitter;area=connect;agree

QuoteAn Error Has Occurred!
No Connection

I followed all the instructions to activate the mod (app keys, etc), so immediately I'm stumped as to what this message means and how I can fix it. Any ideas please?
Title: Re: SA Twitter Integration
Post by: Texan78 on September 09, 2012, 10:56:38 PM
Quote from: JamesWC on September 09, 2012, 10:52:42 AM
I've just added this mod to a brand new, out-of-the-box install of SMF 2.0.2, and I get the following message on SMF when Twitter's authentication page returns me to /index.php?action=twitter;area=connect;agree

QuoteAn Error Has Occurred!
No Connection

I followed all the instructions to activate the mod (app keys, etc), so immediately I'm stumped as to what this message means and how I can fix it. Any ideas please?

Refresh the page and try again. May have to try it a couple times. I get it from time to time but mine works fine.
Title: Re: SA Twitter Integration
Post by: JamesWC on September 10, 2012, 12:47:39 AM
I can't ask users to do that. If that's the only solution then I'll have to uninstall the mod, which is a great shame. :(
Title: Re: SA Twitter Integration
Post by: Texan78 on September 10, 2012, 11:51:38 AM
Quote from: JamesWC on September 10, 2012, 12:47:39 AM
I can't ask users to do that. If that's the only solution then I'll have to uninstall the mod, which is a great shame. :(

So this is a user that is reporting this problem? Have you been able to replicate it?

Normally that means the info wasn't entered correctly or your Twitter App isn't set up correctly because the Mod is unable to connect to Twitter.
Title: Re: SA Twitter Integration
Post by: JamesWC on September 10, 2012, 04:26:37 PM
The forum isn't open to users yet, I'm encountering the problem myself, on multiple browsers and Twitter accounts.

In what ways could my Twitter app be set up incorrectly? The callback URL is "http://mysite.com/forum/index.php?action=twitter" and I have all the necessary keys, etc. The access level is read-only, could that be it? Do I need to somehow customize the OAuth settings? There doesn't seem to be much that I could have done wrong.
Title: Re: SA Twitter Integration
Post by: Texan78 on September 10, 2012, 11:12:44 PM
My access level is set to read and write.

Maybe try changing that and see if that works for you.
Title: Re: SA Twitter Integration
Post by: Uhura! on October 26, 2012, 07:35:04 PM
I have everything installed and when I click the login button for Twitter, nothing happens.

Pls help :(

http://ourmomspot.net/community/index.php?action=login
Title: Re: SA Twitter Integration
Post by: vbgamer45 on October 26, 2012, 08:03:19 PM
What does it do white screen or what?
Title: Re: SA Twitter Integration
Post by: Uhura! on October 26, 2012, 08:05:07 PM
Got it working!

Only two minor questions...

1) How do I fix this double text / typo (see attached)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 29, 2012, 03:49:53 PM
Error!


Can you tell me where I went wrong?
Title: Re: SA Twitter Integration
Post by: mashby on October 29, 2012, 06:48:03 PM
The issue for the double "Here" seems to be in Twitter.template.php.
                  <div class="error">'.$txt['tw_app_regonlyonce1'].'<a href="'.$scripturl.'?action=twitter;area=logsync"> '.$txt['tw_app_regonlyonce2'].'</a> '.$txt['tw_app_regonlyonce2'].'</div>
Should be:
                  <div class="error">'.$txt['tw_app_regonlyonce1'].'<a href="'.$scripturl.'?action=twitter;area=logsync"> '.$txt['tw_app_regonlyonce2'].'</a> '.$txt['tw_app_regonlyonce3'].'</div>
:)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 29, 2012, 07:54:43 PM
Gotcha, Thx!

But the integration isn't working per the error attached. I even re-created the keys.
Title: Re: SA Twitter Integration
Post by: mashby on October 29, 2012, 08:57:56 PM
Out on a limb here...
This page here has two links to Sign in with Twitter:
http://ourmomspot.net/community/index.php?action=register
The one at the top produces your screen shot. The one in the Required Information seems to work just fine. Is the stuff at the end the "key"? If so, it is different on those. If the top one can be fixed up...you might be just fine.
Title: Re: SA Twitter Integration
Post by: Uhura! on October 29, 2012, 11:12:06 PM
Quote from: monster mashby on October 29, 2012, 08:57:56 PM
Out on a limb here...
This page here has two links to Sign in with Twitter:
http://ourmomspot.net/community/index.php?action=register
The one at the top produces your screen shot. The one in the Required Information seems to work just fine. Is the stuff at the end the "key"? If so, it is different on those. If the top one can be fixed up...you might be just fine.

Thanks. I see that - the top one is malfunctioning.  Where can i access the top one?
Title: Re: SA Twitter Integration
Post by: mashby on October 29, 2012, 11:32:58 PM
Looks like it was my fault...
http://www.simplemachines.org/community/index.php?topic=489254.msg3428443#msg3428443
So, the challenge is to get the code that makes the bottom part work and put it in index.template.php. I'm thinking this is the URL to use:
<a href="'.$scripturl.'?action=twitter;area=logsync">
instead of:
<a href="https://api.twitter.com/oauth/authenticate?oauth_token=c8pd6vyX4ZALYcyaU1Le1ZOHBhiqlNBW6H7p9k6Eyg">
But I'm not 100% confident. If I'm wrong (which I could likely be), I'd remove or comment out the Twitter in the header for now. :)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 30, 2012, 11:20:02 AM
Mashby, is that the code used in the button which is actually functioning? (The button which comes up when the "login"link is pressed?)

Where can i find the code for the twitter login button which is actually working?
Title: Re: SA Twitter Integration
Post by: Uhura! on October 30, 2012, 11:32:28 AM
Mashby wait - I think i fixed it. I replaced the link from the top button with the link from the bottom one.

I am testing it now...
Title: Re: SA Twitter Integration
Post by: mashby on October 30, 2012, 12:33:56 PM
I don't think that will work either. You need to copy the pre-processed code from the area on Register to the area up top...not the generated URL, but the code that makes it appear. :)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 30, 2012, 12:35:30 PM
Makes sense...
I used it on my personal twitter and it seems to work...
Would you mind testing it? Do you have twitter?
Title: Re: SA Twitter Integration
Post by: mashby on October 30, 2012, 12:47:17 PM
Clicking the one on the top gives me this...
QuoteWhoa there!

The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.
So, what you did worked once but not again. :)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 30, 2012, 01:50:57 PM
Darn!

There's no way for me to copy the button from the bottom and put in in the top?
Title: Re: SA Twitter Integration
Post by: mashby on October 30, 2012, 02:30:25 PM
I don't know if it's impossible or not. Just need to know two things...
1. What is the code that generates the link?
2. Can it appear twice on the same page?
Not sure of either, but maybe the mod author/team knows.
Title: Re: SA Twitter Integration
Post by: Uhura! on October 30, 2012, 04:29:15 PM
So.. my question is - where can I find the file for the button at the bottom? I can see the code if I can get to that file...
Title: Re: SA Twitter Integration
Post by: SA™ on October 31, 2012, 01:10:30 PM
 u will get the error mashby was getting if U copy and paste coz there is a key in the URL that can only be used once
Title: Re: SA Twitter Integration
Post by: Twoey on November 04, 2012, 04:10:11 AM
Awesome.. Just what I was looking for. Many thanks!
Title: Re: SA Twitter Integration
Post by: skeld on November 04, 2012, 02:52:15 PM
hi, im getting a 403 error message when i try to save the settings? any idea why?
Title: Re: SA Twitter Integration
Post by: Burnden Aces on December 04, 2012, 01:06:24 PM
So far, so good for this mod. I haven't run into any problems as yet and users seem to be logging in just fine.

Looking at the Twitter API, you can import user avatars in four different sizes (bigger, normal, mini, original) - https://dev.twitter.com/docs/api/1/get/users/profile_image/%3Ascreen_name

This mod imports avatars in 'normal' size (48x48px). Where should I edit the mod to import a different size, such as bigger (73x73px)?
Title: Re: SA Twitter Integration
Post by: techguy on December 25, 2012, 06:40:58 AM
I am using SA Facebook and Twitter.
In facebook we have an option to enable registration through Facebook only but the same is not available on twitter if there any way
Title: Re: SA Twitter Integration
Post by: hik0 on February 27, 2013, 10:21:57 AM
Hello !!!

I' ve just installed this mod and I've tried to use association or login. I received this message:

QuoteThe page you requested could not be found. Please contact the site administrator if you believe you have reached this page in error.

It's the same with SA Facebook, someone could help me?

Thanks!

PD: I've invastigated on this topic and couldn't find a solution D:
Title: Re: SA Twitter Integration
Post by: OnlineFunCorner on March 08, 2013, 11:42:41 AM
twitter publisher is not working, when someone join forum or post new topic, nothing post on my twitter account
Title: Re: SA Twitter Integration
Post by: SA™ on March 08, 2013, 12:23:39 PM
and you setit all up correct there is seeting in your twitter app to allow pulishing dont ask what cos i dont know been a long time since i used twitter
Title: Re: SA Twitter Integration
Post by: Douglas on March 30, 2013, 11:16:21 AM
SA, question (and keeping in mind that I have not scanned all five pages of this): Does this mod also alter SSI.php so that I can bring the login/register feature to my main site's template?

(Great job on your latest version... looks like you got the kinks finally worked out to where I can use the Mod package as it stands without modification)

Thanks! :D
Title: Re: SA Twitter Integration
Post by: SA™ on March 30, 2013, 02:53:57 PM
no it does not edit ssi.php however

if you wanted to showthe button elseware you could try this
show_twitter_login(); function but your most likly need to include the TwitterHooks.php file for it to work
Title: Re: SA Twitter Integration
Post by: Douglas on March 30, 2013, 09:39:54 PM
Just an update. If you're already including SSI.php, all you need to do is to drop in the show_twitter_login(); command. No need to do an include on TwitterHooks.php (this is confirmed for the 2.04 branch).

One thing I would like to see happen is that when someone logs into the site via the "Log in via Twitter" button is that they get returned back to the page they were on, rather than being directed to the forums homepage.

Got any tips on that, SA? :)

EDIT: I'm going to be re-theming/re-skinning (based off of Core) and would like to control where the Twitter login button shows. Got any tips on that one, too?

(Thank you, SA. Again, you've done a GREAT job with this mod package. It's shaped up pretty damn well, my friend!)
Title: Re: SA Twitter Integration
Post by: SA™ on March 31, 2013, 03:39:40 PM
QuoteOne thing I would like to see happen is that when someone logs into the site via the "Log in via Twitter" button is that they get returned back to the page they were on, rather than being directed to the forums homepage.

Got any tips on that, SA?

from looking at twitter.php file it seem this uses the login session url if avalible do you have  a custom login url set in twitter admin?

QuoteEDIT: I'm going to be re-theming/re-skinning (based off of Core) and would like to control where the Twitter login button shows. Got any tips on that one, too?

you have to disable the edit made via the buffer first then just place the login button manualy in your theme twitterhooks.php ob_twitter() function is were the magik is done

Title: Re: SA Twitter Integration
Post by: akbora on April 06, 2013, 03:37:35 AM
I am installing but it gives errors. failed to open stream: No such file or directory in that is package no includes files. Because no setting area admin area.

Edit: Manually installed succesfully

New problem, users can not publish new topic to twitter, that is user's new topic can not only admin's new topic can? big problem how can I solve?
Title: Re: SA Twitter Integration
Post by: Manicred on April 23, 2013, 12:53:40 PM
I seem to have a problem, when users click on the login with twitter button on the site they are taken to the authorization page on twitter but when they press the "sign in" button nothing happens, Ive checked all the settings and cant seem to see the problem.

Any ideas?
Title: Re: SA Twitter Integration
Post by: Dhayzon on June 07, 2013, 09:05:29 PM
Auto-linkificacio stopped working  :(

(http://i.imgur.com/v938FGS.png)
Title: Re: SA Twitter Integration
Post by: vbgamer45 on June 08, 2013, 05:12:54 PM
Looks like twitter changed part of the api will need to look into it.
Title: Re: SA Twitter Integration
Post by: akbora on June 12, 2013, 09:37:56 PM
I'm sorry, and I'm worried
Twitter SA can not post..
API v1 retired v1.1 updated. I think I have checked new app.

Request URI: *
https://api.twitter.com/1/

This link description is: The Twitter REST API v1 is no longer active. Please migrate to API v1.1.
https://dev.twitter.com/docs/api/1.1/overview

I can not change. Can you help me how can I do it? Thanks a lot
Title: Re: SA Twitter Integration
Post by: vbgamer45 on June 12, 2013, 10:02:47 PM
Quote from: akbora on June 12, 2013, 09:37:56 PM
I'm sorry, and I'm worried
Twitter SA can not post..
API v1 retired v1.1 updated. I think I have checked new app.

Request URI: *
https://api.twitter.com/1/

This link description is: The Twitter REST API v1 is no longer active. Please migrate to API v1.1.
https://dev.twitter.com/docs/api/1.1/overview

I can not change. Can you help me how can I do it? Thanks a lot

Fixed released a new version of the modification.
Title: Re: SA Twitter Integration
Post by: akbora on June 12, 2013, 10:18:15 PM
vbgamer thank you very much thanks to you I've been very happy now with your message...
Title: Re: SA Twitter Integration
Post by: vbgamer45 on June 12, 2013, 10:38:49 PM
Glad to help!
Title: Re: SA Twitter Integration
Post by: akbora on June 12, 2013, 10:43:01 PM
Sorry little problem: SA new topic posts but turkish character is not correct on twitter. How can I correct it?

Edit: For example

Bir devletin başbakanı anamuhalefet için .....

On twitter:

Bir devletin ba?bakan? anamuhalefet için....
Title: Re: SA Twitter Integration
Post by: Dhayzon on June 13, 2013, 08:34:53 PM
stopped working help please

Quote{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}
Title: Re: SA Twitter Integration
Post by: TheListener on June 13, 2013, 08:38:12 PM
Quote from: Geroku on June 13, 2013, 08:34:53 PM
stopped working help please

Quote{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]}

This looks as though it is an error twitters end and nothing to do with the mod itself.

Have you tried the latest update as mentioned in reply 258?
Title: Re: SA Twitter Integration
Post by: Manicred on June 22, 2013, 09:03:23 AM
I've been getting this error message since I managed to actually set up everything correctly:

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

Any ideas guys?!
Title: Re: SA Twitter Integration
Post by: vbgamer45 on June 22, 2013, 09:15:03 AM
Does it say a line file/number

And what action/page are you doing to get that error.
Title: Re: SA Twitter Integration
Post by: Manicred on June 22, 2013, 09:22:25 AM
Quote from: vbgamer45 on June 22, 2013, 09:15:03 AM
Does it say a line file/number

And what action/page are you doing to get that error.

Hi mate, thanks for the reply.

Nope, it doenst say a line file/number

I click on login with twitter, and it goes to the twitter page, once I get redirected back to the site I get the error on this page: http://shanklyslegacy.co.uk/index.php?action=twitter;area=connectlog

Perhaps I need to edit some file to change " member_id"?
Title: Re: SA Twitter Integration
Post by: Manicred on June 22, 2013, 03:11:16 PM
OK, so I managed to resolve the previous error I think. But I have been getting the follow now:


We caught an EpiOAuthException

{"errors":[{"message":"Invalid or expired token","code":89}]}


Any ideas?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on June 22, 2013, 04:15:37 PM
How did you fix the previous error?

For the new error you have to resign with twitter in the admin area of SA Twitter
Title: Re: SA Twitter Integration
Post by: Manicred on June 22, 2013, 04:37:07 PM
Quote from: vbgamer45 on June 22, 2013, 04:15:37 PM
How did you fix the previous error?

For the new error you have to resign with twitter in the admin area of SA Twitter

I was using an old app, so I deleted it and created a new one. Sorry what do you mean by "resign"? Unfortunately other users are still unable to login using this app. They are getting " Error occured, no connection".
Title: Re: SA Twitter Integration
Post by: SA™ on June 22, 2013, 04:39:25 PM
you made a new app on twitter right?

if so dont forget to update the keys in twitter admin
Title: Re: SA Twitter Integration
Post by: SA™ on June 22, 2013, 04:45:56 PM
Quote from: Manicred on June 22, 2013, 09:03:23 AM
I've been getting this error message since I managed to actually set up everything correctly:

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

Any ideas guys?!

Quote from: vbgamer45 on June 22, 2013, 09:15:03 AM
Does it say a line file/number

And what action/page are you doing to get that error.

QuoteI get the error on this page: http://shanklyslegacy.co.uk/index.php?action=twitter;area=connectlog

points to line 163 twitter.php
$context['member_id'] = twit_USettings($_SESSION['twuserid'],'id_member','twitid');


Title: Re: SA Twitter Integration
Post by: Manicred on June 22, 2013, 05:50:44 PM
Quote from: SA™ on June 22, 2013, 04:39:25 PM
you made a new app on twitter right?

if so dont forget to update the keys in twitter admin
I did and I'm back to square one I think.
Quote from: SA™ on June 22, 2013, 04:45:56 PM
Quote from: Manicred on June 22, 2013, 09:03:23 AM
I've been getting this error message since I managed to actually set up everything correctly:

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

Any ideas guys?!

Quote from: vbgamer45 on June 22, 2013, 09:15:03 AM
Does it say a line file/number

And what action/page are you doing to get that error.

QuoteI get the error on this page: http://shanklyslegacy.co.uk/index.php?action=twitter;area=connectlog

points to line 163 twitter.php
$context['member_id'] = twit_USettings($_SESSION['twuserid'],'id_member','twitid');




So what do I need to edit/do to get it working?
Title: Re: SA Twitter Integration
Post by: Manicred on June 23, 2013, 11:48:39 AM
Still haven't got this working, any suggestions appreciated. This is driving me mad!
Title: Re: SA Twitter Integration
Post by: SA™ on June 23, 2013, 01:49:31 PM
QuoteSo what do I need to edit/do to get it working?

well you dont have to edit anything realy the mod works fine for me on my localhost

your issue is that $_SESSION['twuserid'] is not being set wich tells me that it not grabbing the info from twitter not sure why when the mod works for me on localhost
Title: Re: SA Twitter Integration
Post by: Manicred on June 25, 2013, 06:24:12 PM
Quote from: SA™ on June 23, 2013, 01:49:31 PM
QuoteSo what do I need to edit/do to get it working?

well you dont have to edit anything realy the mod works fine for me on my localhost

your issue is that $_SESSION['twuserid'] is not being set wich tells me that it not grabbing the info from twitter not sure why when the mod works for me on localhost

So what do I do to resolve this?
Title: Re: SA Twitter Integration
Post by: madfitz on July 06, 2013, 12:19:53 PM
Quote from: Uhura! on October 26, 2012, 07:35:04 PM
I have everything installed and when I click the login button for Twitter, nothing happens.

Pls help :(


Same here. No error messages, no white screen, just... nothing. The page just reloads and nothing happens.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on July 06, 2013, 03:23:21 PM
Are yo using the newest version?
Title: Re: SA Twitter Integration
Post by: madfitz on July 06, 2013, 05:02:07 PM
Just downloaded it today - version 1.1
Title: Re: SA Twitter Integration
Post by: madfitz on July 07, 2013, 05:10:07 PM
Figured it out. The twitter app URI (on the OAuth settings page) was pointing to h++p://api.twitter.com/1/

I changed it to h++p://....com/1.1/ and all seems to be OK now.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on July 07, 2013, 06:46:38 PM
Ah makes sense yeah they moved to the 1.1 api
Title: Re: SA Twitter Integration
Post by: SA™ on July 08, 2013, 02:22:29 PM
Quote from: madfitz on July 07, 2013, 05:10:07 PM
Figured it out. The twitter app URI (on the OAuth settings page) was pointing to h++p://api.twitter.com/1/

I changed it to h++p://....com/1.1/ and all seems to be OK now.

good catch explains why it worked on my localhost but i dont remember changing that in my app oh well :P
Title: Re: SA Twitter Integration
Post by: kingkingston on August 01, 2013, 11:52:58 PM
like the mod, easy to integrate, the only thing i have noticed is that when people register, it bypasses the setting that members must be approved by Admin

so if someone signs up through twitter, they can start posting straight away, i don't like that part about it.
Title: Re: SA Twitter Integration
Post by: SA™ on August 02, 2013, 04:21:21 PM
IMO It would kinda defeat the purpose of the the if it did that don't ya think? each to there own I guess :P
Title: Re: SA Twitter Integration
Post by: NiceCarvings on August 04, 2013, 03:09:00 PM
Does this mod automatically post new forum topics to my twitter account?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 04, 2013, 07:24:12 PM
No this is for login.

I do have a paid mod for this
http://www.smfhacks.com/tweet-topics-system.php
Title: Re: SA Twitter Integration
Post by: SA™ on August 04, 2013, 11:07:07 PM
Quote from: vbgamer45 on August 04, 2013, 07:24:12 PM
No this is for login.

I do have a paid mod for this
http://www.smfhacks.com/tweet-topics-system.php
Hmm this mod can do that
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 04, 2013, 11:07:48 PM
Oh cool learn something new!
Title: Re: SA Twitter Integration
Post by: SA™ on August 04, 2013, 11:09:18 PM
 :P
Title: Re: SA Twitter Integration
Post by: akbora on August 06, 2013, 07:35:37 AM
@vbgamer: What is the diffrence this mod with your product http://www.smfhacks.com/tweet-topics-system.php ?

I can not see any SS facebook settings or sending post. I think to buy your product I want to learn it. Thanks.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 07, 2013, 11:07:10 AM
Well that product is not a login system. My product is focused on posting topics to twitter and facebook.
Title: Re: SA Twitter Integration
Post by: akbora on August 07, 2013, 02:25:50 PM
vbgamer, already I want that the mod lets send post and topic to facebook and twitter.

I can not see SS sending facebook. How? Thanks.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 07, 2013, 03:04:14 PM
I have a similar system built into http://www.createaforum.com that you can demo+
Title: Re: SA Twitter Integration
Post by: akbora on August 08, 2013, 05:31:52 PM
Yes I have tried it via your createforum. I see the mod sends the topic to twitter. Only problem is turkish character. The other problem is facebook settings.

SS is here:

(http://www.anindatepki.com/uploads/1376094693.jpg)


1. I ticked to fb settings it turns to twit settings.
2. Number 2 is facebook profile settings doesn't open...

Thanks.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 08, 2013, 05:42:48 PM
1. Bug in CAF
2. you need to click the sigin link.
Title: Re: SA Twitter Integration
Post by: akbora on August 08, 2013, 05:58:14 PM
Sorry I don't understand? CAF?

I have signed FB profil but the mod doesn't send new topics to FB? Why?
Title: Re: SA Twitter Integration
Post by: Innbound on October 09, 2013, 03:05:05 PM

Really wish this were available for 1.1.18  :(
Title: Re: SA Twitter Integration
Post by: vbgamer45 on October 09, 2013, 03:09:48 PM
I have a paid version for SMF 1.1.x
http://www.smfhacks.com/tweet-topics-system.php
Title: Re: SA Twitter Integration
Post by: Arantor on October 09, 2013, 03:31:19 PM
I would just note that now is the time to be planning for upgrades from 1.1.x to 2.0 because before long we will be discontinuing support for 1.1.x. That time isn't yet - but it will be soon.
Title: Re: SA Twitter Integration
Post by: diontoradan on October 28, 2013, 05:43:43 AM
not working...

twitter button got no link, when i open ?action=twitter, no connection

i have reset key and put everything in the config page.

Title: Re: SA Twitter Integration
Post by: diontoradan on October 31, 2013, 12:47:49 AM
yes anyone?

is this mod working?
Title: Re: SA Twitter Integration
Post by: kingkingston on November 09, 2013, 10:06:30 AM
Quote from: diontoradan on October 28, 2013, 05:43:43 AM
not working...

twitter button got no link, when i open ?action=twitter, no connection

i have reset key and put everything in the config page.
i have wondered that as well
Title: Re: SA Twitter Integration
Post by: Uhura! on November 13, 2013, 06:49:39 PM
Got this error...

QuoteThe Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.

Can you help?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on November 13, 2013, 06:57:03 PM
Are you using the latest version?
Title: Re: SA Twitter Integration
Post by: diontoradan on November 14, 2013, 05:27:00 AM
hei, i still have the problem

the auto publisher used to work, but when i installed new version, no connections.

is it have something to do with "Request type" or "Request URI"
Title: Re: SA Twitter Integration
Post by: Uhura! on November 14, 2013, 01:12:59 PM
Quote from: vbgamer45 on November 13, 2013, 06:57:03 PM
Are you using the latest version?


Clearly no.

Link?
Title: Re: SA Twitter Integration
Post by: Arantor on November 14, 2013, 01:14:12 PM
http://custom.simplemachines.org/mods/index.php?mod=3055 should have the most recent version...
Title: Re: SA Twitter Integration
Post by: Uhura! on November 15, 2013, 09:34:48 AM
Thanks so much :)
Title: Re: SA Twitter Integration
Post by: sparky33 on November 19, 2013, 11:57:16 PM
Couple of questions, what is the Twitter category at the foot of the forum, and if you choose the "publish" option, does it automatically publish that post to twitter if the poster is signed in with their twitter ID?
Title: Re: SA Twitter Integration
Post by: Uhura! on January 14, 2014, 08:25:48 PM
Can you tell me how to fix this?

When people try to register at my site with twitter, this error comes up.

QuoteAn error has occured
We caught an EpiOAuthException

Thank you!
Title: Re: SA Twitter Integration
Post by: akbora on January 15, 2014, 03:01:11 PM
From dev twit discussion: APIv1.1 Tweets have stopped working...All fixed. By reading the top bar on this page tells the story ...
"api.twitter.com now requires SSL/TLS for all connections as of today, January 14th, 2014"

adding a single "s" to http fixed the issue.

https://dev.twitter.com/discussions/25154#comment-56840

So no streaming post from website to twitter today... What can we do?
Title: Re: SA Twitter Integration
Post by: anicolac on January 15, 2014, 03:14:32 PM
From day 14 has stopped working auto-link new threads.

It has happened to anyone else?

Saludos

Edito: https://dev.twitter.com/discussions/24239
Title: Re: SA Twitter Integration
Post by: MotRude on January 16, 2014, 10:44:05 AM
Hello, I Need to know what i'm doing wrong..i set all the information in to create the app. when i try to login using twitter it wont login...only goes to my front homepage..i did click the checkbox yes for auto login.
Title: Re: SA Twitter Integration
Post by: MotRude on January 17, 2014, 12:40:06 PM
deleted....i give up!
Title: Re: SA Twitter Integration
Post by: SMFHacks.com Team on January 21, 2014, 04:48:29 PM
Update:
Version 1.2
!Use https for api connection
Title: Re: SA Twitter Integration
Post by: MotRude on January 21, 2014, 09:31:19 PM
Thanks i will try again.
Title: Re: SA Twitter Integration
Post by: MotRude on January 21, 2014, 10:07:48 PM
Dont know why i just can't get logged in...take a look at the photo and tell me what i'm missing.

(http://s24.postimg.org/myogcbxj9/Twitter_Admin.png)
Title: Re: SA Twitter Integration
Post by: NPimenta on January 25, 2014, 06:10:59 AM
hi there, can anyone help me.

i install this mod in a brand new 2.0.7 forum, everything works fine, all keys is in the place, but in the error log i found it every minute:

PHP Fatal error:  Class 'EpiTwitter' not found in ....../public_html/Sources/Twitter/TwitterHooks.php on line 386

any help please
Title: Re: SA Twitter Integration
Post by: sparky33 on April 17, 2014, 04:05:49 PM
App stopped working as was giving an authorisation error, checked to see if app was up t date in package manger, it said it was (green dot) with version 1.1 so checked to be sure on the mod site and it was actually out of date. Deleted and installed 1.2 and now it's working again.

Why did it say it was up to date when it wasn't? 
Title: Re: SA Twitter Integration
Post by: vbgamer45 on April 17, 2014, 04:18:07 PM
The green dot in the package manager doesn't take the version number from the mod site. It just shows the latest version you have installed in the package manager
Title: Re: SA Twitter Integration
Post by: sparky33 on April 17, 2014, 04:50:44 PM
But  that is meant to inform you if you have the latest version or not? Usually turns red of the mod has been updated?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on April 17, 2014, 05:59:28 PM
Nope it just lets you know which package is the newest one you have uploaded not if there are any updates.
Title: Re: SA Twitter Integration
Post by: MotRude on April 25, 2014, 10:08:19 AM
I Have Google Login and facebook..Twitter is the only one i have had trouble adding. Can't seem to figure it out!
Title: Re: SA Twitter Integration
Post by: vbgamer45 on April 25, 2014, 11:03:34 AM
What part?
Title: Re: SA Twitter Integration
Post by: cy8erpunk on May 18, 2014, 10:38:04 AM
Sorry to bother anyone. Ok I have read over this board several times just to make sure I did not miss anything. The mod installs correctly but when anyone tries to login with twitter or register with twitter it takes me back to the home page andor registration agreement. I input all the correct info needed and it does authenticate but it will not log you in or register an account. Any ideas?
Title: Re: SA Twitter Integration
Post by: rob1986 on May 22, 2014, 07:45:20 PM
I am having problems with it as well. Did everything and when I hit login using twitter, it just goes to my homepage. Really need this to work.
Title: Re: SA Twitter Integration
Post by: JamesWC on June 14, 2014, 12:30:34 PM
When a user revokes access to my app in their Twitter settings and then tries to re-grant that access by signing back into the forum, they are taken (after Twitter's pop-up authorisation window) to an SMF error page:

QuoteWe caught an EpiOAuthException

{"errors":[{"message":"Invalid or expired token","code":89}]}

They remain signed out of the forum, so it's currently impossible for a user in this position to sign into their existing forum account through Twitter. How can I prevent this, other than telling people to never revoke access to the app because there's no going back?
Title: Re: SA Twitter Integration
Post by: GHarper on July 18, 2014, 04:12:47 AM
Hi, I recently installed your app, created a twitter app, entered all the keys into the SMF app, and attempted to associate my account. However, when I get the pin, the button leading back to my site leads to an error message, which tells me to contact my webmaster. Is this because my website is not https?
Thanks,
Greg
Title: Re: SA Twitter Integration
Post by: vbgamer45 on July 18, 2014, 08:27:51 AM
What is the error message say?
Title: Re: SA Twitter Integration
Post by: GHarper on July 18, 2014, 01:21:19 PM
It says to contact my webmaster because the DNS might not be settled, the server was moved, or my ip has changed, none of which are accurate
Title: Re: SA Twitter Integration
Post by: vbgamer45 on July 18, 2014, 05:17:38 PM
Is that exact message you get? Please copy and paste it here.
Title: Re: SA Twitter Integration
Post by: GHarper on July 18, 2014, 07:31:22 PM
SORRY!
If you are the owner of this website, please contact your hosting provider: [email protected]
It is possible you have reached this page because:


The IP address has changed.
The IP address for this domain may have changed recently. Check your DNS settings to verify that the domain is set up correctly. It may take 8-24 hours for DNS changes to propagate.

There has been a server misconfiguration.
Please verify that your hosting provider has the correct IP address configured for your Apache settings and DNS records. A restart of Apache may be required for new settings to take affect.

The site may have been moved to a different server.
The URL for this domain may have changed or the hosting provider may have moved the account to a different server.
cPanel, Inc.

I also tried using the feature on a fresh account, to no avail. Hrm.
Title: Re: SA Twitter Integration
Post by: JamesWC on August 09, 2014, 09:51:09 AM
Further to the issue I posted above on June 14, I've discovered an even bigger problem - some users can't sign up at all!

After authenticating with Twitter they are returned to the registration details page (or registration agreement if I've enabled it). The database stores their forum username, email address, even their Twitter credentials, but their last login date remains 0 and no matter how many times they try they are never able to progress beyond this registration page.

It's always the same users - a significant minority - who encounter this problem. If I delete their forum account for them to start over it just happens again, consistently. It's not a client-side issue because I've tested and experienced it myself with certain Twitter accounts while others are fine. I can't see any common trait between these Twitter accounts that can't register on my forum, and it's becoming quite an embarrassment. Any ideas please?
Title: Re: SA Twitter Integration
Post by: swaggaderby on September 11, 2014, 07:15:13 PM
Please i dont really get how this mod work...Is  that as the admin if i install it any post being posted on my forum will be automatically posted on my twitter page or what exactly....someone pls help
Title: Re: SA Twitter Integration
Post by: swaggaderby on September 30, 2014, 10:21:32 AM
I have installed the mod successfully and entered the data needed but still the publishing of url to my twitter page isnt working
Title: Re: SA Twitter Integration
Post by: Apllicmz on November 09, 2014, 02:59:53 PM
Yes Update Portuguese files
attach
Title: Re: SA Twitter Integration
Post by: 420Connect.co.uk on December 17, 2014, 06:20:33 AM
*Grabs popcorn and hopes for an update*
Title: Re: SA Twitter Integration
Post by: vbgamer45 on December 17, 2014, 11:48:23 AM
Update for what?
Title: Re: SA Twitter Integration
Post by: leofe92 on January 01, 2015, 04:50:07 PM
installed this mod and entered all the keys etc but whenever I try to completed/authorise registration it redirects to:
http://www.inspiredpe.co.uk/forum/index.php?action=twitter;area=connect;agree

and says "An Error has Occured - No Connection"

Really want to use this mod, can anyone help?
Title: Re: SA Twitter Integration
Post by: leofe92 on January 05, 2015, 01:27:03 AM
Bump
Title: Re: SA Twitter Integration
Post by: leofe92 on January 15, 2015, 12:08:58 PM
 :-\ :-\
Title: Re: SA Twitter Integration
Post by: vbgamer45 on January 15, 2015, 01:03:43 PM
Sorry haven't had time lately to look into it. Check your error log. You must be able to do I believe fsockopen command in php to twitter.
Title: Re: SA Twitter Integration
Post by: MESWEB on May 11, 2015, 07:39:44 AM
Hi. I change url image in setting and image don't change. Why?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on May 11, 2015, 12:52:30 PM
What is the exact setting name.
Title: Re: SA Twitter Integration
Post by: MESWEB on May 11, 2015, 01:42:50 PM
Twitter Integration -> Configuration:
QuoteLogin image
Title: Re: SA Twitter Integration
Post by: Paracelsus on May 11, 2015, 04:33:47 PM
vbgamer, isn't it possible to change the setting that allows members that register through twitter to bypass the manual approval? This is a no go for us since we approve manually all our members and require them to activate their account.
Title: Re: SA Twitter Integration
Post by: vbgamer45 on May 11, 2015, 04:51:54 PM
Yes it would be possible would like a minor code change on the registermember call I believe in the twitter mod.
Title: Re: SA Twitter Integration
Post by: MESWEB on May 12, 2015, 04:35:39 PM
Quote from: MESWEB on May 11, 2015, 07:39:44 AM
Hi. I change url image in setting and image don't change. Why?

Hello You are don't answer my question.
Title: Re: SA Twitter Integration-Custom Button Not working
Post by: Miker1029 on August 04, 2015, 10:35:22 AM
Hey,

  I had this working awhile ago (maybe an earlier version, not sure), But I have a custom button I want to use instead of the one that comes with the initial install, and no matter what I do, it keeps using the one that came with the install (http://si0.twimg.com/images/dev/buttons/sign-in-with-twitter-l.png)

In Custom Image I Have: http://www.android-x86.net/Themes/default/images/buttons/twitter.jpg

This SAME Link works with SA Google+,  So really not sure why it's not "TAKING", I've cleared my CDN, Browser CACHE, and Forum CACHE... Not sure what else I can do?

Added screenshots for clarity on my question, and any help would be appreciated!

Mike

EDIT:  JUST FOUND NEW PROBLEM

NOW When I Click LOG-IN with Twitter Button it just takes me back to the LOG-IN Screen,  And When I click REGISTER with TWITTER it takes me back to the Agreement Screen...

Now I know THIS WAS WORKING when I 1st installed the mod, I checked it.....
Title: Re: SA Twitter Integration-Update
Post by: Miker1029 on August 04, 2015, 01:18:55 PM
Ok, After some testing I have an Update of a couple things.......

1st thing I did was go to Twitter DEV and Regenerated all the Keys, and Added them, It WORKED!!

Went to "SIGN-IN/REGISTER" and it STOPPED Working (Did what I mentioned Above)

2. Went In AND DELETED the APP, and re-did it, Punched in the NEW TOKENS, IT WORKED!!!

Went to "SIGN-IN/REGISTER" and it STOPPED Working (Did what I mentioned Above) (With I.E. Which I NEVER Use Incase It was a Cache Thing)

OK SO I decided to get the LINK for the Button BEFORE I did anything, 1st time and this is what it was:

https://api.twitter.com/oauth/authenticate?oauth_token=ew_QJQAAAAAAg6NVAAABTvmoPY4

Ok makes sense, this is the link that works.....

When I go to do it a second time I get this:

LOGIN Screen - http://www.android-x86.net/index.php?action=login

REGISTER Screen - http://www.android-x86.net/index.php?action=register

So I guess the Question is why is the Original LINK (That works) getting replaced with the NORMAL forum links....

Do I have a Setting wrong???  I tried Disabling Auto-Login, Other then that I don't know how to set it...

SOOOOO Any Ideas On a Fix???

Mike
Title: Re: SA Twitter Integration
Post by: Uhura! on December 16, 2015, 08:10:43 PM
Excellent mod!

Question...

This mod used to display a tweet button with a count... like this:


(http://img.ourmomspot.net/images/L2lEjI1411078956/Share_This.png)


Now it displays a flat blue button with no count....like this:


(http://img.ourmomspot.net/images/I8KWVOUF1450314601/Issue.png)



How can I adjust this so it shows a tweet button with a count?

Thanks!
Title: Re: SA Twitter Integration
Post by: vbgamer45 on December 17, 2015, 12:02:19 AM
Twitter removed the share count feature no longer an option
https://blog.twitter.com/2015/hard-decisions-for-a-sustainable-platform
Title: Re: SA Twitter Integration
Post by: Uhura! on December 17, 2015, 08:50:10 AM
Well, that explains it.

Thanks vbgamer45!
Title: Re: SA Twitter Integration
Post by: vbgamer45 on December 17, 2015, 08:52:41 AM
No problem. I think it is a bad idea that twitter did I heard people are not sharing as much
Title: Re: SA Twitter Integration
Post by: Uhura! on July 10, 2016, 04:50:14 PM
Quote from: vbgamer45 on December 17, 2015, 08:52:41 AM
No problem. I think it is a bad idea that twitter did I heard people are not sharing as much

Unfortunately - you're exactly right. People aren't sharing as much because of the change.

New question:

When I change the log in image, it won't work. Can you help?

(http://img.ourmomspot.net/images/EizZ01468183798/Twitter_Log_in_Button_is_gone.png)
Title: Re: SA Twitter Integration
Post by: Uhura! on October 15, 2016, 08:50:46 PM
It has been months. Can someone help?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on October 15, 2016, 09:30:35 PM
In the admin area
Change the signin to twitter url to

http://www.smfhacks.com/images/sign-in-with-twitter-l.png
Title: Re: SA Twitter Integration
Post by: SMFHacks.com Team on October 15, 2016, 09:37:29 PM
Update
Version 1.3
!Fixed signin twitter image for new installs. Link is now set to http://www.smfhacks.com/images/sign-in-with-twitter-l.png
!Updated http://twitter.com to https://twitter.com for profile links,sharing.
Title: Re: SA Twitter Integration
Post by: KirkhamsEbooks on October 22, 2016, 01:43:39 PM
My first API and thanks to your wonderful directions I got it working within 15 minutes so thank you for that.

Since I'm new to API I'm wondering if I have to create a new app for each of my forums which use a different Twitter account or can I use the same information but change the Twitter username?

Rick
Title: Re: SA Twitter Integration
Post by: vbgamer45 on October 22, 2016, 03:14:43 PM
I believe a new app for each twitter handle
Title: Re: SA Twitter Integration
Post by: PoolGr on November 30, 2016, 05:02:43 PM
Hi,
so I installed the forum and the mod, and before testing it I had to change domain.
I updated all domain path with repair settings. The twitter API I created with new parh.
link for twitter look ok, but when I click "sign in with twitter" it doesn't work.

any help?

Also- can I disable regular registration and only enable twitter sign in?

Title: Re: SA Twitter Integration
Post by: Firefox5050 on August 11, 2017, 11:19:31 PM
I'm having a really strange issue with this mod. I seem to have gotten it installed and setup to work with Twitter ok. The problem is that when a new user registers via Twitter it just goes in a redirecting loop. The new user will be redirected back to the forum's registration agreement on completing registration and asked to fill in their details again after that. Interestingly, it appears that the new user is created successfully even though the user is sent back to the start of the registration process as a guest.

Another issue is that the mod seems to have cached it's own settings from a former install. I moved web hosts years ago and used to have an older version of SA Twitter installed on the forum which I uninstalled and deleted via the package manager. Now with the latest version of the mod freshly installed, it is linking new users to old synced Twitter accounts from the previous install that should not be linked to the new accounts.

TLDR; How can I stop this mod from repeatedly redirecting back to the forum's registration agreement on completion of registration and how can I clear the old settings and logs that appear to be corrupting the new install? 

Thanks :)
Title: Re: SA Twitter Integration
Post by: Uhura! on August 27, 2017, 09:21:56 AM
Hello! This error pops up when people try to log into my forum with twitter.

Can you tell me how to fix this?

Thank you!
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 27, 2017, 09:33:41 AM
Are you using the newest version?
Title: Re: SA Twitter Integration
Post by: Uhura! on August 27, 2017, 09:52:28 AM
Thanks for replying so quickly.

According to my package manager, I'm running 2.1.2.

The other piece of info is - I recently changed all my urls from http to https. Could that be the issue?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on August 27, 2017, 10:29:27 AM
That could be it. Did you update twitter callback url to https? for your twitter app?
Title: Re: SA Twitter Integration
Post by: jack001 on January 02, 2020, 12:28:42 PM
available for 2.1 RC2?
Title: Re: SA Twitter Integration
Post by: vbgamer45 on January 02, 2020, 12:48:11 PM
Not currently no. Will hopefully be final 2.1