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 ...HT Disable Terms of Use / Privacy StatementHT Disable Terms of Use / Privacy Statement
Previous
 
Next
New Post
8/10/2006 7:39 AM
 

I have a portal client who does not want the Terms of Use and Privacy Statement links to display. How can I disable Terms of Use and Privacy Statement for a single portal?


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
8/10/2006 8:23 AM
 

Tikkune,

You delete the [TERMS] and [PRIVACY] tokens from the skin.

Leif

 
New Post
8/10/2006 2:12 PM
 

Thanks, Leif.  Your suggestion pointed me in the right direction quickly. For those (like me) who are still DNN novice, let me share my findings in detail.

I'm using a default DNN Skin, which (in DNN 4.3.x at least) can be found here:

[DNN Installation Path]\Portals\_default\Skins\DNN-[Color]

Since the portal is set to use horizontal menu - fixed width, I edited the following file:

Horizontal Menu - Fixed Width.htm

... removing the tokens [TERMS] and [PRIVACY] located in the footer area.  After removing those tokens, (saving the file of course), clearing my cache, and even rebooting the server hosting the portal, I was still seeing "Terms of Use" and "Privacy Statement" at the bottom of my chosen skin for this portal.  So I dug a little deeper, following the flow of tokens, and I found references to them in the following files:

Horizontal Menu - Fixed Width.ascx
... (and other Full Width and Verticle Menu style files)

So I carefully edited the file above, associated with my Menu orientation, adding HTML comments (<!-- -->) around the section of code that looked to be rendering the TERMS & PRIVACY tokens:

<TD valign="middle" align="center"><dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" />&nbsp;&nbsp; <!-- <dnn:TERMS runat="server" id="dnnTERMS" />&nbsp;&nbsp;<dnn:PRIVACY runat="server" id="dnnPRIVACY" /> --> </TD>

... and commenting out that code worked immediately to disable display of the links "Terms of Use" and "Privacy Statement".  I put the tokens back in the .htm file (since removing them didn't disable them for my installation), and with tokens back in .htm but code commented out of .ascx, Terms of Use and Privacy Statement were still disabled as I hoped they would be.

Thanks again, Leif, for getting me in close to the action.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
8/10/2006 3:37 PM
 

Later: I learned that the .htm menu orientation files (Horizontal/Verticle) in the default DNN skins are also called "presentation" files.  During Skin Upload (to Host or Site) - or during DotNetNuke installation I suppose - the .htm presentation files are parsed to create the associated .ascx files for each menu orientation.  So if you edit those .htm presentation files BEFORE uploading/installing the skin, and remove the [TERMS] and [PRIVACY] tokens, then the .ascx file will be made without calls to those tokens.

Or, you can edit the current skin installation .ascx file, carefully commenting out the section of code that renders the Terms and Privacy calls.

Note: In my above example, I edited the .ascx file in the default skin for ALL PORTALS, which would be trouble for another portal using the same default skin but wanted to display the Terms and Privacy links.  I should extract the contents of that one skin, edit the .htm menu orientation file(s) - removing the [TERMS] and [PRIVACY] tokens.  Repackage the revised skin into a ZIP, and Admin > Skin Upload the custom skin for that one portal/site that does not want the Terms or Privacy links displayed.  As Leif suggested the first time: remove the [TERMS] and [PRIVACY] tokens.


If a problem can be solved, there's no use worrying about it.
If it can't be solved, worrying will do no good.
 
New Post
8/10/2006 3:41 PM
 

Tikkune,

just a short technical explanation:

if you have a skin called myskin, you can create it either using myskin.html, using [tokens] for dnn functionality with myskin.xms for token properties, or myskin.ascx, using dnncontrols. The HTML-version get parsed and compiled into myskin.ascx during installation or when you hit reparse skin in "Skins" menu item.

HTH


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 ...HT Disable Terms of Use / Privacy StatementHT Disable Terms of Use / Privacy Statement


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