.cs pages - Memberslist.aspx.cs - Please Help!

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
8/18/2011 1:26:58 PM
Gravatar
Total Posts 7

.cs pages - Memberslist.aspx.cs - Please Help!

Hello, I am new to the Mojoportal environment. I have been very pleased thus far. I am making alterations to my site particularly the MembersList.aspx.cs page. I have downloaded the cs page from your site and I have tried including it, but it is still relating back to the previous, included, cs page. Is there a .cs file that I need to remove that is being complied? Any help would be greatly appreciated.

 

Thank you,
Joshua
 

8/20/2011 9:21:11 AM
Gravatar
Total Posts 18439

Re: .cs pages - Memberslist.aspx.cs - Please Help!

All of the code is compiled into dlls in the /bin folder, mojoPortal is a Web Application project type not a web site project type, we don't deploy source code in this model so just dropping in .cs files is not going to work.

Generally you should avoid forking the mojoPortal code. If you really need to make a custom member list page you should implement it in a custom project and then use a post build event to to copy yours over ours or else use a page with inline code instead of a code behind of you don't want to make a special project and then just replace ours with yours but the page must inherit from your own class or else from mojoBasePage and not from the class in the code behind for our member list page. In either case you will have to maintain your custom page and restore it after upgrades.

Alternatively you could avoid overwriting our file and make your file have a different url and then replace our memberlistlink control with your own custom one in the layout.master file of the skin. This approach would make upgrading easier because then our file won't overwrite your during upgrades requiring you to restore yours after upgrades.

My advice is to read the developer documentation before you start doing any custom development work so you can learn about recommended ways of doing things such as keeping all of your customizations in your own projects.

Hope that helps,

Joe

8/22/2011 10:36:59 AM
Gravatar
Total Posts 7

Re: .cs pages - Memberslist.aspx.cs - Please Help!

Thank you for the reply Joe. I am going to copy the page and reference that. I was going to use MemeberList to make a member directory so that authenticated users can search current memebers.

 

Thank you,

Joshua
 

8/22/2011 10:40:15 AM
Gravatar
Total Posts 18439

Re: .cs pages - Memberslist.aspx.cs - Please Help!

The member list can already be searched, so if that is the only customization you need then you don't need to customize it. You can specify that Authenticated Uses can view the member list from Administration > Site Settings > Security > Permissions > Roles that can view member list

Hope that helps,

Joe

8/22/2011 10:44:54 AM
Gravatar
Total Posts 7

Re: .cs pages - Memberslist.aspx.cs - Please Help!

Thank you for the quick reply, I was going to replicate the page because when they view the page, and search the user, I would only like them to see, user name, email, and custom field (phone).

Thank you,
Joshua

8/22/2011 7:51:25 PM
Gravatar
Total Posts 7

Re: .cs pages - Memberslist.aspx.cs - Please Help!

I was able to have a workaround for what i was trying to accomplish. I was able to route the user to the profile page, where I added a phonenumber field to the profile. On the view profile page, for other users I would like to  display the email they have registered with. I have used:

<div class="settingrow">
              <mp:SiteLabel id="lblUserEmail" runat="server" CssClass="settinglabel"   ConfigKey="ManageUsersEmailLabel" ></mp:SiteLabel>
              &nbsp;<asp:Label id="txtEmail" runat="server" ></asp:Label>
          </div>

8/22/2011 7:53:57 PM
Gravatar
Total Posts 7

Re: .cs pages - Memberslist.aspx.cs - Please Help!

Hello, I am trying to add the users email to the "view profile" page. I have added the field on the profileview.aspx page, but it only adds the lable, not the email address itself. If you have any suggestions it would be greatly appreciated.

 

<div class="settingrow">
              <mp:SiteLabel id="lblUserEmail" runat="server" CssClass="settinglabel" ConfigKey="ManageUsersEmailLabel" ></mp:SiteLabel>
              &nbsp;<asp:Label id="txtEmail" runat="server" ></asp:Label>
          </div>

 

Thank you,
Joshua
 

You must sign in to post in the forums. This thread is closed to new posts.