Quick Nav:  Online Store   |   Login | Register

[RE:DNN.USerInfo.FirstName] replacements

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
Jim Granese
<20 Posts
Posts:3


09/06/2007 9:40 PM  

I am trying to use the replacement tags to identify my users when they login.  This works fine in a text/html module however when no one is logged in then I see [RE:DNN.USerInfo.FirstName].  how do I use the replacement  so that this doesn't happen?

 

Thanks

JimmyFoo

John Mitchell
Posts:3033


09/07/2007 9:38 AM  
Hi JimmyFoo,

What you can do is add another rule that removes that tag in case it wasn't replaced.

SearchFor: \[RE:.*]
ReplaceWith:

Make sure it is at the bottom of the other rules.
Jim Granese
<20 Posts
Posts:3


09/10/2007 10:16 PM  

John,

Thank you for the quick responce.

I still however have a problem.  I did what you said and I get mixed results.

  1. If I put the rule in the portal rules I get nothing when the user is logged off (this is what I want).  But when the user is logged on I get ",cssb:'eipbuttonbackimg',cssbh:'eipborderhover'};"
  2. If I put the rule into the Page rules I get the correct result when logged on the first name shows. But when logged off I get the entire tag [RE:DNN.USerInfo.FirstName]


You can recreate the issue by just adding the tag [RE:DNN.USerInfo.FirstName] to a Text/HTML module and then creating the rule
SearchFor: \[RE:.*]
ReplaceWith:


Please help

John Mitchell
Posts:3033


09/10/2007 10:26 PM  
Hi Jimmy,
When you do it on the PageRules make sure that the module has security set for view on all users.

I'm not sure what is happening on the PortalRules.
Jim Granese
<20 Posts
Posts:3


09/11/2007 12:41 AM  
When I add the module to the same page as the html I get the same result ,cssb:'eipbuttonbackimg',cssbh:'eipborderhover'}; as if I had it in the portal rules however the rule is in the page rules. I am not sure what you mean by the modules has security. I know how to setup the security what module are you referring to.

I was able to recreate this issue on both my live system and Dev system
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 > [RE:DNN.USerInfo.FirstName] replacements



ActiveForums 3.7
Powered by: Snapsis Software