Esempio n. 1
0
</th>
					<th><?php 
    _e('Error Type', 'bebop');
    ?>
</th>
					<th><?php 
    _e('Error Message', 'bebop');
    ?>
</th>
				</tr>
			</tfoot>
			<tbody>
				<?php 
    foreach ($table_row_data as $row_data) {
        echo '<tr>
					<td>' . bebop_tables::sanitise_element($row_data->id) . '</td>' . '<td>' . bebop_tables::sanitise_element($row_data->timestamp) . '</td>
					<td>' . bebop_tables::sanitise_element($row_data->error_type) . '</td>
					<td>' . bebop_tables::sanitise_element($row_data->error_message) . '</td>
				</tr>';
    }
    ?>
			</tbody>
		</table>
		<?php 
    echo $bebop_pagination;
} else {
    _e('No data for this page was found.', 'bebop');
}
?>
<!-- End bebop_admin_container -->
</div>
Esempio n. 2
0
    _e('Save Changes', 'bebop');
    echo '"></div>';
    wp_nonce_field('bebop_' . $extension['name'] . '_user_settings');
    echo '<div class="clear_both"></div>';
    echo '</form>';
    //table of user feeds
    $user_feeds = bebop_tables::get_user_feeds($bp->loggedin_user->id, $extension['name']);
    if (count($user_feeds) > 0) {
        echo '<h5>Your ' . $extension['display_name'] . ' feeds</h5>';
        echo '<table class="bebop_user_table">
				<tr class="nodata">
					<th>';
        _e('Username', 'bebop');
        echo '</th>
					<th>';
        _e('Options', 'bebop');
        echo '</th>
				</tr>';
        foreach ($user_feeds as $user_feed) {
            echo '<tr>
				<td>' . bebop_tables::sanitise_element($user_feed->meta_value) . '</td>
				<td><a href="' . $bp->loggedin_user->domain . bp_current_component() . '/' . bp_current_action() . '/' . $extension['name'] . '?remove_username='******'">';
            _e('Delete Feed', 'bebop');
            echo '</a></td>
			</tr>';
        }
        echo '</table>';
    }
} else {
    echo sprintf(__('%1$s has not yet been configured. Please contact the blog admin to make sure %1$s is configured properly.', 'bebop'), $extension['display_name']);
}
Esempio n. 3
0
			<tbody>
				<?php 
    /*
     * Loops through each user and prints their details to the screen.
     */
    foreach ($user_metas as $user) {
        $this_user = get_userdata($user->user_id);
        $user_feeds = bebop_tables::get_user_feeds($user->user_id, $extension['name']);
        $feed_array = array();
        foreach ($user_feeds as $user_feed) {
            $feed_array[] = $user_feed->meta_value;
        }
        $user_feeds = implode(',', $feed_array);
        echo '<tr>
						<td>' . bebop_tables::sanitise_element($user->user_id) . '</td>
						<td>' . bebop_tables::sanitise_element($this_user->user_login) . '</td>
						<td>' . bebop_tables::sanitise_element($this_user->user_email) . '</td>
						<td>' . bebop_tables::sanitise_element($user_feeds) . "</td>\n\t\t\t\t\t\t<td><a href='?page=bebop_providers&provider=" . $extension['name'] . "&reset_user_id=" . bebop_tables::sanitise_element($user->user_id) . "'>" . __('Reset User', 'bebop') . "</a></td>\n\t\t\t\t\t</tr>";
    }
    ?>
			<!-- <End bebop_table -->
			</tbody>
		</table>
		<?php 
} else {
    echo sprintf(__('No users found for the %1$s extension.', 'bebop'), $extension['display_name']);
}
?>
<!-- End bebop_admin_container -->
</div>
Esempio n. 4
0
			</tfoot>
			<?php 
    }
    ?>
			<tbody>
				<?php 
    /*
     * Loops through each user and prints their details to the screen.
     */
    foreach ($user_metas as $user) {
        $this_user = get_userdata($user->user_id);
        echo '<tr>
						<td>' . bebop_tables::sanitise_element($user->user_id) . '</td>
						<td>' . bebop_tables::sanitise_element($this_user->user_login) . '</td>
						<td>' . bebop_tables::sanitise_element($this_user->user_email) . '</td>
						<td>' . bebop_tables::sanitise_element(bebop_tables::get_user_meta_value($user->user_id, 'bebop_' . $extension['name'] . '_username')) . "</td>\n\t\t\t\t\t\t<td><a href='?page=bebop_providers&provider=" . $extension['name'] . "&reset_user_id=" . bebop_tables::sanitise_element($user->user_id) . "'>";
        _e('Reset User', 'bebop');
        echo "</a></td>\n\t\t\t\t\t</tr>";
    }
    ?>
			<!-- <End bebop_table -->
			</tbody>
		</table>
		<?php 
} else {
    echo sprintf(__('No users found for the %1$s extension.', 'bebop'), $extension['display_name']);
}
?>
<!-- End bebop_admin_container -->
</div>
Esempio n. 5
0
			</thead>
			<tfoot>
				<tr>
					<th>' . __('Buffer ID', 'bebop') . '</th>
					<th>' . __('Secondary ID', 'bebop') . '</th>
					<th>' . __('Activity Stream ID', 'bebop') . '</th>
					<th>' . __('Username', 'bebop') . '</th>
					<th>' . __('Type', 'bebop') . '</th>
					<th>' . __('Imported', 'bebop') . '</th>
					<th>' . __('Published', 'bebop') . '</th>
					<th>' . __('Content', 'bebop') . '</th>
				</tr>
			</tfoot>
			<tbody>';
    foreach ($contents as $content) {
        $extension = bebop_extensions::bebop_get_extension_config_by_name($content->type);
        echo '<tr>
					<td>' . $content->id . '</td>' . '<td>' . $content->secondary_item_id . '</td>' . '<td>' . $content->activity_stream_id . '</td>' . '<td>' . bp_core_get_username($content->user_id) . '</td>' . '<td>' . bebop_tables::sanitise_element($extension['display_name']) . '</td>' . '<td>' . bp_core_time_since($content->date_imported) . '</td>' . '<td>' . bp_core_time_since($content->date_recorded) . '</td>' . '<td class="content">' . bebop_tables::sanitise_element($content->content) . '</td>' . '</tr>';
    }
    echo '
			</tbody>
		</table>';
    echo $bebop_pagination;
} else {
    echo '<h4>' . ucfirst($type) . ' ' . __('Content', 'bebop') . '</h4>';
    echo '<p>' . __('No content was found in the content manager.', 'bebop') . '</p>';
}
?>
	<div class="clear"></div>
</div>
<!-- end bebop_admin_container -->
Esempio n. 6
0
	
	<label for="bebop_' . $extension['name'] . '_newfeedurl">' . __('New Feed URL', 'bebop') . '</label>
	<input type="text" name="bebop_' . $extension['name'] . '_newfeedurl" size="75"><br><br>
	
	<div class="button_container"><input class="button" type="submit" id="submit" name="submit" value="' . __('Save Changes', 'bebop') . '"></div>';
    wp_nonce_field('bebop_' . $extension['name'] . '_user_settings');
    echo '<div class="clear_both"></div>
	</form>';
    //table of user feeds
    $user_feeds = bebop_tables::get_user_feeds($bp->loggedin_user->id, $extension['name']);
    if (count($user_feeds) > 0) {
        echo '<h5>' . sprintf(__('Your %1$s feeds', 'bebop'), $extension['display_name']) . '</h5>';
        echo '<table class="bebop_user_table">
				<tr class="nodata">
					<th>' . __('Feed Name', 'bebop') . '</th>
					<th>' . __('Feed URL', 'bebop') . '</th>
					<th>' . __('Options', 'bebop') . '</th>
				</tr>';
        foreach ($user_feeds as $user_feed) {
            $feed_name = str_replace('_', ' ', bebop_tables::sanitise_element($user_feed->meta_name));
            echo '<tr>
				<td>' . stripslashes($feed_name) . '</td>
				<td>' . substr(bebop_tables::sanitise_element($user_feed->meta_value), 0, 150) . '</td>
				<td><a href="' . $bp->loggedin_user->domain . bp_current_component() . '/' . bp_current_action() . '/' . $extension['name'] . '?delete_feed=' . urlencode($feed_name) . '">' . __('Delete Feed', 'bebop') . '</a></td>
			</tr>';
        }
        echo '</table>';
    }
} else {
    echo sprintf(__('%1$s has not yet been configured. Please contact the blog admin to make sure %1$s is configured properly.', 'bebop'), $extension['display_name']);
}
Esempio n. 7
0
?>
</a></h3>
			<div class='inside'>
				<?php 
$contents = bebop_tables::admin_fetch_content_data('verified', 0, 20);
if (count($contents) > 0) {
    echo '<table class="postbox_table">
						<tr class="nodata">
							<th>' . __('Username', 'bebop') . '</th>
							<th>' . __('Type', 'bebop') . '</th>
							<th>' . __('Imported', 'bebop') . '</th>
							<th>' . __('Published', 'bebop') . '</th>
							<th>' . __('Content', 'bebop') . '</th>
						</tr>';
    foreach ($contents as $content) {
        echo '<tr>
							<td>' . bp_core_get_username($content->user_id) . '</td>' . '<td>' . bebop_tables::sanitise_element(ucfirst($content->type)) . '</td>' . '<td>' . bp_core_time_since($content->date_imported) . '</td>' . '<td>' . bp_core_time_since($content->date_recorded) . '</td>' . '<td class="content">' . bebop_tables::sanitise_element($content->content, $allow_tags = true) . '</td>' . '</tr>';
    }
    echo '</table>';
} else {
    echo '<p>' . __('No verified content exists in the content manager.', 'bebop') . '</p>';
}
?>
				
			</div>
		</div></div>
	</div>
	
	<div class="clear"></div>
</div>
<!-- end bebop_admin_container -->
Esempio n. 8
0
        echo '<form id="oer_table" class="bebop_user_form" method="post">';
        echo '<h5>' . ucfirst($type) . ' ' . __('Content', 'bebop') . '</h5>';
        echo $bebop_pagination;
        echo '<div class="button_container button_right"><a class="button" rel="#oer_table" href="#select_all">' . __('Select All', 'bebop') . '</a></div>';
        echo '<div class="button_container button_right"><a class="button" rel="#oer_table" href="#select_none">' . __('Select None', 'bebop') . '</a></div>';
        echo '<div class="clear_both"></div>';
        echo '<table class="bebop_user_table">
			<tr class="nodata">
				<th>' . __('Type', 'bebop') . '</th>
				<th>' . __('Imported', 'bebop') . '</th>
				<th>' . __('Published', 'bebop') . '</th>
				<th>' . __('Content', 'bebop') . '</th>
				<th>' . __('Select', 'bebop') . '</th>
			</tr>';
        foreach ($oers as $oer) {
            echo '<tr>' . '<td><label for="' . $oer->id . '">' . bebop_tables::sanitise_element($oer->type) . '</label></td>' . '<td><label for="' . $oer->id . '">' . bebop_tables::sanitise_element(bp_core_time_since($oer->date_imported)) . '</label></td>' . '<td><label for="' . $oer->id . '">' . bp_core_time_since($oer->date_recorded) . '</label></td>' . '<td class="content"><label for="' . $oer->id . '">' . bebop_tables::sanitise_element($oer->content, $allow_tags = true) . '</label></td>' . "<td class='checkbox_container'><label for='" . $oer->id . "'><div class='checkbox'><input type='checkbox' id='" . $oer->id . "' name='" . $oer->id . "'></div></label></td>" . '</tr>';
        }
        echo '</table>';
        echo '<div class="button_container button_right"><a class="button" rel="#oer_table" href="#select_all">' . __('Select All', 'bebop') . '</a></div>';
        echo '<div class="button_container button_right"><a class="button" rel="#oer_table" href="#select_none">' . __('Select None', 'bebop') . '</a></div>';
        echo '<h5>' . __('Action', 'bebop') . '</h5>';
        $verify_oer_option = '<label class="alt" for="verify">' . __('Verify', 'bebop') . ':</label><input type="radio" name="action" id="verify" value="verify"><br>';
        $delete_oer_option = '<label class="alt" for="delete">' . __('Delete', 'bebop') . ':</label><input type="radio" name="action" id="delete" value="delete"><br>';
        $undelete_oer_option = '<label class="alt" for="undelete">' . __('Undelete', 'bebop') . ':</label><input type="radio" name="action" id="undelete" value="undelete"><br>';
        if ($type == 'unverified') {
            echo $verify_oer_option . $delete_oer_option;
        } else {
            if ($type == 'verified') {
                echo $delete_oer_option;
            } else {
                if ($type == 'deleted') {
Esempio n. 9
0
 function get_initial_import_feeds($user_id, $extension)
 {
     global $wpdb;
     $return = array();
     $results = $wpdb->get_results('SELECT value FROM ' . bp_core_get_table_prefix() . "bp_bebop_first_imports WHERE user_id = '" . $wpdb->escape($user_id) . "' AND extension = '" . $wpdb->escape($extension) . "'");
     foreach ($results as $result) {
         $return[] = bebop_tables::sanitise_element($result->value);
     }
     return $return;
 }