WordPress.org

Ready to get started?Download WordPress

Forums

WP Survey And Quiz Tool
Additional Text not appearing (4 posts)

  1. Jason Lasky
    Member
    Posted 2 years ago #

    The "Additional Text" in questions is not appearing in any questions.
    I have simply added text to Additional Text but it is not appearing.
    Do I need to enable anything to use "Additional Text"?
    The result is any empty <p></p>.

  2. Jason Lasky
    Member
    Posted 2 years ago #

    [Plugin: WP Survey And Quiz Tool]
    Has anyone had this problem? and solved it?

  3. 10fathoms
    Member
    Posted 2 years ago #

    Hi, has anyone found a solution to this one yet? I am having the same problem, thanks.

  4. robanna
    Member
    Posted 2 years ago #

    Found it.

    pages/site/surveysection.php is missing a few line.

    Old (near line 31):

    if ( !empty($_SESSION['wpsqt']['current_message']) && !in_array($questionId,$_SESSION['wpsqt']['required']) ){
    				?></font><?php
    			}
    			?>
    
    			<?php if ( isset($question['image']) ){ ?>
    			<p><?php echo stripslashes($question['image']); ?></p>
    			<?php } ?>

    New:

    if ( !empty($_SESSION['wpsqt']['current_message']) && !in_array($questionId,$_SESSION['wpsqt']['required']) ){
    				?></font><?php
    			}
    
    			if ( !empty($question['add_text']) ){
    			?>
                <p><?php echo nl2br(stripslashes($question['add_text'])); ?></p>
    			<?php } ?>
    
    			<?php if ( isset($question['image']) ){ ?>
    			<p><?php echo stripslashes($question['image']); ?></p>
    			<?php } ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic