Friday, November 21, 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.

 

We need your opinion! Please read our proposed new CrowdSourcing development method and let us know if you would be interested and if it might work.

 
 
  Forums  DotNetNuke  Smart-Thinker U...  language string
Previous Previous
 
Next Next
New Post 10/16/2007 1:59 PM
  Ivan
64 posts
3rd Level Poster




language string  (United States)

"To insert a language string, prefix the Parameter with *L*. For example, if you had a language string in your .resx file called "lbName.Text" then you can have this replaced at runtime by using [*L*lblName.Text] in your template."

Rodney,

Where is this .resx file exactly?

I would like to include an insert in the profile based on whether a user has a specific role. Is the language string something I can use?

Thanks.

Ivan

 

 
New Post 10/18/2007 6:25 PM
  Smart - Thinker
45 posts
4th Level Poster


Re: language string  (Australia)

Hi Ivan,

The language strings are either in the file related to the view you are looking at, orthey are in the SharedResources file if it is a generic language string (which Name might be). Also, not all the language strings are predefined if they are not being used, so if it doesn't exist you need to create it.

For example, if you are changing the Name on the UserProfile Profile screen, it would either be in the .resx file, or SharedResources.resx. If you were editing the template for displaying your friends, then it would be in the UserProfileFriends.ascx.resx file.

 
New Post 10/18/2007 7:51 PM
  Ivan
64 posts
3rd Level Poster




Re: language string  (N/A)

so lets say I have created a role "Superman" - how would you go about to show a text or image in the profile only for people that are assigned to this role?

thanks.

ivan

 
New Post 10/18/2007 8:23 PM
  Rodney Joyce
2904 posts
www.DNNDir.com
1st Level Poster




Re: language string  (Australia)

Ok, so basically the Groups and Events module have been updated to filter the userprofile lists (e.g. Group members/Event Guests) by role, but I need to port these changes into the UserProfile module for the next version. Only then will this become more useful as a way of allowing users to exclude their profiles.

 

For example, you can currently have a role called "Allow Event Invitations" and only show this role in the Event Guest selection page. The users that are not in this role will not appear, and therefore cannot be invited (it's just a setting for each userprofile list view in all the modules.

 

In the next version of the UserProfile module, all profile list views (Directory and Friend lists) will have the filter, and then I will be adding a further filter to the UP detail page as an added check in case they hack the URL. I cannot say when this will be ready as I am in the process of upgrading PokerDIY/Smart-Thinker and the forums, and working on the latest events module (Event detail templating and "Invite to Events" in the meantime. When that is finished I want to release the new UP version with optimised SQL (I've been using SQL profiler on the modules and elimiating bottlenecks), Role Fitlering and caching improvements.


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

Smart-Thinker DotNetNuke Development Blog
 
New Post 10/19/2007 9:25 AM
  Ivan
64 posts
3rd Level Poster




Re: language string  (United States)

That will be great functionality to have.

I was actually asking about something simpler. In the template of a user profile - how can I include a role based text or image. So a user that has the DNN role Superman can get the text "Superman" under his name for example.

Thanks.

Ivan

 
New Post 10/19/2007 4:19 PM
  Rodney Joyce
2904 posts
www.DNNDir.com
1st Level Poster




Re: language string  (Australia)

Hi Ivan,

So you just want a token that outputs the user's role? What if they are in more than one role?


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

Smart-Thinker DotNetNuke Development Blog
 
New Post 10/19/2007 6:52 PM
  Ivan
64 posts
3rd Level Poster




Re: language string  (N/A)

Active Forums have a pretty neat token that does that...maybe we can borrow the concept:)

 

[ROLES:ROLE1;ROLE2] - Displays the role to which the user may belong. The first role the user is a member of will be displayed. For example, [ROLES:Administrators;Registered Users] will display Administrators

 
New Post 10/19/2007 7:22 PM
  Rodney Joyce
2904 posts
www.DNNDir.com
1st Level Poster




Re: language string  (Australia)

Ok, can you raise this as a feature request.

 

I am currently refactoring all the code to use the new 4.6.0 core token replace code - it works very well with regular expressions (ie. optomised) and provides a standard UI which is being used for all core modules. There's a chance Roles are exposed already (you can test on the new core HTML module) but if not I'll try to think how it can be worked in. These changes are being applied to the upcoming Events module, and then I'll be working on the UserProfile module.


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...  language string
Top Threads
In the past 1 week, we have 29 new thread(s) and 70 new post(s)
The most popular thread has been Re: Multipaid Sponsored Enhancements
The most active thread has been Multipaid Sponsored Enhancements / Crowdsourcing to improve modules
Smart-Thinker is powered by DotNetNuke - please support us and DotNetNuke - DotNetNuke Powered!
© 2008 Smart-Thinker   |  Privacy Statement  |  Terms Of Use