<? $author = get_user($the_post['created_by']); ?>

<div class="post_list">

<a href="<? print site_url('skide/userbase/action:profile/username:'******'created_by'], 'username'); ?>" class="user_photo left" style="margin-right: 7px;background-image: url('<? print user_thumbnail( $the_post['created_by'], 50) ?>')"></a>
<div class="post_list_content"> <span class=""><? print user_name($the_post['created_by']); ?></span><br />
  <span class="question_text"><? print $the_post['content_title'];  ?></span> <a href="javascript:add_edit_question('<? print $the_post['id'] ?>');" class="mw_btn_x reply_btn"><span><strong>Edit</strong></span></a> <a class="user_activity_comments right" href="<? print post_link($the_post['id']); ?>"><strong id="post-likes-<? print ($the_post['id']); ?>"><? print comments_count($the_post['id']); ?></strong><span></span></a> </div>
<div class="c">&nbsp;</div>


</div>
Example #2
0
  <? if($to_user != user_id()) : ?>
  <a id="follow_btn_<?php echo $to_user?>" style="margin-top: 1px" href="javascript:mw.users.FollowingSystem.follow(<?php echo $to_user?>,0,'#follow_btn_<?php echo $to_user?>');" class="confirm_request right" title="Add as friend <?php print CI::model('users')->getPrintableName($to_user, 'first'); ?>"><span>Confirm friend</span></a>
<? endif; ?>


   <? endif; ?>



</div>


<? endif ?>
  <<?php  print $wrap_element_items; ?>  class="<?php  print $wrap_element_items_class; ?>" >
 
  <a href="<?php print site_url('userbase/action:profile/username:'******'username']) ?>" class="img" style="background-image: url(<? print user_thumbnail($user['id'], 70) ?>)" >     </a>


  <p><a href="<?php print site_url('userbase/action:profile/username:'******'username']) ?>"><strong><? print user_name($item['id']); ?></strong></a> <a href="javascript:mw.users.UserMessage.compose(<?php echo $user['id']; ?>);" class="send_msg" style="margin:0" title="Send new message to <?php echo $user['first_name']; ?>"></a><br />

  </p>



  

  <div class="c"></div><br />

  
  </<?php  print $wrap_element_items; ?>>
  <? endforeach; ?>
Example #3
0
<? foreach($users as $item): ?>
<? $user = ($item);

  
  ?>
 <? $edit_url = CI::model('core')->urlConstruct($base_url = false, $params = array('edit_user'=>$user['id']))  ?>
<<?php 
print $wrap_element_items;
?>
 class="<?php 
print $wrap_element_items_class;
?>
" > <a href="<?php 
print site_url('userbase/action:profile/username:'******'username']);
?>
" class="img" style="background-image: url(<? print user_thumbnail($user['id'], 70) ?>)" > </a>
<p><a href="<?php 
print $edit_url;
?>
"><strong><? print user_name($item['id']); ?></strong></a> <a href="javascript:mw.users.UserMessage.compose(<?php 
echo $user['id'];
?>
);" class="send_msg" style="margin:0" title="Send new message to <?php 
echo $user['first_name'];
?>
"></a><br />
</p>
<div class="c"></div>
<br />
</<?php 
print $wrap_element_items;
Example #4
0
 <?  if($user_id == false){
	
	$user_id = user_id();
}


?>
  <? $form_values = get_user($user_id); ?>
   <div class="c" style="padding-bottom: 4px">&nbsp;</div>

    <a  href="<? print profile_link($user_id) ?>" class="user_photo left" style="background-image:url(<? print user_thumbnail($user_id, 90); ?>);margin-right: 10px"></a>



<p style="padding-bottom: 5px">  Name :
  <a class="" href="<? print profile_link($user_id) ?>"><? print user_name($user_id) ?></a></p>





  

  <? ($res['custom_fields']['country'])? print $res['custom_fields']['country'].', ':false;  ?> <? ($res['custom_fields']['city'])? print $res['custom_fields']['city'].'':false;  ?>
  

    <a href="javascript:mw.users.UserMessage.compose(<?php 
echo $user_id;
?>
);" class="btn" title="Send new message"><span>Send a message</span></a>
Example #5
0
		   $between2_link = profile_link($message['from_user']);
		   
		    $contevsation_with = $message['from_user'];
		   	 $between2 = user_name(intval($message['from_user']), 'first'); 
	  $between1 = user_name(intval($message['to_user']), 'first'); 
	 
 }
 
 
   
  
  ?>
        <h4>Converstion between <a  class="mw_blue_link" href="<?php print $between1_link ?>"><?php print $between1 ?></a> and <a class="mw_blue_link" href="<?php print $between2_link ?>"><?php print $between2 ?></a></h4>
        <br />
        <? foreach($thread as $thread_msg):  ?>
        <div rel="<?php echo $thread_msg['id']?>"  class="tread_msg <?php if($thread_msg['is_read'] == 'n'): ?> unread<?php endif; ?>"> <a href="<?php echo user_link('userbase/action:profile/username:'******'created_by'], 'username'); ?>" class="ui_photo"> <span style="background-image: url('<? print user_thumbnail($thread_msg['created_by'], 75); ?>');"></span> <? print user_name($thread_msg['from_user']); ?> </a> <span class="date">
          <?php if($thread_msg['is_read'] == 'n'): ?>
          <small class="gray" id="new_<?php echo $thread_msg['id']?>">(new)</small>
          <?php endif; ?>
          <?php echo date(DATETIME_FORMAT, strtotime($thread_msg['from_user']));?></span>
          <!--<span class="subject"><strong></strong></span>-->
          <p><strong><?php echo $thread_msg['subject'];?><br />
            </strong> <?php echo $thread_msg['message'];?></p>
          <? if($user_id == $thread_msg['created_by']): ?>
          <a href="javascript: mw.users.UserMessage.del('<?php echo $thread_msg['id']; ?>', 'messageItem-<?php echo $thread_msg['id']?>')" class="right mw_btn_x_orange"><span>Delete</span></a>
          <? endif; ?>
          <? $thread_id = $thread_msg['parent_id'];
  if(intval($thread_id) ==0 ){
	  
	  $thread_id =  $thread_msg['id'];
  }
Example #6
0
<?
 //var_dump($params);
$orig_params = $params;
if(!$limit){
$limit = 12;	
}
?>

<h2>New on Skid-e-Kids</h2>
<ul class="user_friends_list <? print $list_class ?>">
  <? $users = get_new_users('300 days', 50);  ?>
  <? if(!empty($users)): 
  shuffle($users);
  $users = array_slice($users, 0, $limit);
  ?>
  <? foreach($users as $item): ?>
  <? $user = get_user($item); ?>
  <li> <a href="<?php 
print profile_link($item);
?>
"> <span style="background-image: url(<? print user_thumbnail($item, 75) ?>)"></span> <strong><? print user_name($item); ?></strong> </a> </li>
  <? endforeach; ?>
  <? endif; ?>
</ul>
<br class="c" />
<br />

Example #7
0
echo $message['id'];
?>
" class="inbox_msg" <?php 
if ($message['is_read'] == 'n') {
    ?>
    onmouseout="mw.users.UserMessage.read('<?php 
    echo $message['id'];
    ?>
')"
    <?php 
}
?>
 > <a href="<?php 
echo site_url('userbase/action:profile/username:'******'from_user'], 'username'); ?>" class="ui_photo"> <span style="background-image: url('<? print user_thumbnail($message['from_user'], 50); ?>');"></span> <? print user_name($message['from_user']); ?> </a>
  <div class="inbox_content"> <span class="date"><?php 
echo date(DATETIME_FORMAT, strtotime($message['created_on']));
?>
</span> <span class="subject"><strong>Subject: </strong><?php 
echo $message['subject'];
?>
</span>
    <p><strong>Message: </strong> <?php 
echo $message['message'];
?>
</p>
  </div>
  <div class="c">&nbsp;</div>
  <a href="javascript: mw.users.UserMessage.del('<?php 
echo $message['id'];
Example #8
0
function get_dashboard_action($log_id)
{
    global $CI;
    $log = get_log_item($log_id);
    $data = $log;
    $to_return = array();
    switch ($data['to_table']) {
        case 'table_users_statuses':
            $stat = CI::model('statuses')->statusGetById(intval($data['to_table_id']));
            $stat = html_entity_decode($stat['status']);
            if (stristr($stat, 'http://') == true) {
                $term = 'shared a link';
                $stat = auto_link($stat);
                $embedly = true;
            } else {
                $term = 'said ';
                $embedly = false;
            }
            $to_return['allow_comments'] = true;
            $to_return['allow_likes'] = true;
            if ($embedly == false) {
                $to_return['msg'] = "{$term} " . $stat;
            } else {
                $to_return['msg'] = "<div class='embedly'>{$term} " . $stat . "</div>";
            }
            break;
        case 'table_users':
            $to_return['msg'] = "updated profile";
            $to_return['allow_comments'] = false;
            $to_return['allow_likes'] = false;
            break;
        case 'table_messages':
            $to_return['msg'] = "send a message to " . $data['to_table_id'] . ".. must be implemented";
            $to_return['allow_comments'] = false;
            $to_return['allow_likes'] = false;
            break;
        case 'table_comments':
            $to_return['allow_comments'] = true;
            $to_return['allow_likes'] = true;
            $comm = CI::model('comments')->commentGetById($data['to_table_id']);
            //p($comm);
            if ($comm['to_table'] == 'table_content') {
                $content_data = CI::model('content')->contentGetByIdAndCache($comm['to_table_id']);
                $url = CI::model('content')->getContentURLByIdAndCache($comm['to_table_id']);
                $comm_txt = $comm['comment_body'];
                $comm_txt = html_entity_decode($comm_txt);
                $comm_txt = auto_link($comm_txt);
                $thumb = thumbnail($content_data['id'], 90);
                //p($comm);
                $to_return['msg'] = "commented on <a href='{$url}'>{$content_data['content_title']}</a><br> {$comm_txt}";
                $to_return['msg'] .= "<div class='post_item'><div style='height:10px;'>&nbsp;</div><a href='{$url}'><img class='embed_img' src='{$thumb}' border='0'></a><h3 style='padding-bottom:5px;'><a href='{$url}'>{$content_data['content_title']}</a></h3> {$desc}  {$emded_txt} \t</div>";
            }
            if ($comm['rel_table'] == 'table_content') {
                $content_data = CI::model('content')->contentGetByIdAndCache($comm['rel_table_id']);
                $url = CI::model('content')->getContentURLByIdAndCache($comm['rel_table_id']);
                $comm_txt = $comm['comment_body'];
                $comm_txt = html_entity_decode($comm_txt);
                $comm_txt = auto_link($comm_txt);
                $thumb = thumbnail($content_data['id'], 90);
                //p($comm);
                $to_return['msg'] = "commented on <a href='{$url}'>{$content_data['content_title']}</a><br> {$comm_txt}";
                $to_return['msg'] .= "<div class='post_item'><div style='height:10px;'>&nbsp;</div><a href='{$url}'><img class='embed_img' src='{$thumb}' border='0'></a><h3 style='padding-bottom:5px;'><a href='{$url}'>{$content_data['content_title']}</a></h3> {$desc}  {$emded_txt} \t</div>";
            }
            if ($comm['to_table'] == 'table_users_statuses') {
            }
            break;
        case 'table_votes':
            $to_return['allow_comments'] = false;
            $to_return['allow_likes'] = false;
            $vote = CI::model('votes')->voteGetById($data['to_table_id']);
            if ($vote['to_table'] == 'table_content') {
                $more = CI::model('core')->getCustomFields('table_content', $vote['to_table_id']);
                $content_data = CI::model('content')->contentGetByIdAndCache($vote['to_table_id']);
                $url = CI::model('content')->getContentURLByIdAndCache($vote['to_table_id']);
                $to_return['msg'] = "liked <a href='{$url}'>{$content_data['content_title']}</a>";
                if ($more['embed_code']) {
                    $emded_txt = "<textarea>" . html_entity_decode($more['embed_code']) . "</textarea>";
                } else {
                    $emded_txt = false;
                }
                $thumb = thumbnail($content_data['id'], 90);
                $desc = codeClean($content_data['content_body']);
                $desc = character_limiter($desc, 140, '...');
                $desc = str_ireplace("\n", ' ', $desc);
                $desc = str_ireplace('\\n', ' ', $desc);
                $to_return['msg'] .= "<div class='post_item'><div style='height:10px;'>&nbsp;</div><a href='{$url}'><img class='embed_img' src='{$thumb}' border='0'></a><h3 style='padding-bottom:5px;'><a href='{$url}'>{$content_data['content_title']}</a></h3> {$desc}  {$emded_txt} \t</div>";
                break;
            } else {
            }
        case 'table_content':
            $content_data = CI::model('content')->contentGetById($data['to_table_id']);
            if (empty($content_data)) {
                CI::model('notifications')->logDeleteById($data['id']);
            } else {
                $more = CI::model('core')->getCustomFields('table_content', $content_data['id']);
                $url = post_link($data['to_table_id']);
                $to_return['allow_comments'] = true;
                $to_return['allow_likes'] = true;
                $to_return['msg'] = "published <a href='{$url}'>{$content_data['content_title']}</a>";
                if ($more['embed_code']) {
                    $emded_txt = "<textarea>" . html_entity_decode($more['embed_code']) . "</textarea>";
                } else {
                    $emded_txt = false;
                }
                $thumb = thumbnail($content_data['id'], 90);
                $desc = codeClean($content_data['content_body']);
                $desc = character_limiter($desc, 140, '...');
                $desc = str_ireplace("\n", ' ', $desc);
                $desc = str_ireplace('\\n', ' ', $desc);
                $to_return['msg'] .= "<div class='post_item'><div style='height:10px;'>&nbsp;</div><a href='{$url}'><img class='embed_img' src='{$thumb}' border='0'></a><h3 style='padding-bottom:5px;'><a href='{$url}'>{$content_data['content_title']}</a></h3> {$desc}  {$emded_txt} \t</div>";
                break;
            }
        case 'table_followers':
            $data = CI::model('core')->getById($data['to_table'], $data['to_table_id']);
            //p($data);
            if (!empty($data)) {
                $to_return['allow_comments'] = false;
                $to_return['allow_likes'] = false;
                $data2 = CI::model('users')->getUserById($data['follower_id']);
                $url = profile_link($data['follower_id']);
                $name = CI::model('users')->getPrintableName($data['follower_id']);
                $thumb = user_thumbnail($data['follower_id'], 70);
                $to_return['msg'] = "is friend with <a href='{$url}' class='user_photo' style='background-image:url({$thumb})'></a><a href='{$url}'>{$name}</a>";
            }
            break;
        default:
            p($data);
            break;
    }
    $to_return['allow_votes'] = $to_return['allow_likes'];
    return $to_return;
}
<? $form_id = md5($comment_to_table.$comment_to_id); ?>

<div class="comment_area" id="<? print $form_id; ?>">
  <div class="comment_area_content">
    <form method="post" action="#" class="ajax_comment_form">
      <input type="hidden" name="to_table" value="<? print CI::model('core')->securityEncryptString($comment_to_table); ?>">
      <input type="hidden" name="to_table_id" value="<? print CI::model('core')->securityEncryptString($comment_to_id); ?>">
      <input type="hidden" name="display" value="<? print CI::model('core')->securityEncryptString(('dashboard/index_item_comments_list.php')); ?>">
      <input type="hidden" name="update_element" value="#<? print $comments_update_element; ?>">
      <input type="hidden" name="hide_element" value="#<? print $form_id; ?>">
      <input type="hidden" name="show_element" value="#<? print $form_id; ?>_success">
      <a href="#" class="user_photo" style="background-image: url('<? print user_thumbnail(user_id(), '75') ?>')"></a>
      <span class="mw_area">
           <textarea name="comment_body" default="Write a comment..." class="required">Write a comment...</textarea>
      </span>
      <a href="#" class="submit">Submit</a>
    </form>
  </div>
</div>

<div id="<? print $form_id; ?>_success" style="display:none;"> Your comment is posted. </div>