More Module Kits!

Module Kits are designed for
and, thus, require XMod Pro
in order to run.

If you don't own XMod Pro,
you can purchase it by
clicking the button below.

Buy Now

XMod Pro Module Kit - Basic Survey / Poll With Results

As an example kit to show off the flexibility of XMod Pro templates, this XMod Pro Module Kit shows an example of how you can use templates with the CommandLink to perform Form-Submit type actions!

Module Kit Description:

In this example, the "vote now" links in this template perform a DB update, and the template refreshes to display the total of user's voting preferences. Users are cookied and are only allowed to vote once per day (setting can be updated in the code of course!).

This Poll Module Kit Features:

  • Create multiple quick surveys / polls with this XMod Pro code
  • Full control over poll question, options and amount of options... you can even preset a value for each voting total
  • Currenlty set to use the jQuery theme UI of Cupertino for the styles of check boxes, voting bar chart / progress bar styles, etc., but you can easily specify any other UI theme to use alternate color sets or create your own!
  • Full control over source code (of course, everything is source code with XMod Pro!) for CSS styles, JavaScript/jQuery and data

Uses:

This Poll XMod Pro code can be used to create several polls for your DNN instance. You can use it as a starter to add more complexity such as specific Portal ID, more questions, stats on dates answered, user voting tracking and more.


The Poll

Pick your favorite JavaScript framework:

The Results

Pick your favorite JavaScript framework:




XMod Pro Module Kits

XMod Pro Module Kits: Notes & Instructions

  • XMod Pro demos and XMod Pro Module Kits are free for everyone to use! We have developed them to help share popular items and to help train users in the features and functionality of XMod Pro for creating custom module solutions for DotNetNuke!
  • To utilize this XMod Pro demo, simply download the Module Kit from the DNNDev Downloads section. Once you've downloaded the file, install it as you would any DNN module. Next, add the kit module to a page. Finally, click the module's "Finish Installation" button to complete the process. The result will be an XMod Pro module instance, configured to use the kits forms, templates, and feeds as needed.
  • This Poll XMod Pro code can be used to create several polls for your DNN instance. You can use it as a starter to add more complexity such as specific Portal ID, more questions, stats on dates answered, user voting tracking and more.
  • Along with the setup in the XMod Pro form and template code, this Module Kit uses several variables set in the "Configure" screen of the XMod Pro module instance.
    • PollName: The PollName variable is set here and allows you to have multiple polls within the DNN instance. To create new polls, simply use the same XMod Pro code in another module instance, and specify a new PollName value and PollQuestion value. Then simply create new options/answers with the button "Add New Choice/Option.
    • PollQuestion: This is the main question that is presented at the top of the poll options and results.
    • CookieExpire: Voting is restricted to once per X period of time. The period is set by a cookie and its expiration date. Set the Cookie Expire to 1 (day) to allow for voting once per day, set it to 7 (days) for once per week, set it to 365 for once per year, etc.
  • This XMod Pro Module Kit features an XMP Template for layout, and XMP Form with admin-only editor view.