YAFLogo

Posted by: brigzy - Friday, 6 July 2012 14:22:36
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?

Posted by: tha_watcha - Friday, 6 July 2012 15:52:05
[quote=brigzy;55316]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? [/quote] Are there any js error, it works for me on your site (Tested with IE9, Chrome and firefox)

Posted by: brigzy - Friday, 6 July 2012 16:54:20
Oh thats odd .. this is what I see .. [img=http://leansoftware.net/forum/images/badface.png]face[/img] or if that preview is small try : [url=http://leansoftware.net/forum/images/badface.png]http://leansoftware.net/forum/images/badface.png[/url] 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

Posted by: brigzy - Friday, 6 July 2012 16:55:55
Oh sorry I should say there aer no javascript errors..

Posted by: tha_watcha - Saturday, 7 July 2012 20:03:00
[quote=brigzy;55324]Oh thats odd .. this is what I see .. [img=http://leansoftware.net/forum/images/badface.png]face[/img] or if that preview is small try : [url=http://leansoftware.net/forum/images/badface.png]http://leansoftware.net/forum/images/badface.png[/url] 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[/quote] 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

Posted by: brigzy - Monday, 9 July 2012 09:49:30
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

Posted by: brigzy - Monday, 9 July 2012 10:04:25
[quote=brigzy;55370]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[/quote] 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

Posted by: tha_watcha - Monday, 9 July 2012 11:21:07
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.

Posted by: brigzy - Monday, 9 July 2012 12:01:39
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

Posted by: tha_watcha - Monday, 9 July 2012 12:20:03
[quote=brigzy;55374] I guess I just need to copy all the contents of the Bin folder, plus the modified ascx files to the production site? [/quote] Yes correct, and make backup of the existing files if something goes wrong.

Posted by: brigzy - Monday, 9 July 2012 13:26:37
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

Posted by: tha_watcha - Monday, 9 July 2012 14:20:05
[quote=brigzy;55376]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 [/quote] 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.

Posted by: brigzy - Monday, 9 July 2012 14:31:37
Oh wow it works! that is brilliant - instant registration! Now I need to do the same with Twitter - I believe it is possible? Thankyou

Posted by: tha_watcha - Monday, 9 July 2012 14:33:53
[quote=brigzy;55378]Oh wow it works! that is brilliant - instant registration! Now I need to do the same with Twitter - I believe it is possible? Thankyou [/quote] Sure it's possible :cheesy: http://yafnet.codeplex.com/wikipage?title=Twitter%20Integration&referringTitle=Documentation

Posted by: brigzy - Monday, 9 July 2012 15:07:10
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'..

Posted by: tha_watcha - Monday, 9 July 2012 15:19:33
[quote=brigzy;55380] 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'..[/quote] Sometimes it deletes the referenced dlls in the bin folder because the reference folder is the same as the output folder. You need to restore the nstuff.updatecontrols.dll from the download packages.

Posted by: brigzy - Monday, 9 July 2012 15:26:13
Yep that helped, thank you Now just have this error: Error 90 'YAF.Utilities.JavaScriptBlocks' does not contain a definition for 'asynchCallFailedJs' D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YetAnotherForum.NET\controls\AlbumList.ascx.cs 134 50 YAF Error 106 'YAF.Utilities.JavaScriptBlocks' does not contain a definition for 'asynchCallFailedJs' D:\OurWorld\SoftwareInstalls\YAF\YAF-v1.9.6.1-RTW-SRC\YetAnotherForum.NET\controls\AlbumImageList.ascx.cs 164 50 YAF I checked the source file though and the declarion is there ok:- [code] /// /// Gets the If asynchronous callback encounters any problem, this javascript function will be called. /// [NotNull] public static string AsynchCallFailedJs { get { return "function CallFailed(res){{alert('Error Occurred');}}"; } } [/code]

Posted by: tha_watcha - Monday, 9 July 2012 15:37:07
Simply change the call in the albumlist.ascx.cs file to Async ... It is case sensitive.

Posted by: brigzy - Monday, 9 July 2012 15:57:01
So close! I could do with making the Facebook button a bit bigger / aligning - see image: [img=http://leansoftware.net/forum/images/login.png]http://leansoftware.net/forum/images/login.png[/img] [url=http://leansoftware.net/forum/images/login.png]http://leansoftware.net/forum/images/login.png[/url] Could anyone try the Twiter sign up for me ? (I only have one Twitter account (@lean_software) and the authorisation fails when I try to sign on with that account) Thanks so very much

Posted by: brigzy - Monday, 9 July 2012 17:48:39
Couple of questions: How to modify the confrmation email content? How to change things so that only very basic information (name & email) is requested from FB? Many thanks

Posted by: brigzy - Monday, 9 July 2012 18:55:28
[quote=brigzy;55387]Couple of questions: How to modify the confrmation email content? How to change things so that only very basic information (name & email) is requested from FB? Many thanks[/quote] Worked the answer to second question - I changed the scope in LoginBox.asc to email only: [code]

Posted by: tha_watcha - Monday, 9 July 2012 19:11:58
All Email Templates are stored in the language files, the Facebook Registration Email [code=xml;-1] Hello {user}. You have been successfully Registred on the {forumname} forum thru Facebook: User Name: {user} Auto Generated Password: {pass} Auto Generated Security Answer: {answer} User Email: {email} (Please dont change your email, or you are unable to login with facebook) [/code] Before you ask there are no additional tokens available