WordPress.org

Ready to get started?Download WordPress

Forums

Simple Event Attendance (SEATT)
[resolved] Comment (7 posts)

  1. Protheus
    Member
    Posted 2 years ago #

    Just started using WP and trying to find a simple event manager with registration. This app is very simple and nice.

    But when I create an event and people register to it and they add a comment how can I display the comment also in the list ?

    http://wordpress.org/extend/plugins/simple-event-attendance/

  2. Dave
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. pleggieri7
    Member
    Posted 2 years ago #

    nevermind, got it

  4. pleggieri7
    Member
    Posted 2 years ago #

    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?

  5. Dave
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  6. pleggieri7
    Member
    Posted 2 years ago #

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

  7. Dave
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic