YAFLogo

ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Hey guys

loving some of the new features in RC1 and I did some testing on it last night.

I know I'm posting this in issues & bugs but I thought this was the best place for it.

1. Could Multiquote not do a postback for each one you want to quote? for obvious reasons if you want to quote say 3 posts you have to do a postback twice before even being able to click the final "quote" button to quote all 3.

2. I clicked the Twitter single sign-on and signed into twitter, this then created a new user in YAF and this works fine. However in my actual profile (not the new twitter one) I had already put that in as my twitter name. What I'm asking is, is there a way to link twitter to an already existing user in YAF?

Thanks in advance
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
1. I need to change the logic to use some ajax to do it without post back. but it should be possible.

2. Set up only the twitter name in the Profile is not enough you also need to enter your twitter id bellow the name (to find the ID Simply take a look at the url of your Twitter Avatar Url "https://si0.twimg.com/profile_images/xxxx/me_normal.png"), if both set up it should work fine
ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Originally Posted by: tha_watcha 

1. I need to change the logic to use some ajax to do it without post back. but it should be possible.

2. Set up only the twitter name in the Profile is not enough you also need to enter your twitter id bellow the name (to find the ID Simply take a look at the url of your Twitter Avatar Url "https://si0.twimg.com/profile_images/xxxx/me_normal.png"), if both set up it should work fine



Cheers... i presume I have to also have the "create user on SSO" checked in the host settings too? I will give this a go.

Thanks for the help and I hope you find a good way of doing the multiquote ajax thing
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Originally Posted by: ruek23 

Originally Posted by: tha_watcha 

1. I need to change the logic to use some ajax to do it without post back. but it should be possible.

2. Set up only the twitter name in the Profile is not enough you also need to enter your twitter id bellow the name (to find the ID Simply take a look at the url of your Twitter Avatar Url "https://si0.twimg.com/profile_images/xxxx/me_normal.png"), if both set up it should work fine



Cheers... i presume I have to also have the "create user on SSO" checked in the host settings too? I will give this a go.

Thanks for the help and I hope you find a good way of doing the multiquote ajax thing



No "create user on sso" is a setting to decide if the twitter/facebook user should be created if not exists. But you need to enable the "use sso" setting in your user profile if you want to login with an existing account.
ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Thanks again and I just wanted to show you exactly what I've done as I still cannot get it to work.

Please note I have put the twitter info in the app.config

in the pictures:-

Host settings

my profile -> twitter name and ID from my twitter profile image

https://twimg0-a.akamaihd.net/profile_images/11??????64/avatarpic-l.png 

Then the popup then i click sign in using twitter and then when I click auth app.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Did you enable sso in your user profile?
ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Originally Posted by: tha_watcha 

Did you enable sso in your user profile?



ye I had that set from the facebook one which has been working fine
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Your twitter username needs to match your yaf username otherwise yaf can not fin you as existing user.

For the facebook login it try to find the user by email, which doesnt work in twitter.
ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Originally Posted by: tha_watcha 

Your twitter username needs to match your yaf username otherwise yaf can not fin you as existing user.

For the facebook login it try to find the user by email, which doesnt work in twitter.



right I get it 🙂 thanks for that, typical that they cannot match on multiple values like email as well as username, is there a reason you don't do it against the twitter name value in my profile?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
12 years ago
Originally Posted by: ruek23 

Originally Posted by: tha_watcha 

Your twitter username needs to match your yaf username otherwise yaf can not fin you as existing user.

For the facebook login it try to find the user by email, which doesnt work in twitter.



right I get it 🙂 thanks for that, typical that they cannot match on multiple values like email as well as username, is there a reason you don't do it against the twitter name value in my profile?



The Membership Provider only allows to Validate a Member by Username or Email because that are the only Profile Properties which are always unique.

That wouldn't work with your twitter name profile field.

For example you have setup your twitter name + twitter id, and a second user enters the same name and id there would be no possibility for yaf to decide which is the correct user, and the second user would been able to login through your account.
ruek23
  • ruek23
  • 90.2% (Exalted)
  • YAF Lover Topic Starter
12 years ago
Originally Posted by: tha_watcha 

Originally Posted by: ruek23 

Originally Posted by: tha_watcha 

Your twitter username needs to match your yaf username otherwise yaf can not fin you as existing user.

For the facebook login it try to find the user by email, which doesnt work in twitter.



right I get it 🙂 thanks for that, typical that they cannot match on multiple values like email as well as username, is there a reason you don't do it against the twitter name value in my profile?



The Membership Provider only allows to Validate a Member by Username or Email because that are the only Profile Properties which are always unique.

That wouldn't work with your twitter name profile field.

For example you have setup your twitter name + twitter id, and a second user enters the same name and id there would be no possibility for yaf to decide which is the correct user, and the second user would been able to login through your account.


Good point as soon as I read membership provider it clicked.. thanks again.
Dr-Hack
  • Dr-Hack
  • 100% (Exalted)
  • YAF All-the-Time
12 years ago
other then if it is validated from twitter it self .. like when id is entered yaf asks for validation from Twitter .. user enters username password ... yaf is given the go ahead and twitter is attached with yaf
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button