Chapter 27. Using the Surveys Module


PHP-Nuke is slightly inconsistent in its terminology, using both surveys and polls to refer to the same thing. I'll stick with surveys unless I'm quoting something from PHP-Nuke that uses polls. You can start working with these by selecting the Surveys/Polls item in the Administration menu (see, even the admin item can't decide which term to use). Figure 27.1 shows the entry screen where you create a new survey.

Figure 27.1. Creating a new survey.


Surveys are simple animals: Just provide a title and up to 12 potential answers that your users can choose from. That's it. When creating a new survey, you also have the option to create a new News story to announce the survey: The entry form for a new news story (described in Topic 19, "Using the News Module," by the way) is repeated underneath the new survey area of the page. Closer to the top of the page, you'll find the Delete Polls and Edit Polls links, which, as you might expect, let you delete or edit existing polls. I mean, surveys.

Editing a pollsurveyis a bit unlike editing other items in PHP-Nuke. As you can see in Figure 27.2, you select the survey you want by using a radio button, and then you click the Edit button. You're presented with a screen that's remarkably like the Add a Survey screen, except that here you can't create a news story along with the survey, since the survey already exists and was presumably announced (if you wanted to) when you originally created it.

Figure 27.2. Editing a survey.


Deleting a survey works the same: Select the survey by using the radio button and then click Delete.



    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