Friday, August 29, 2008     | Register
To start or answer a thread you will need to login...


Forum Guidelines

Please ensure you follow the bug-raising guidelines (e.g. post the full error from your Event Viewer) if you are raising a support call. To request a feature in a module, please use Feature Requests (unless you want to discuss it here in more detail first). If you have an urgent feature that you would like to see in the product then you should consider a Sponsored Enhancement.

 

First Time User? Make sure you have read the Module Config Guide in the documents folder of each module. Also check out this handy Module Deployment Guide (written by a Smart-Thinker customer!)

Configuration issues and no time to read the Forums/Documentation? See our DotNetNuke Premium Support Service.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  ISINROLE Token
Previous Previous
 
Next Next
New Post 12/12/2007 1:06 AM
  Ivan
58 posts
3rd Level Poster




ISINROLE Token  (N/A)

Rodney,

Ventrian uses a pretty nice token in his Property Agent which I think could be used very nicely in your profile module (the detail profile view). The syntax is pretty simple

[ISINROLE: XXX] content [/ISINROLE:XXX] where XXX is a DNN role name.

This is a very flexible way to display content for an user based on the role they are in.

I will be willing to sponsor this enhancement though I know you are busy with something else right now.

Thanks.

Ivan

 
New Post 12/16/2007 1:53 PM
  Rodney Joyce
2608 posts
www.DNNDir.com
1st Level Poster




Re: ISINROLE Token  (Australia)

Hi Ivan,

I think this is a fairly straight-forward token to do, so it won't take me long - the problem is that I am not due to release a new ST UserProfile module for some time (after the upcoming Wall module (the sponsored project), I need to tidy up and release the Events module that I had to put on hold (Add to Events/Event Detail Templating). I could put this new token into the templating of these 2 modules, but it's really the ST UserProfile module that you need it in. Once the Wall module is released lets discuss it (hopefully next 2 weeks).


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
New Post 12/18/2007 2:25 AM
  Ivan
58 posts
3rd Level Poster




Re: ISINROLE Token  (N/A)

Thanks Rodney. We would really want to get this functionality so maybe after you finish the wall we can figure out a way to include it. Ivan

 
New Post 4/11/2008 3:46 PM
  goBlanks
14 posts
4th Level Poster


Re: ISINROLE Token  (N/A)

I've noticed this has been implemented in the latest release, and I've tested.

Although a nice feature added, I think the initial point made by Ivan was missed.

When using an opening and closing tag for roles, we are refering to something like this:

[ISINROLE:ADMIN] display this content to only roles listed in admin [/ISINROLE:ADMIN]

[ISINROLE:REGISTEREDUSERS] display this content to only roles in registered users and above [/ISINROLE:REGISTEREDUSERS]

This would be a nice feature to have because when creating the template for users, fields can be wrapped and diplayed ONLY to certain roles of the site

IE: I only want email addresses displayed to logged in registered users, or I only want addresses shown to logged in registered users, etc, etc. but the rest of the data such as photos, biography can be shared to the public.

Another good example for this would be [ISINROLE:REGISTEREDUSERS] [ADDTOFRIENDS] [/ISINROLE:REGISTEREDUSERS] and if you're not a registered user, the "Add To Friends" button will not appear on the profile, it will remain hidden....................

 
New Post 4/13/2008 7:55 PM
  Rodney Joyce
2608 posts
www.DNNDir.com
1st Level Poster




Re: ISINROLE Token  (Australia)

Yes, I do agree this would be a good/better way of doing this - unfortunately it would require a slight redesign of the parsing engine. It has no concept of tags within tags, and I plan on rewriting it to use the core Token Replacement engine which is way I did not invest any more time in this.

Ivan and I agreed upon the existing functionality as a half-way house which would satisify his requirements (this was a sponsored enhancement). I will bear this request in mind when I rewrite the code but this is a while off I am afraid.


Thanks
Rodney
See our modules in action on PokerDIY, a social network for home poker players

Smart-Thinker DotNetNuke Development Blog
 
Previous Previous
 
Next Next
  Forums  DotNetNuke  Smart-Thinker U...  ISINROLE Token
Top Threads
In the past 1 week, we have 11 new thread(s) and 25 new post(s)
The most popular thread has been Re: Make RSVP Public Comment not mandatory
The most active thread has been error in the page user profile
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use