Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to access current PortalID, TabID etc?How to access current PortalID, TabID etc?
Previous
 
Next
New Post
10/19/2007 5:58 PM
 

Before I start, I have read all of the warnings about modifying core files. However,  The joins that DNN uses for users, profiles etc are way too expensive for the size of application I am writing.  Instead I am putting the profile in the user table, using a bitmapped integer for roles ( this gives you up to 31 roles) and all the other db stuff a dba would do :).  To that end I am rewriting the business and data layers for registration and profiles.

I have been thru most of the docs and what I still cannot figure out is:

1)  how to programmatically get the current portalID.  I can't seem to find where the PortalID property of the userInfo class is set during registration.  Its default is Null.NullIteger which is great for 1 portal with an id of 0, but as I add portals that won't be so convenient. ( I could get the portalID by portal name, but how do I get the current portal name?)

2) Same as above for AffiliateID.

2) find the tabid of a given page (it would be great if this was under the Page Details of Page Management of a given page/tab.  Right now I am just looking at the link when a page comes up and using that.)

3) map to a folder that a user uploads an image to. (currently I am just storing user profile images in the database as a workaround).

4) Does isHydrated mean a class's instance has been filled with data?

If this is all in a document somewhere could someone point me to it?

 

Thanks,

 

Sean Renet

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to access current PortalID, TabID etc?How to access current PortalID, TabID etc?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out