Using Surveys


When users visit the Surveys module, they'll start with the list Past Surveys, which is every survey on the site. Clicking one reveals the actual survey screen, shown in Figure 27.3, where users can select an answer to the survey or check out the survey results.

Figure 27.3. Responding to a survey in the Surveys module.


You might wonder why the survey is formatted to fit into such a small space. It's because PHP-Nuke really intends surveys to be displayed in a block. If a survey is attached to a news story (something I explained in Topic 19), the survey appears alongside the story in the right column. Freestanding, unattached surveys are intended to be displayed in the Surveys block, which in Figure 27.4 I have positioned near the top of the right column.

Figure 27.4. The Surveys block on the home page.


Notice that the block displays the most recently created survey but provides a Polls link that takes users to the complete list of past surveys, as if they had clicked the Surveys module directly. In fact, because surveys are intended to be accessed through this block, I recommend hiding the Surveys module itself (I explained how in Topic 10, "Controlling Access to Modules"). Doing so doesn't change anyone's access to the Surveys module, but it does keep the module from showing up in your site's main menu. There's no point in having the module in your main menu, really, since the module is accessible through the Surveys block. By the way, I discussed block basics in Topic 8, "Choosing Blocks," if you need a quick refresher on how to enable and position the Surveys block. I cover blocks, including built-in blocks like the Survey block, in Topic 37, "Selecting and Using Built-In Blocks."

Sidebar . FAQ

How do I make a multiquestion survey?

You can't using the default Surveys module. Surveys (or polls) have one, and only one, question. You can have multiple surveys running, but there's no way to string them all together into a complete, multiquestion, censuslike survey.




    PHP-Nuke Garage
    PHP-Nuke Garage
    ISBN: 0131855166
    EAN: 2147483647
    Year: 2006
    Pages: 235
    Authors: Don Jones

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net