YAFLogo

Stegothedump
12 years ago
Looking to add some fields to the profile, if i have the source code and I'm assuming i need to change the following

Database

Stored Procedure

User controls

Although have problems tracking down the parts involved, anyone done this?

Stephen

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago
I wrote a guide a couple month back how to add additionally profile fields, which also could show up on the Register Page.

http://forum.yetanotherforum.net/yaf_postsm54025_Will-this-put-another-required-field-in-my-registration-page.aspx#post54025 

The_Ryan
  • The_Ryan
  • 50.2% (Neutral)
  • YAF Forumling
12 years ago
Thanks for the reply, i was searching to find to customization of profile.
Stegothedump
12 years ago
thanks watcha...I've ran through your post (fantastic) and all the new stuff is compiling without errors..but I now have 63 errors relating to existing code which i have not changed?

An example of one is shown below..

Error 248 'YAF.Pages.register' does not contain a definition for 'PageLinks' and no extension method 'PageLinks' accepting a first argument of type 'YAF.Pages.register' could be found (are you missing a using directive or an assembly reference?) C:\websites\CloudWiseForum\YetAnotherForum.NET\pages\register.ascx.cs 472 14 YAF

Any idea what this would be?

S

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

thanks watcha...I've ran through your post (fantastic) and all the new stuff is compiling without errors..but I now have 63 errors relating to existing code which i have not changed?

An example of one is shown below..

Error 248 'YAF.Pages.register' does not contain a definition for 'PageLinks' and no extension method 'PageLinks' accepting a first argument of type 'YAF.Pages.register' could be found (are you missing a using directive or an assembly reference?) C:\websites\CloudWiseForum\YetAnotherForum.NET\pages\register.ascx.cs 472 14 YAF

Any idea what this would be?

S

Originally Posted by: Stegothedump 

This happens because Visual Studio messed up the register.ascx.designer.cs file. You need to manually fix the designer files

it should look like this

protected global::YAF.Controls.PageLinks PageLinks;

and

protected global::YAF.Controls.SmartScroller SmartScroller1;

This happens when you dont have a web.config in your solution file. You can avoid that by adding the default yaf web.config (from the webconfigs folder rename the recommended-NET-web to web.config and copy it to the root) to the main YAF Project in VS

Stegothedump
12 years ago
hmm all i have in that page is the following...can i get a copy from codeplex?

//------------------------------------------------------------------------------

//

// This code was generated by a tool.

//

// Changes to this file may cause incorrect behavior and will be lost if

// the code is regenerated.

//

//------------------------------------------------------------------------------

namespace YAF.Pages {

public partial class register {

///

/// CreateUserWizard1 control.

///

///

/// Auto-generated field.

/// To modify move field declaration from designer file to code-behind file.

///

protected global::System.Web.UI.WebControls.CreateUserWizard CreateUserWizard1;

///

/// profile control.

///

///

/// Auto-generated field.

/// To modify move field declaration from designer file to code-behind file.

///

protected global::System.Web.UI.WebControls.TemplatedWizardStep profile;

}

}

Stegothedump
12 years ago
ok sorted that page but now have an error on the profile page...

Error 205 'YAF.Pages.profile' does not contain a definition for 'YIM' and no extension method 'YIM' accepting a first argument of type 'YAF.Pages.profile' could be found (are you missing a using directive or an assembly reference?) C:\websites\CloudWiseForum\YetAnotherForum.NET\pages\profile.ascx.cs 522 18 YAF

S

Stegothedump
12 years ago
ok seems like all my designer files got messed up but they are now all fixed. Final error of the day is

Error 175 Generated serialization assembly is not signed: YAF.XmlSerializers, Version=1.9.6.0, Culture=neutral, PublicKeyToken=null. Please specify strong name key file via /compiler:/keyfile: switch. C:\websites\CloudWiseForum\YetAnotherForum.NET\SGEN YAF

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
12 years ago

ok seems like all my designer files got messed up but they are now all fixed. Final error of the day is

Error 175 Generated serialization assembly is not signed: YAF.XmlSerializers, Version=1.9.6.0, Culture=neutral, PublicKeyToken=null. Please specify strong name key file via /compiler:/keyfile: switch. C:\websites\CloudWiseForum\YetAnotherForum.NET\SGEN YAF

Originally Posted by: Stegothedump 

You need to disable "Generate serialization assembly" in the Ouput settings of the Yaf project settings in vs.

Stegothedump
12 years ago
All works perfectly now! Many thanks,

Stephen