News:

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

Main Menu

[WIP] SA Twitter Integration

Started by SA™, May 09, 2011, 03:24:34 AM

Previous topic - Next topic

SA™

my latest mod

once installed creat an app on twitter
https://dev.twitter.com/apps/new

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

feedback good or bad is appretiated

http://custom.simplemachines.org/mods/index.php?mod=3055
http://samods.github.io/SAChatBar/

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

Masterd

This is nice. Keep up the good work. :)

SA™

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

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

SA™

#3
package update fixed many errors and added admin panel

live demo
http://www.sa-mods.info/index.php
http://samods.github.io/SAChatBar/

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

SA™

wow two days and one reply no one interested in this? or am i just being ignored :(
http://samods.github.io/SAChatBar/

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

Dreko


SA™

any body else writes a mod and people are on it like flys around s*** i write a mod and get ignored what gives?

it sure makes me think why the helll do i bother

* SA™ gives up

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

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

DoctorMalboro

Excelent mod. I tried to wrote something like this many times, but OAuth beat me... You are a hell of a coder to make this effort and give it for free...

Most people won't thank you because, well, the world is selfish. So, thank you for sharing and I hope to see it out of the wip soon... ;)

Matthew K.

DoctorMalboro is right. Most people don't appreciate what people contribute and take it for granite, which is why I think most modders who write big mods eventually move to paid mods to at least regain something from donating so much time and effort into big projects.

Keep up the good work SA!

SA™

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

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

~DS~

"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SA™

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

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

Douglas

Didn't go as planned, files are not going into the right directory.  After I manually moved Twitter.php to the correct directory, gave me the white screen of death.

Will have to delete all files and DB (kind of annoyed, but it wasn't a production site) and reload the forums from scratch.

You need to check your coding/installation package.  I really want this integration, as it would allow me to ditch WordPress.  :D
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

~DS~

Fancy seeing you here, Douglas. I'm beta testing this, and don't have this issue. It's still WIP so there might be bugs...
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

SA™

i have tried this on sevaral sites myself and have not had that problem ive even got it on my live site with no problems
ill do more testing later with it
http://samods.github.io/SAChatBar/

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

Douglas

To be fair, I also did a small update from RC4 to RC5 before doing the package installation.  I'm gonna go ahead and blow out the forum install and do a fresh one and then try to do the upgrade again.

I should note that I didn't see the key/secret variables in the {$smf}_settings table, only the enabled one.  (Can you tell just how much I want this working?  HAH!)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

SA™

there is no default setting for key/secret variables so it wont show in your db untill you add the keys

im using updateSettings() to install default settings but it seems to overwrite the settings each time you reinstall so i took the default settings for the keys out
http://samods.github.io/SAChatBar/

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

Douglas

#17
Okay, same exact errors on a brand new RC5 installation (no other mods installed).

QuoteNotice: Undefined index: tw_app_id in /home/gh/public_html/forums/Sources/Twitter/TwitterHooks.php on line 30

Notice: Undefined index: tw_app_key in /home/gh/public_html/forums/Sources/Twitter/TwitterHooks.php on line 31

Warning: require_once(/home/gh/public_html/forums/twitterauth/lib/Twitter.php) [function.require-once]: failed to open stream: Not a directory in /home/gh/public_html/forums/Sources/Twitter/TwitterHooks.php on line 191

Fatal error: require_once() [function.require]: Failed opening required '/home/gh/public_html/forums/twitterauth/lib/Twitter.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/gh/public_html/forums/Sources/Twitter/TwitterHooks.php on line 191

What's interesting is that the installation package created a 0 byte file called "lib" in the "twitterauth" directory.  This means that "Twitter.php" is not going into the right directory (it placed it in the Sources/Twitter folder.

UPDATE:  Got the dreaded white screen again.  When I "breaK" TwitterHooks.php by leaving an unclosed comment, the page loads up (albeit with an error message)

The culprits seem to be on
   $consumer_key = $modSettings['tw_app_id'];
   $consumer_secret = $modSettings['tw_app_key'];

It's important to note that when I have those enabled or commented out completely that I get the WSOD.

Also, I went to your site and was going to sign up via my Twitter account, however, it still asked me for a username, email, etc etc.  This needs to be seamless for people.  :)

(Again, if you can get this working properly, severa people would be extremely grateful, including myself. If it works EXACTLY as intended, I may implement this on Hogville.)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

SA™

#18
QuoteAlso, I went to your site and was going to sign up via my Twitter account, however, it still asked me for a username, email, etc etc.  This needs to be seamless for people.

you can not get the users email with twitter api
password is for secrity
and name well explains it self :P

anyway you only need to do this once any logins after that are seamless

QuoteUPDATE:  Got the dreaded white screen again.  When I "breaK" TwitterHooks.php by leaving an unclosed comment, the page loads up (albeit with an error message)

can you try it now i just updated the package?
http://samods.github.io/SAChatBar/

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

Douglas

#19
Okay, the WSOD error was a PEBCAK error on my part.

One thing that needs to be fixed in your integration is that every time I log in via my Twitter account, it asks me to authorize the app. It should only take me to that screen once, on registration.

Getting there. :)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie / Guru / Maven / whatever)

Advertisement: