News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SA Twitter Integration

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

Previous topic - Next topic

Texan78

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.

JamesWC

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.

Texan78

My access level is set to read and write.

Maybe try changing that and see if that works for you.

Uhura!

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
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

vbgamer45

What does it do white screen or what?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Uhura!

Got it working!

Only two minor questions...

1) How do I fix this double text / typo (see attached)
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Uhura!

Error!


Can you tell me where I went wrong?
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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>
:)
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

Gotcha, Thx!

But the integration isn't working per the error attached. I even re-created the keys.
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

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?
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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. :)
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

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?
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Uhura!

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...
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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. :)
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

Makes sense...
I used it on my personal twitter and it seems to work...
Would you mind testing it? Do you have twitter?
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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. :)
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

Darn!

There's no way for me to copy the button from the bottom and put in in the top?
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

mashby

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.
Always be a little kinder than necessary.
- James M. Barrie

Uhura!

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...
:) Our Parenting Spot is an online parenting community for fathers, mothers, grandparents, teachers, and family service professionals. 8) We also provide low cost advertising options for authors, family service providers, and businesses with family friendly products and services. ;D Visit us @ www.OurParentingSpot.net!

Advertisement: