You need to Register for free and Login to post a message in the forum.

Forum

Subject: Token replacement To Display Automatically
Prev Next
You are not authorized to post a reply.

Author Messages
SJV83
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:2

11 Aug 2008 7:39 PM  

i run a website that allows for my users to auto-create a child portal, i currently have the problem where i want the Text/Html modules that appear (from my template) to already have tokens activated without having my members going into each one and checking the checkbox.

I have downloaded the HTML/Text source module but can't find which area to change.

Any help?

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

13 Aug 2008 6:19 AM  
Hello,

In the template that you created, did you enable token replacement before creating the template?

Can you enable token replacement in your text / html modules and then create the template?

I have also experimented with enabling token replacement as the default option and applying it to all text / HTML modules using the advanced settings in the text / HTML module settings, but for token replacement those settings are not applied.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
SJV83
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:2

13 Aug 2008 4:05 PM  

Hi lee,

yes before i made the template i activated all HTML /Text Modules to replace tokens.

Once the template is used during portal creation all modules have the token replacement option de-activated, this is a problem because users for my site wont know how to activate them without me leaving a instruction either in the email or on the page which would dilute the impact of the site.

I have looked throught the source and managed to find the datasqlprovider files which look quite interesting. It gives three options that add information to the ModuleSettings Table. One of these options is activated whilst the other isnt.

My SQL is a novice at best where as my VB programming is very poor. Would any changes to these files help my situation.

leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3375

18 Aug 2008 5:28 AM  
Hello,

You could potentially create a SQL query to update all text / html modules to use token replacement, but this will mean manually running the SQL query each time token replacement needs enabling.

I have had a look at the tables within DotNetNuke, the settings for each text / HTML module are stored in the ModuleSettings table.

You will see in the HtmlText table the details for each text / HTML module along with their unique module ids.

The ID for each module needs to be taken from the HtmlText table, inserted into the ModuleSettings table with a new row along with the additional details of:

SettingName: TEXTHTML_ReplaceTokens
Setting Value: True


you will first of all need to run a query to update any existing module settings for the text / HTML module which can do with this:



UPDATE ModuleSettings
    SET SettingValue = 'True'
    WHERE SettingName = 'TEXTHTML_ReplaceTokens' and SettingValue ='False'


select * from ModuleSettings WHERE SettingName = 'TEXTHTML_ReplaceTokens'


and you will then need to create a query which will create a new record in the ModuleSettings table for each text / HTML module from the HtmlText table which is not already listed in the ModuleSettings table



Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > DotNetNuke® > Modules > Token replacement To Display Automatically



ActiveForums 3.7

Latest Forum Posts

MMLinks module by Absinte
I am using the MMLinks module on a tri-lingual website. When i insert a picture in the HTML text pro...
RE: Change Skin on URL by rdickey
We are looking for something simular. We have some modules that like to display the admin skin when...
Changing "Register" to "Sign up" by evo
HiI recently started using DNN for my programming needs (I have been programming in ASP for the last...
Problem with Andreas_01 skin in IExplorer by mendialb
Hi. i have a problem with Andreas_01 skin in IExplorer; with Firefox it's ok but when open the site ...
RE: [Server Error]This error can be caused by a virtual directory not being configured as an application in IIS. by mnaoj
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond ...
RE: skin/container error load by islandman
Hi There newbie for most of the technical stuff. directories etc... I am using skins from ALLDNNS...
search redirect to another portal by sanju_k1421
In my site i got two protals  greek// english    when i click search of english  its redirected to g...
can search work to search in current paonlyge by sanju_k1421
hi  In my site i m using Input Search  module  when i click on search  it search the whole site  and...
Error - The ScriptManager must appear before any controls that need it by SimonTurner
Hi Guys,Ive been having the below problem for a few days now and am really in need of some expert ad...
Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
DotNetNuke Modules
RSS Feeds