Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Simple way to display or hide a form based on registered status
Last Post 08-19-2009 06:13 AM by David To. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
JordanUser is Offline
new to the springs
new to the springs
Posts:4
Avatar

--
08-19-2009 05:32 AM

    I don't know if this has been offered as a solution yet; I was unable to find anything similar, so...

    If you need to hide a Dynamic Forms module from anyone NOT registered on the site but still need it to work (remember, the form HAS to be visible to ALL USERS), the following hack will permit you to do this.

    Create a new container using the following code:

    <%@ Control language="vb" CodeBehind="~/admin/Containers/container.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %>
    <%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %>
    <%@ Register TagPrefix="dnn" TagName="ACTIONS" Src="~/Admin/Containers/SolPartActions.ascx" %>


    <% If Request.IsAuthenticated Then%>
    <% End If %>

    Between the If/End If, place your content div as you would with any other container.

     

    Once you've got the container, you can create the page on which your form will reside and give it ALL USERS rights. Place the module on the page and assign it the container you created above. Simple as that.

    Now, if a user with no rights (i.e. ALL USERS) views the page, the form will not be visible. If they are logged in as a registered user (or any other 'registered' role), the form will be visible to them. The nice thing about this is that the form will work as if it were visible to all users.

    The container could also be tweaked to allow visibility to specific roles if you'd prefer, however, I haven't tested it to that extent.

    Hope that helps!

    Jordan Stradtman

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    08-19-2009 06:13 AM
    Wow, this is an awesome hack. I didn't even know this can be done. Thanks for sharing it with us. -- David
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi