Forums

Survery file hack? (4 posts)

  1. elmsblog
    Member
    Posted 2 years ago #

    http://www.bin-co.com/tools/wordpress/plugins/surveys/

    This is the survey plug in I'm using. One of the survey answer options is to let the user input their own answer. My issue is that the text input field is very small.

    I've looked around in the php files, but I'm not a programmer. I didn't see anything obvious that would allow me to make this larger. Anyone interested in downloading the plugin and finding out what we need to hack to get the user input text field a little bigger?

    Thanks guys!

  2. Samuel B
    moderator
    Posted 2 years ago #

    survey-form.php
    look for this

    <div class="postbox">
    <h3 class="hndle"><span><?php e('Description') ?></span></h3>
    <div class="inside">
    <textarea name='description' rows='5' cols='50' style='width:100%'><?php echo $survey_details->description?></textarea>
    </div></div>

    change the rows and columns numbers to what you like

    back up 1st

  3. elmsblog
    Member
    Posted 2 years ago #

    The problem is that this is in the admin side of the plug in, not on the public side. :( Currently the text box is 1 row and probably 30 colums wide.

    Is it somewhere else??

  4. chucklehead
    Member
    Posted 2 years ago #

    I would like to be able to change the same textarea, but there does not seem to be any place within the php or the javascript to handle it. Elmsblog is correct that the section above refers to the admin text input area, not the one for the user.

    I assume some standard object is being placed in the form that we can't see in these files.

    Could this be something we could edit somewhere else, outside the plugin? I see where the survey gets set up to allow user input, but nowhere where that text input field is being created where we could increase the size.

    Any insight from a pro would be helpful! I may simply be missing it.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic