Quick Nav:  Online Store   |   Login | Register

Pulling UserInfo Scenario

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
goBlanks
<20 Posts
Posts:11


12/30/2007 3:30 PM  

Scenario:

I have multiple modules that pass the "userid". For instance blogs, videos, photos, forums (AF). I also have DNNFusion MyProfile. I've successfully pasted the correct string from "MyProfile" to all the other modules to display a linkback to the users profile along with a photo pulled from the users profile page.

What I am trying to do is create a generic list of links on a users profile by using userid, authorid, username, etc. to show "my forum posts", "my videos", etc. I've tried to use PageBlaster replacement tags in the links, which does work for all the cases I've tried, but the replacement only works for the logged in user. So when a user is logged in and viewing another user's profile, the logged in user sees a linkback to their info and not the owner of the profile.

Is there a way to do perhaps a "webcapture" rule that will work for this? or any replacement rules? 

EXAMPLES OF THE ACTUAL LINKS

Page Code for the Profile:

http://localhost/COMMUNITY/MyProfile/tabid/67/PID/2/Default.aspx

Link to a persons blogs:

http://localhost/BLOGS/tabid/122/articleType/AuthorView/AuthorID/2/Default.aspx

I've been trying to work with the "userid" value for the tags (In the case above is "2")

Any help on this from anyone would be great! I think it could also help a lot of others out there working on Social Community websites.

 


My DNN Projects: NortheastOK.com, goBlanks.com
John Mitchell
Posts:3248


12/30/2007 3:47 PM  

I have the ability to pull UserInfo including custom profile properties for users other than the logged in User working in version 3.0 of PageBlaster which I should be able to release next week.

If you need this functionality sooner send me an e-mail by replying directly to the notification from this post.

The tokens look like this:



Search For:
\[User.(\d+).PostProfile]

Replace With:
Name: [PB:DNN.UserInfo( $1 , FirstName )]
My City: [PB:DNN.UserInfo( $1 , Profile.City )]
Test Prop:[PB:DNN.UserInfo( $1 , Profile.TestProp )]

What I did was create the search for part of the above rule in an active forum template (active forum gives you a user ID token for each post. Wherever you can find the UserId in the output of the page you can create a search for rule and then capture it for reuse in the replace with rule. THe $1 is the captured userId in the replace with part of the rule above.

goBlanks
<20 Posts
Posts:11


12/30/2007 5:14 PM  
John,

This is simply GREAT! I've been working real hard trying to pass info from one module to another and have been getting pretty good at it. This new feature in itself will be opening a lot of doors to other users who run more of a "social site". I think you've made a good choice by getting into a market that DNN has been slow to grasp! I can wait for the next release as my site is still under dev for about another month.

Thanks for the update. This is again, GREAT STUFF!

My DNN Projects: NortheastOK.com, goBlanks.com
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Pulling UserInfo Scenario



ActiveForums 3.7
Powered by: Snapsis Software