WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dichternebel
    Member
    Posted 1 year 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']) : ?>
                <?php
    			$vorname = "";
    			$nachname = "";
    			$email = "";
    			$telefon = "";
    
    			if(is_user_logged_in()) {
    				global $current_user;
    				get_currentuserinfo();
    
    				$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">
                                <h4>
                                    <?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>
                                </h4>
                            </div>
                            <div class="wp_feedback_content">
                                <?php $this->print_textbox('wp_feedback[pinfo][' . $ppinfo . ']', $this->pinfo[$ppinfo]['required'], $label[1]); ?>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php endforeach; ?>

    http://wordpress.org/extend/plugins/wp-feedback-survey-manager/

  2. Swashata Ghosh
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.