Ejemplo n.º 1
0
<?php

use_helper('MyAvatar', 'Javascript');
$raykuUser = $sf_user->getRaykuUser();
?>

<div class="entry">
  <?php 
if ($user->getPicture() != '') {
    ?>
	  <?php 
    echo avatar_tag_for_user($user);
    ?>
  <?php 
} else {
    ?>
    <img src="<?php 
    echo image_path('dev/emptyprofile.gif', false);
    ?>
" alt="" />
  <?php 
}
?>
									
  <div class="container">
   	<div>
   		<?php 
echo link_to($user, '@profile?username='******'class' => 'name'));
?>
                                            
      <div class="username">(<?php 
Ejemplo n.º 2
0
?>

<div class="comments" style="margin-top:20px;">
  <h4><em>+</em> Comments </h4>
<?php 
$results = $raykuPager->getPager()->getResults();
$maxCount = count($results);
?>

 <?php 
$logedUserId = $_SESSION['symfony/user/sfUser/attributes']['symfony/user/sfUser/attributes']['user_id'];
if ($maxCount > 0) {
    echo '<ul>';
    foreach ($results as $new) {
        echo '<li>';
        echo avatar_tag_for_user($new->getUserRelatedByPosterId(), 3);
        echo '<div class="commentator">';
        echo link_to($new->getUserRelatedByPosterId()->getName(), '@profile?username='******'</div>';
        ?>

			<div class="comment-content"> <p> <?php 
        echo $new->getContent();
        ?>
 </p> </div>
			 <div class="comment-time"><?php 
        echo $new->getCreatedAt("l , F jS, Y - g:i A");
        echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
        if ($new->getPosterId() == $_COOKIE["newUser"] || $new->getPosterId() == $logedUserId || $new->getRecipientId() == $logedUserId) {
            echo link_to('Delete Post', 'profile/delete?id=' . $new->getId(), array('class' => 'navlink delete', 'onclick' => "return confirm('Are you sure?');"));
        }
Ejemplo n.º 3
0
<?php

use_helper('MyAvatar', 'Javascript');
$post = PostPeer::retrieveByPk($object['ID']);
$poster = UserPeer::retrieveByPK($post->getPosterId());
$thread = $post->getThreadId();
?>

<div class="entry">
  <?php 
if ($poster->getPicture() != '') {
    ?>
	  <?php 
    echo avatar_tag_for_user($poster);
    ?>
  <?php 
} else {
    ?>
    <img src="<?php 
    echo image_path('dev/emptyprofile.gif', false);
    ?>
" alt="" />
  <?php 
}
?>

  <div class="container">
   	<div>
   		<?php 
$sLink = 'Posted by: ' . $poster->getName() . ' - Inside ' . $object['NAME'];
echo link_to($sLink, 'forum/thread?thread_id=' . $post->getThreadId(), array('class' => 'name'));
Ejemplo n.º 4
0
    
    <!--followers begins-->
    <div id="followers">
      <h4><span class="foll-no">
        <?php 
echo $num_followers;
?>
        </span> Followers</h4>
      <div  id="followers-images">
<?php 
$logedUserId = $_SESSION['symfony/user/sfUser/attributes']['symfony/user/sfUser/attributes']['user_id'];
$query = mysql_query("select * from expert_subscribers as es, user as u where es.expert_id=" . $expert->getId() . " and es.user_id = u.id ", $connection) or die("error1");
if (mysql_num_rows($query) > 0) {
    while ($row = mysql_fetch_array($query)) {
        $_followers = UserPeer::retrieveByPK($row['user_id']);
        echo link_to(avatar_tag_for_user($_followers), '@tutor?username=' . $_followers->getUsername());
    }
}
?>
      </div>
      <!--followers images ends-->
    </div>
    <!--followers ends-->
  </div>
  <!--content ends-->
  <!--sidebar-begins-->
  <div id="sidebar">
  
  
  <!-- FEATURE TO BE IMPLEMENTED
    <div id="thumbnail-wrap">
Ejemplo n.º 5
0
    ?>
      <li><?php 
    echo link_to('Rayku Points', 'shop/paypal', array('title' => 'Rayku Points', 'class' => 'tt-points'));
    ?>
</li>
    </ul>
    <!--ul.top-menu-->

    <div id="user-box" align="left"> <a href="<?php 
    echo sfConfig::get('app_whiteboard_url');
    ?>
/standalone" title="Test Whiteboard" target="_blank" class="tt-whiteboard">Test Whiteboard</a>
      <ul>
        <li class="main-row">
          <?php 
    $_image = avatar_tag_for_user($raykuUser);
    $_image = str_replace("img", "img height='24'", $_image);
    ?>
          <?php 
    echo $_image;
    ?>
 <?php 
    echo $raykuUser->getName();
    ?>
          <ul>
            <li class="profile"><a href="<?php 
    echo 'http://' . RaykuCommon::getCurrentHttpDomain() . '/tutor/' . $raykuUser->getUsername();
    ?>
" title="View Profile">View Profile</a></li>
            <li class="edit"><a href="<?php 
    echo 'http://' . RaykuCommon::getCurrentHttpDomain() . '/profile/' . $raykuUser->getUsername() . '/edit';
Ejemplo n.º 6
0
echo $message->getFormattedDate();
?>
 at <?php 
echo $message->getCreatedAt('H:i');
?>
</div>
      <div class="spacer"></div>
      <div class="user2">
        <?php 
//1645
$c = new Criteria();
$c->add(UserPeer::ID, $message->getSender()->getId());
$_Sender = UserPeer::doSelectOne($c);
//print_r($message); echo link_to( avatar_tag_for_user($message->getSender()), '@profile?username='******'') {
    echo link_to(avatar_tag_for_user($_Sender), '@profile?username='******'/images/dev/emptyprofile-small.gif', array('alt' => 'avatar'));
}
if ($message->getSender()->getType() == 5) {
    ?>

<img src="<?php 
    echo sfConfig::get('app_rayku_url');
    ?>
/images/expert_saved.png" />

<?php 
}
?>