WP Feedback & Survey Manager
[resolved] Free version issues (2 posts)

  1. dichternebel
    Posted 3 years ago #

    Hi there,

    first of all: great plugin, it does exactly what I needed. So thanx for that.
    I have a few issues though:
    - naviation to previous tab is not possible, when the current tab has mendatory fiels. How can I disable this behavior?
    - I had to tweak around a lot in the file "form-class.php" because the form looked really ugly when you only have three radio buttons for one question
    - I did a small hack to be able to insert the user information if a user is already logged in. You should really use the standard form here like other plugins, because no wordpress user being logged in will be pleased to enter personal details again!

    My hack in form-class.php after line 310 looks like this, but it's quite ugly:

    <?php if(true == $this->global['enable_pinfo']) : ?>
    			$vorname = "";
    			$nachname = "";
    			$email = "";
    			$telefon = "";
    			if(is_user_logged_in()) {
    				global $current_user;
    				$vorname = $current_user->user_firstname;
    				$nachname = $current_user->user_lastname;
    				if(!isset($vorname) || trim($vorname)==='')
    					$vorname = $current_user->user_login;
    				if(!isset($nachname) || trim($nachname)==='')
    					$nachname = $current_user->display_name;
    				$email = $current_user->user_email;
                $predefined = array(
                    'f_name' => array('Vorname:', $vorname),
                    'l_name' => array('Nachname:', $nachname),
                    'email' => array('Email:', $email),
                    'phone' => array('Telefon:', $telefon),
                $e = 0;
                <div id="wp_feedback_tab_pinfo">
                    <?php foreach($predefined as $ppinfo => $label) : ?>
                    <?php if(true == $this->pinfo[$ppinfo]['enabled']) : $e++; ?>
                    <div class="wp_feedback_pinfo_input wp_feedback_float wp_feedback_pinfo_predefined <?php echo $ppinfo; ?> <?php echo ($e % 2 == 0 ? 'even' : 'odd'); ?>">
                        <div class="wp_feedback_pinfo_wrap wp_feedback_theme_bg">
                            <div class="wp_feedback_heading">
                                    <?php if(true == $this->pinfo[$ppinfo]['required']) echo '<span class="wp_feedback_required">*</span>'; ?>
                                    <label for="wp_feedback_pinfo_<?php echo $ppinfo; ?>"><?php echo $label[0]; ?></label>
                            <div class="wp_feedback_content">
                                <?php $this->print_textbox('wp_feedback[pinfo][' . $ppinfo . ']', $this->pinfo[$ppinfo]['required'], $label[1]); ?>
                    <?php endif; ?>
                    <?php endforeach; ?>


  2. Swashata Ghosh
    Plugin Author

    Posted 3 years ago #

    Hi, I am aware of your problem #1 and #3. I will implement them as soon as I get some time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Feedback & Survey Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.