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

HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...TokenReplace sampleTokenReplace sample
Previous
 
Next
New Post
9/28/2007 1:32 PM
 

We released a small TokenReplace sample.

Get it at http://www.effority.net/

 
New Post
9/29/2007 11:21 AM
 

thank you for your example. I looked at it, and it is correct code, though it is bad design as an InfoClass should not inherit from (Base)TokenReplace. I would encourage everybody creating an own class for it.

 

 
New Post
10/15/2007 11:27 PM
 

Hi Stefan,

I am converting the Smart-Thinker modules to take advantage of the core tokens (I used a bespoke token solution, which I am refactoring).I am looking through the core code, but I could not see if this was possible:

I need to get this setting : PortalModuleBase.PortalSettings.PortalAlias.HTTPAlias

so the question is, can you use nested tokens (ie. it is proprty of PortalSettings ("Portal") but I actually need "PortalAlias.HTTPAlias".

I currently use

text = text.Replace("[PORTALURL]", pmb.PortalSettings.PortalAlias.HTTPAlias);

will I have to make a new class inheriting from Base Tokens for PortalAlias?

I also often have multiple users involved (for example, when you join a group you have the FromUser and ToUser, which I use "FROMUSERID" and "TOUSERID" etc.

From what I can see you can only deal with a single UserInfo object at once? Also (I'm sure this is the most common question) - is there a list of Tokens somewhere? It would be nice to get this up as a pinned post on the core forums so everyone can reference it without having to change it all the time. Great job on the Regex solution - a standard UI for users will make this easier for everyone...

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/16/2007 1:18 AM
 

Please answer this question here - I do not want to hijack your thread and have some more issues so I started a new thread ;)


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityCommunity Membe...Community Membe...TokenReplace sampleTokenReplace sample


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