• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Twitter Authentication

vB3 has a twitter authentication modification. vB4 has free but limited twitter authentication modification with janrain but you'd have to pay to unlock it's full capability.
 
Can anyone figure this addon out? a dev maybe? This is kinda a big feature with twitter being used by everyone :) fb is awesome but twitter would complete the package
 
This is one of those things that would just be a major plus for us if we could have it, I've done some very basic research and I reckon we'd see a small, but significant increase in registrations if this was available.
 
Guessing its being overlooked in the next release again - seen as the RC's just been announced.
 
Add-on Updated

I went ahead and updated this add-on since the developer hasn't replied in this thread for nearly 1 year. After initial testing I found the authentication piece of the add-on was functional, but errors with the datawriter, registration form defaults/error checking, and custom user fields weren't supported.

So, I updated it to support custom fields, fixed the errors I found, then tested user data upon registration; everything appears to be functioning as expected. I also went ahead and put the login button into the login bar via hooks, so there's no need for editing. The login button will show if the add-on is active, and won't if it's disabled.

Install:
  1. Upload all contents inside the upload folder to your forum root.
  2. Import the XML file inside the TwitterAuthentication folder.
  3. Go to https://dev.twitter.com/apps and create an application.
  4. In the ACP go to Options -> Twitter Authentication and insert your consumer key and consumer secret for your Twitter app.



I followed all of the directions but then when I tested it by trying to log in with the twitter button I get this error:

OldRow - Error
A server error occurred. Please try again later.
 
What are the app settings that we need to use, there are a lot of different settings, maybe that is what my error is.
 
I followed all of the directions but then when I tested it by trying to log in with the twitter button I get this error:

OldRow - Error
A server error occurred. Please try again later.

Is that all it says? Does this happen before it goes to the authorize an application screen or after?

twitter.webp

What are the app settings that we need to use, there are a lot of different settings, maybe that is what my error is.

On the app settings tab for my app I have name, description, website, access (read only) and callback URL filled in. URL's like this...

twitter.webp
 
Okay looks like I got it to work and associated my twitter with an account. But it brings up the authorize an app screen every time I try to log in with twitter now after I log out. Shouldn't it remember that I authorized it already?
 
Okay looks like I got it to work and associated my twitter with an account. But it brings up the authorize an app screen every time I try to log in with twitter now after I log out. Shouldn't it remember that I authorized it already?

Updated. Download the package again and upload the files only, no changes to the XML file. Let me know if you have any problems.
 
Is there a similar code to this that can add the twitter button to the visitor panel?

Code:
/* Add Facebook login button to visitor panel */
.cta_fbButton {
margin: 10px 30px;
text-align: center;
}
 
It looks like that css came from this post by Brogan. So, if you want to show twitter and facebook both you'll need to add the code below the closing </xen:if> for facebook button, otherwise insert right below this code in the sidebar_visitor_panel template.

Find this:
Code:
<div class="section loginButton">
<div class="secondaryContent">
<label for="LoginControl" id="SignupButton"><a href="{xen:link login}" class="inner">{xen:phrase sign_up_now}</a></label>

Insert this below:
Code:
<xen:if is="{$xenOptions.c2Twitter_consumerKey}">
<div class="cta_twButton">
<a href="{xen:link register/twitter, '', 'reg=1'}" class="twLogin"><img src="http://a0.twimg.com/images/dev/buttons/sign-in-with-twitter-d.png" alt="Sign up with Twitter" /></a>
</div>
</xen:if>

Then add this to extra.css
Code:
/* Add Twitter login button to visitor panel */
.cta_twButton {
margin: 10px 30px;
text-align: center;
}
 
Add-on Updated

...

So, I updated it to support custom fields, fixed the errors I found, then tested user data upon registration; everything appears to be functioning as expected...

...
Leave spanish translate updated addon for spanish install. Leave spanish button in local directory (for translations purpose). Work fine. Thanks.

Salud2
 

Attachments

Top Bottom