YAFLogo

brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Trying to allow login with facebook.

When you click login though .. the 'Login with facebook' just shows as text rather than being a button.

Any clues?


UserPostedImage New Network Edition V2.8 - Released Dec 2013 
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: brigzy 

Trying to allow login with facebook.

When you click login though .. the 'Login with facebook' just shows as text rather than being a button.

Any clues?



Are there any js error, it works for me on your site (Tested with IE9, Chrome and firefox)
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Oh thats odd .. this is what I see ..
UserPostedImage

or if that preview is small try :
http://leansoftware.net/forum/images/badface.png 

I get this with IE8 and IE9 but not with google chrome.

With Google Chrome the button renders ok, but when you click on it box pops up that disapears again and takes me back to the login popup.

Thanks for your help yesterday
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Oh sorry I should say there aer no javascript errors..
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: brigzy 

Oh thats odd .. this is what I see ..
UserPostedImage

or if that preview is small try :
http://leansoftware.net/forum/images/badface.png 

I get this with IE8 and IE9 but not with google chrome.

With Google Chrome the button renders ok, but when you click on it box pops up that disapears again and takes me back to the login popup.

Thanks for your help yesterday



It looks like that in some cases the async loading doesn't work. I tweaked the code a bit, looks like it works now in all browsers.

If you want to update your forum you need to recompile the source code, the updated files can be found here:

http://yafnet.codeplex.com/SourceControl/changeset/changes/7fc5abe3bb46 
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Hi there,

thanks for this ...

trying rebuild but I have an error just a at the moment:

Error 185 'YAF.Utilities.JavaScriptBlocks' does not contain a definition for 'asynchCallFailedJs' D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\controls\AlbumList.ascx.cs 134 50 YAF

code:
YafContext.Current.PageElements.RegisterJsBlockStartup(
"asynchCallFailedJs", JavaScriptBlocks.asynchCallFailedJs);

The source I have is titled 'YEF-v1.9.6-RC1-SRC' + the file changes from CodePlex.

I am wondering if I need a later build or if I have something else wrong..

Richard
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Originally Posted by: brigzy 

Hi there,

thanks for this ...

trying rebuild but I have an error just a at the moment:

Error 185 'YAF.Utilities.JavaScriptBlocks' does not contain a definition for 'asynchCallFailedJs' D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\controls\AlbumList.ascx.cs 134 50 YAF

code:
YafContext.Current.PageElements.RegisterJsBlockStartup(
"asynchCallFailedJs", JavaScriptBlocks.asynchCallFailedJs);

The source I have is titled 'YEF-v1.9.6-RC1-SRC' + the file changes from CodePlex.

I am wondering if I need a later build or if I have something else wrong..

Richard



Ignore that, I did not copy the JavaScriptBlocks correctly.

I have a few errors this time (visual studio 2008) :oops:


Error 28 The type or namespace name 'Module' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\UtilitiesModule.cs 35 34 YAF.Utils
Error 5 The type or namespace name 'IRegistrationBuilder' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\Extensions\IRegistrationBuilderExtension.cs 51 19 YAF.Utils
Error 6 The type or namespace name 'IRegistrationBuilder' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\Extensions\IRegistrationBuilderExtension.cs 53 22 YAF.Utils
Error 29 The type or namespace name 'ContainerBuilder' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\UtilitiesModule.cs 45 44 YAF.Utils
Error 30 The type or namespace name 'ContainerBuilder' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\UtilitiesModule.cs 58 52 YAF.Utils
Error 4 The type or namespace name 'Autofac' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\Extensions\IRegistrationBuilderExtension.cs 23 9 YAF.Utils
Error 27 The type or namespace name 'Autofac' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YAF.Utils\UtilitiesModule.cs 25 9 YAF.Utils
Error 7 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Utils.dll' could not be found YAF.Classes.Data
Error 8 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Utils.dll' could not be found YAF.Core
Error 10 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Utils.dll' could not be found YAF.Controls
Error 13 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Utils.dll' could not be found YAF.Providers
Error 16 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Utils.dll' could not be found YAF
Error 18 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Providers.dll' could not be found YAF
Error 12 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Core.dll' could not be found YAF.Controls
Error 15 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Core.dll' could not be found YAF.Providers
Error 19 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Core.dll' could not be found YAF
Error 20 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Controls.dll' could not be found YAF
Error 9 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Classes.Data.dll' could not be found YAF.Core
Error 11 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Classes.Data.dll' could not be found YAF.Controls
Error 14 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Classes.Data.dll' could not be found YAF.Providers
Error 17 Metadata file 'D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6-RC1-SRC\YetAnotherForum.NET\Bin\YAF.Classes.Data.dll' could not be found YAF

UserPostedImage New Network Edition V2.8 - Released Dec 2013 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
This version is not compatible with vs 2008, you need vs 2010 or newer to compile.

But it looks like that the autofac.dll is missing in the bin folder.
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Ah ..

my mistake I think should have been using source YAF-v1.9.6.1-RTW-SRC (I was using YAF-v1.9.6-RC1-SRC).

Has built OK now (vs 2010) with warning but no errors.

I guess I just need to copy all the contents of the Bin folder, plus the modified ascx files to the production site?

Thank you
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: brigzy 


I guess I just need to copy all the contents of the Bin folder, plus the modified ascx files to the production site?




Yes correct, and make backup of the existing files if something goes wrong.
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Ok that is looking better, thank you.

I think now I just need to undertand a bit more...

I am trying to login as a new unregistered user with my email @ntlworld.com'.
I have used this email before for testing , but it is not currently in the table YAF_users.

When I try login with FB (when allready logged into FB) it sais 'The Facebook User ID does not match!'.

Does this happen for you too?

I am wondering if the email is stored somewhere else other than YAF_users.

Allmost there!

Thank you
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: brigzy 

Ok that is looking better, thank you.

I think now I just need to undertand a bit more...

I am trying to login as a new unregistered user with my email 'brigzy@ntlworld.com'.
I have used this email before for testing , but it is not currently in the table YAF_users.

When I try login with FB (when allready logged into FB) it sais 'The Facebook User ID does not match!'.

Does this happen for you too?

I am wondering if the email is stored somewhere else other than YAF_users.

Allmost there!

Thank you




It that message comes up the email is found in the membership! The yaf_users table is not the problem in that case. The membership user with the email is stored in the yaf_prov_Membership table.

brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago
Oh wow it works!

that is brilliant - instant registration!

Now I need to do the same with Twitter - I believe it is possible?

Thankyou

UserPostedImage New Network Edition V2.8 - Released Dec 2013 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
10 years ago
Originally Posted by: brigzy 

Oh wow it works!

that is brilliant - instant registration!

Now I need to do the same with Twitter - I believe it is possible?

Thankyou



Sure it's possible :cheesy:


http://yafnet.codeplex.com/wikipage?title=Twitter%20Integration&referringTitle=Documentation 
brigzy
  • brigzy
  • 66.2% (Friendly)
  • YAF Commander Topic Starter
10 years ago

Thanks for the Twitter link.

Just realised have built in debug mode ..

Tried to rebuild in Release mode but have these errors ..


Error 196 The type or namespace name 'nStuff' could not be found in the global namespace (are you missing an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YetAnotherForum.NET\pages\search.ascx.designer.cs 31 27 YAF
Error 197 The type or namespace name 'nStuff' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YetAnotherForum.NET\pages\search.ascx.cs 34 11 YAF
Error 198 The type or namespace name 'HistoryEventArgs' could not be found (are you missing a using directive or an assembly reference?) D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YetAnotherForum.NET\pages\search.ascx.cs 355 83 YAF

Not sure why though as it built fine before..
I have been using 'Rebuild solution'..
UserPostedImage New Network Edition V2.8 - Released Dec 2013 
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