예제 #1
0
						echo '<span class="my-info-label">'.stripslashes($row['name']).':</span> '.stripslashes($row['value']).'<br />';					
					} else {
						echo $row['name'].'<br />';
					}
				}
				
				// List friends
				$friends = $wps_user->get_friends();
				if ($friends) {
					echo '<div id="my-friends-list">';
						echo '<div style="font-weight:bold; margin-bottom:6px;">Friends</div>';
						foreach ($friends AS $friend) {
							if ($friend['id']) {
								echo '<div class="my-friends-list-item">';
									$friend_user = new wps_user($friend['id']);
									echo '<div style="float:left;margin-right:6px">'.$friend_user->get_avatar(44).'</div>';
									echo $friend_user->get_profile_url().'<br />';
									echo '<span class="my-info-label">Active: '.__wps__time_ago($friend_user->get_last_activity()).'</span>';
								echo '</div>';
							}
						}
					echo '</div>';
				} else {
					echo '<div id="my-friends-list">No friends</div>';
				}

			}
						
		echo '</div>';				
	echo '</div>';		
	
예제 #2
0
				echo '<strong>LAST TOPIC</strong>';
			echo '</div>';
		echo '</div>';
		$categories = $wps_forum->get_categories();
		foreach ($categories as $category) {
			echo '<div class="my-forum-row">';
				echo '<div class="my-forum-row-title">';
					echo stripslashes($category->title);
				echo '</div>';
				echo '<div class="my-forum-row-last-topic">';
					$last_topic = $wps_forum->get_topics($category->cid, 0, 1);
					if ($last_topic) {
						echo '<div class="my-forum-row-last-topic-avatar">';
							$wps_user = new wps_user($last_topic->topic_owner);
							echo '<a href="'.$wps->get_profile_url().'?uid='.$last_topic->topic_owner.'">';
							echo $wps_user->get_avatar(48);
							echo '</a>';
						echo '</div>';
						echo stripslashes($last_topic->topic_subject).'<br />';
						echo '<span class="my-forum-row-last-topic-owner">'.$last_topic->display_name.',</span> ';
						echo '<span class="my-forum-row-last-topic-started">'.__wps__time_ago($last_topic->topic_started).'</span>';
					}
				echo '</div>';
			echo '</div>';
		}
	echo '</div>';

	?>
				
	</div><!-- #content -->
</div><!-- #primary -->
예제 #3
0
$wps_user = new wps_user();
?>

		<div id="primary">
			<div id="content" role="main">

<?php

			echo '<div style="float: left; width:590px;">';
			
			   echo '<div style="float:right; text-align:left;">';
			
			      if ($wps_user->get_city()) echo 'Lives in: '.$wps_user->get_city().'<br />';
			      if ($wps_user->get_country()) echo 'Country: '.$wps_user->get_country().'<br />';
			
			   echo '</div>';
			
			   echo '<div style="float:left;padding-right:20px;">'.$wps_user->get_avatar(120).'</div>';
			
			   echo '<span style="font-size:32px">'.$wps_user->get_display_name().'</span>';
			
			echo '</div>';

?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>
예제 #4
0
		if ($message) {

			$sender = new wps_user($message->mail_from);

			$dt=explode(' ',$message->mail_sent);

			$d=explode('-',$dt[0]);

			$t=explode(':',$dt[1]);

			echo '<a href="'.$wps->get_mail_url().'">Back to inbox...</a>';

			echo '<div id="my-mail">';

				echo '<div id="my-mail-avatar">'.$sender->get_avatar(120).'</div>';

				echo '<div id="my-mail-from"><div class="my-mail-label"></span>From:</div> '.$sender->get_profile_url().'</div>';

				echo '<div id="my-mail-subject"><div class="my-mail-label">Subject:</div> '.stripslashes($message->mail_subject).'</div>';

				echo '<div id="my-mail-sent"><div class="my-mail-label">Received:</div> '.$d[2].' '.substr(__wps__get_monthname($d[1]),0,3).' '.$d[0].', '.$t[0].':'.$t[1].'</div>';

				$mail_message = __wps__make_url(stripslashes($message->mail_message));

				$mail_message = str_replace(chr(13), '<br />', $mail_message);

				echo '<div id="my-mail-message">'.$mail_message.'</div>';

			echo '</div>';
예제 #5
0
 */

get_header(); 

// include the PHP class files, the path should match your server!
require_once(ABSPATH.'wp-content/plugins/wp-symposium/class.wps_user.php');
require_once(ABSPATH.'wp-content/plugins/wp-symposium/class.wps_ui.php');

$wps_user = new wps_user();
?>

		<div id="primary">
			<div id="content" role="main">

<?php

			echo $wps_user->get_avatar().'<br />';
			echo $wps_user->get_display_name().'<br />';
			echo 'User login: '******'<br />';
			echo 'Email: '.$wps_user->get_user_email().'<br />';
			echo 'City: '.$wps_user->get_city().'<br />';
			echo 'Country: '.$wps_user->get_country();

?>

			</div><!-- #content -->
		</div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>