Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Dave

    (@sourcez)

    If you still need this you’ll need to change seatt_events_include.php to display the comment from the database. Let me know if it’s still bugging you and I’ll provide a solution.

    nevermind, got it

    so sorry to keep changing my post, but I did not figure it out as I thought. Turns out I can only make the comment show up until the user leaves the page. when you come back, the comment no longer shows up. what do i do to make the comment show up, and stay there?

    Plugin Author Dave

    (@sourcez)

    Ok, I’m not sure how you made it do that but you can try changing the text below (from line 57 onwards).

    Change this:

    $seatt_output .= '<table width="660" border="0" align="left" cellpadding="1" cellspacing="1">
    			<tr>
    				<th width="50" align="center" scope="col">Reg #</th>
    				<th width="150" align="left" scope="col">Username</th>
    				<th width="300" align="left" scope="col">Last Name, First Name</th>
    			</tr>';
    
    		$users = $wpdb->get_results("SELECT id, user_id FROM ".$wpdb->prefix."seatt_attendees WHERE event_id = ".$event_id." ORDER BY id ASC");
    		$num = 1;
    		foreach ($users as $user) {
    			$user_info = get_userdata($user->user_id);
    			$seatt_output .= '
    			<tr>
    			  <td width="50" align="center">' . $num . '</td>
    			  <td width="150">' . $user_info->user_login . '</td>
    			  <td width="300">' . $user_info->last_name .  ', ' . $user_info->first_name . '</td>
    			</tr>';
    			$num++;
    		}

    to this:

    $seatt_output .= '<table width="660" border="0" align="left" cellpadding="1" cellspacing="1">
    			<tr>
    				<th width="50" align="center" scope="col">Reg #</th>
    				<th width="150" align="left" scope="col">Username</th>
    				<th width="300" align="left" scope="col">Comment</th>
    			</tr>';
    
    		$users = $wpdb->get_results("SELECT id, user_id, user_comment FROM ".$wpdb->prefix."seatt_attendees WHERE event_id = ".$event_id." ORDER BY id ASC");
    		$num = 1;
    		foreach ($users as $user) {
    			$user_info = get_userdata($user->user_id);
    			$seatt_output .= '
    			<tr>
    			  <td width="50" align="center">' . $num . '</td>
    			  <td width="150">' . $user_info->user_login . '</td>
    			  <td width="300">' . $user_info->user_comment . '</td>
    			</tr>';
    			$num++;
    		}

    Let me know how you get on.

    nope, that one doesn’t even allow it to show up at all

    Plugin Author Dave

    (@sourcez)

    Can you tell me whether there are any errors (turn this on in wp-config), or if you’ve changed any other code as this could have a huge effect on how this functions.

    Unfortunately I can’t help you any more without you explaining the situation further and investigating it for errors on your end. I’m fairly sure that should do what you want so I’m surprised it doesn’t show something.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Simple Event Attendance (SEATT)] Comment’ is closed to new replies.