• Hi, I had a number of issues in looking at the results of the surveys. ID column to narrow, ‘All’ showing incorrect number, various hyperlinks pointing to quiz subsection not survey subsection, confusing naming of link to ‘mark’ questions, additional info of IP address and email not displayed (as for quiz results)

    I’ve edited and attached the file “wp-survey-and-quiz-tool.2.1\wp-survey-and-quiz-tool\pages\admin\surveys\result.list.php” to fix each of these issues. Could it be included?

    Cheers,

    Darren.

    <div class="wrap">
    
    	<div id="icon-tools" class="icon32"></div>
    	<h2>WP Survey And Quiz Tool - Survey Results</h2>
    
    	<?php require WPSQT_DIR.'pages/admin/misc/navbar.php'; ?>
    
    	<form method="post" action="">
    
    		<div class="tablenav">
    
    			<ul class="subsubsub">
    				<li>
    					<a href="<?php echo WPSQT_URL_MAIN; ?>&section=results&subsection=survey&id=<?php echo urlencode($_GET['id']); ?>" <?php if (isset($filter) && $filter == 'all') { ?>  class="current"<?php } ?> id="all_link">All <span class="count">(<?php echo $counts['unviewed_count'] + $counts['accepted_count'] + $counts['rejected_count']; ?>)</span></a>
    				</li>
    			</ul>
    
    			<div class="tablenav-pages">
    		   		<?php echo Wpsqt_Core::getPaginationLinks($currentPage, $numberOfPages); ?>
    			</div>
    
    		</div>
    
    		<table class="widefat post fixed" cellspacing="0">
    			<thead>
    				<tr>
    					<th class="manage-column" scope="col" width="40">ID</th>
    					<th class="manage-column column-title" scope="col">Title</th>
    				</tr>
    			</thead>
    			<tfoot>
    				<tr>
    					<th class="manage-column" scope="col" width="40">ID</th>
    					<th class="manage-column column-title" scope="col">Title</th>
    				</tr>
    			</tfoot>
    			<tbody>
    				<?php foreach( $results as $result ){ ?>
    				<tr>
    					<th scope="row"><?php echo $result['id']; ?></th>
    					<td class="column-title">
    						<strong>
    							<a class="row-title" href="<?php echo WPSQT_URL_MAIN; ?>&section=results&subsection=survey&id=<?php echo urlencode($_GET['id']); ?>&resultid=<?php echo $result['id']; ?>"><?php echo htmlentities($result['person_name']);  if (isset($person['email'])){ ?> - <?php echo $person['email']; }  if (isset($result['ipaddress'])) { ?> - <?php  echo $result['ipaddress']; } ?></a>
    						</strong>
    						<div class="row-actions">
    							<span class="view"><a href="<?php echo WPSQT_URL_MAIN; ?>&section=results&subsection=view&id=<?php echo urlencode($_GET['id']); ?>&resultid=<?php echo $result['id']; ?>">View</a> | </span>
    							<span class="delete"><a href="<?php echo WPSQT_URL_MAIN; ?>&section=resultsdelete&subsection=quiz&id=<?php echo urlencode($_GET['id']); ?>&resultid=<?php echo $result['id']; ?>">Delete</a></span>
    						</div>
    					</td>
    				</tr>
    				<?php } ?>
    			</tbody>
    		</table>
    
    		<div class="tablenav">
    
    			<div class="tablenav-pages">
    		   		<?php echo Wpsqt_Core::getPaginationLinks($currentPage, $numberOfPages); ?>
    			</div>
    		</div>
    
    	</form>
    </div>
    <?php require_once WPSQT_DIR.'/pages/admin/shared/image.php'; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Darren Comeau

    (@decomeau)

    PS, any reason not to have the ability to accept reject as implemented for quizzes? I’d be happy to try and add that in.

    All (1) | Unviewed (0) | Accepted (1) | Rejected (0)

    Plugin Author Ollie Armstrong

    (@olliea95)

    Darren,

    Thanks for the report. I’ll take a look and implement anything that needs it. Will get back to you shortly.

    Edit:
    Thanks for your contribution, after reviewing it and testing it I have added it in. I will soon add the accept/reject feature.

    Ollie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Survey Single Results issues’ is closed to new replies.