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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom TokensCustom Tokens
Previous
 
Next
New Post
6/28/2010 1:53 PM
 
I currently am displaying a welcome tool bar to the subscribers on my site.  Their subscription is tied to a role, and I am using 12 different roles to go with the different products we are selling.

I would like to display the users Product, the days remaining in their subscription, and if the number of days is 0 I would like it to tell me "your subscription has expired".

Can this be done using tokens?  If yes how would we set that up?  If no, what would be a better approach?
 
New Post
6/29/2010 8:34 AM
 
The best way to develop your own module, this module will very simple and not took more time develop just you need to check your end date of role..

Leo TechnoSoft Pvt.Ltd - The Biggest DotNetNuke Development Team
 
New Post
6/29/2010 10:24 AM
 
please be aware, that built in TokenReplace engine has been created to provide you with some context about the current user, module, page and portal, it can be extended by custom modules with individual tokens, but it is NOT a full script language with e.g. if ... then ... else logic included. I.e. it will be easier to create a custom module for your purpose.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/26/2010 8:59 PM
 
Sebastian Leupold wrote:
please be aware, that built in TokenReplace engine has been created to provide you with some context about the current user, module, page and portal, it can be extended by custom modules with individual tokens, but it is NOT a full script language with e.g. if ... then ... else logic included. I.e. it will be easier to create a custom module for your purpose.

Hi Sebastian,

I've been reading up on custom tokens and your work & posts on TokenReplace have been a big help. What I can't find a straight forward answer for is this: are custom tokens that I create in my own module exposed to the DNN Core Modules that use TokenReplace?

For example if my custom module exposes some custom tokens by implementing IPropertyAccess & GetProperty in the info class as per your example in your post "4.6.0. A Sneak Peek (5) - Token Replace", can I then use these tokens in the Text/HTML module, or only within my own custom module?

I've had a look at the MyTokens module which allows custom tokens in a number of places, but it's a bit overkill for what we're after (just exposing half a dozen or so tokens to Text/HTML & our own custom modules) and I wonder if their patching of core modules like Text/HTML is the only way to expose custom token to other modules.

Thanks,
Jess

 
New Post
7/27/2010 3:54 AM
 
no, your custom tokens require an overrload on tokenReplace, which will be used in your own module or any of your modules, but not core or 3rd party modules by default.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom TokensCustom Tokens


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