OK, I have now done a new version that incorporates all the features discussed in this thread and a few more. Here's the chagne log for versions beyond 1.0.6 (1.0.6 is the validated version you can get from the first post in this topic):
Code: Select all
## 2005-5-07 - Version 1.0.9
## added options to show nonresponders in a centered or left justified column or a centered or left justified comma separated list
##
## added option to specify (in pixels) a maximum height for the survey display box in viewtopic; if the survey is taller than that, it will
## automatically insert scroll bars. Note that IE does not currently support the 'max-height' style element and for that reason if you specify
## a height that in fact is taller than the survey box needs, a survey box with some blank space will be seen (for example,
## if you specify the survey box cannot be more than 1000 pixels and the survey in fact is only 500 pixels, the box will take up 500
## pixels in firefox or mozilla but will show the enire 100 pixels with empty lines at the bottom when seen in IE. For this reason, it's
## best to specify max heights that are smaller than the size the survey box takes up so that there never is any skipped lines.
##
## 2005-4-26 - Version 1.0.8
## Fixed problem that reulted in design survey form not being fully displayed in preview if there is not survey caption filled in.
##
## Changed language text describing sort options to be more self-explanatory
##
## 2005-4-25 - Version 1.0.7
## added option for survey designer to choose for answers to get single, double or triple spaced;
##
## added code so that topics with surveys in them get marked as '[ Survey ]' in viewforum (just like Polls get marked
## '[ Polls ]');
##
## Moved some text that appeared in a template to lang_eng so that people who run their board with languages other than
## English will be able to translate the text without going into that template;
##
## Changed the survey explanation text so that it correctly says you can ask up to eight questions;
##
## Added test in survey.php that checks to see if user has already got a response in a given survey
## (in order to assure that a user doesn't inadvertently submit his survey answers twice).
If you want the latest (unvalidated) version, you can download it here:
[edit: link removed since version 1.0.9 is now available by clicking the link in the first post of this topic, but see link later in this post for version 1.0.10]
You will find in that download not only a clean version 1.0.9 but also upgrade scripts if you want to upgrade from 1.0.6 to 1.0.7 or 1.0.7 to 1.0.8 or 1.0.8 to 1.0.9.
I plan to wait about a week before submitting this for validation in case people have any more sugggestions. In the meantime, feel free to take this for a test run (it's running on my board with no problems).
Edit on June 30:
I submitted version 1.0.10 for validation a few days ago but I've been running it for quite a while and it is perfectly stable. Here it is:
http://asinshesq.dynalias.com/tabulated ... 1-0-10.zip
(The contrib folder in the zip file has an upgrade script so that you can easily upgrade to the latest version and it also has a user manual for how to use the mod.)
The new version adds a few features (most notably the ability of an admin to fill in the survey for another user). Here's the changelog:
Code: Select all
## 2005-6-13 - Version 1.0.10
## changed posting.php so that if a survey designer leaves out the survey caption but completes one or more questions,
## the survey will get stored
##
## added flexibility to include a subsilver fill-in survey or change survey answer button next to the reply button
## at the bottom of viewtopic so that it is less likely that users will try to answer the survey question by hitting 'reply'
## (leave out the changes to viewtopic_body.tpl that add switch_include_fill_in_button if you don't want these buttons)
##
## added a new button in the survey results block that appears on the top of viewtopic for any ADMIN that allows the ADMIN
## to fill in the survey for any other user who can't figure it out; if you don't want this change, leave out the
## lines in survey_result_viewtopic.tpl that read:
##
## <!-- BEGIN switch_include_fill_out_for_other_user_button -->
## <tr>
## <td align="center">{S_HIDDEN_FIELDS}<input type="submit" name="fill_out_for_other_user" value="{L_FILL_OUT_FOR_OTHER_USER}" class="mainoption" /></td>
## </tr>
## <!-- END switch_include_fill_out_for_other_user_button -->
##
## Changed text of $lang['If_selections'] in language/lang_english/lang_main.php to clarify that survey designer can start a drop down menu list of
## selections with a semicolon in order for the users to have the option not to answer anything to a drop down menu question; made small
## changer in $lang['Cap_response'].