当前位置: 首页>>代码示例>>PHP>>正文


PHP uihelper_resize_mk_user_img函数代码示例

本文整理汇总了PHP中uihelper_resize_mk_user_img函数的典型用法代码示例。如果您正苦于以下问题:PHP uihelper_resize_mk_user_img函数的具体用法?PHP uihelper_resize_mk_user_img怎么用?PHP uihelper_resize_mk_user_img使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了uihelper_resize_mk_user_img函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: uihelper_resize_mk_user_img

* The lastest version of Cyberspace Networks CoreSystem can be obtained from:
* http://developer.cyberspace-networks.com/
* For questions, help, comments, discussion, etc. please visit
* https://github.com/CyberspaceNetworks/CoreSystem
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*/
?>

<div class="<?php 
echo $block_name;
?>
_content" id="list_images">
    <div id="<?php 
echo $block_name;
?>
_list">
        <ul class="list-group">
            <li class="list-group-item">
                <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $uid;
?>
">
                    <?php 
echo uihelper_resize_mk_user_img($picture, 250, 250, 'alt="User Picture"');
?>
                </a>
            </li>
        </ul>
    </div>
</div>
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:30,代码来源:cnmodule.php

示例2: activities_message

function activities_message($subject, $object, $type, $extra)
{
    $msg = '';
    if (!empty($object) && !empty($subject) && !empty($type)) {
        $extra = unserialize($extra);
        $user = new User();
        $user->load($subject, "user_id");
        if (!empty($_REQUEST['debug'])) {
            echo "activity type: {$type} <br />";
        }
        switch ($type) {
            case 'user_post_a_comment':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> has left a <a href=' . $extra['content_url'] . '>comment</a> </b>';
                break;
            case 'user_post_a_blog':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> posted a new blog <a href=' . $extra['blog_url'] . '>' . $extra['blog_name'] . '</a> </b>';
                break;
            case 'content_modified':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> modified content <a href=' . $extra['blog_url'] . '>' . $extra['blog_name'] . '</a> </b>';
                break;
            case 'user_image_upload':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '>image</a> </b>';
                break;
            case 'user_video_upload':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '>video</a> </b>';
                break;
            case 'user_audio_upload':
                $msg = ' <span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '>audio</a> </b>';
                break;
            case 'user_friend_requested':
                break;
            case 'user_friend_added':
                $user = new User();
                $user->load($subject, "user_id");
                $friend = new User();
                $friend->load($object, 'user_id');
                $msg = ' <span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <em> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> added  </em> <span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $object . '>' . uihelper_resize_mk_user_img($friend->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <em> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $object . '> ' . $friend->display_name . '</a> as friend</em>';
                break;
            case 'user_friend_send_a_message':
                break;
            case 'group_created':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> created a new group <a href=' . $extra['group_url'] . '>' . $extra['group_name'] . '</a> </b>';
                break;
            case 'group_settings_updated':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> updated settings for group <a href=' . $extra['group_url'] . '>' . $extra['group_name'] . '</a> </b>';
                break;
            case 'group_joined':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> joined the group <a href=' . PA::$url . PA_ROUTE_GROUP . '/gid=' . $extra['group_id'] . '>' . $extra['group_name'] . '</a> </b>';
                break;
            case 'group_image_upload':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '&gid=' . $object . '>image</a> in <a href=' . PA::$url . PA_ROUTE_MEDIA_GALLEY_IMAGES . '&gid=' . $object . '>group gallery</a> </b>';
                break;
            case 'group_video_upload':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '>video</a> in <a href=' . PA::$url . PA_ROUTE_MEDIA_GALLEY_VIDEOS . '&gid=' . $object . '>group gallery</a> </b>';
                break;
            case 'group_audio_upload':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> uploaded a new <a href=' . PA::$url . '/media_full_view.php?cid=' . $extra['content_id'] . '>audio</a> in <a href=' . PA::$url . PA_ROUTE_MEDIA_GALLEY_AUDIOS . '&gid=' . $object . '>group gallery</a> </b>';
                break;
            case 'group_post_a_blog':
                $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . '</a> posted a new blog <a href=' . $extra['blog_url'] . '>' . $extra['blog_name'] . '</a> </b>';
                break;
            case 'network_joined':
                break;
            case 'network_created':
                break;
            default:
                if (defined('SHOW_EXTERNAL_ACTIVITY_FEEDS') and SHOW_EXTERNAL_ACTIVITY_FEEDS) {
                    if (is_array($extra['info'])) {
                        $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . ' </a></b>';
                        foreach ($extra['info'] as $key => $value) {
                            $msg .= "<p>{$value}</p>";
                        }
                        $msg .= ' (external)';
                    } else {
                        $msg = '<span> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '>' . uihelper_resize_mk_user_img($user->picture, 20, 20, 'alt="User Picture"') . '</a> </span> <b> <a href=' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $subject . '> ' . $user->display_name . ' </a></b>' . $extra['info'] . ' (external)';
                    }
                }
        }
    }
    return $msg;
}
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:81,代码来源:cnuihelper.php

示例3: render_network_image

    function render_network_image($net_or_id) {
	// find the id
	if (is_numeric($net_or_id)) {
	    // there's no easy way to get info about a network; we have to go through this incantation...
	    $net_obj = new Network();
	    $net_obj->network_id = $net_or_id;
	    $net = $net_obj->get();
	    $net = $net[0];
	} else {
	    $net = $net_or_id;
	}

	// and display
	$networks = $this->state['networks'];
	$included = isset($networks['included'][(int)$net->network_id]);

	$img = uihelper_resize_mk_user_img($net->inner_logo_image, 75, 75);
	$name = $net->name;
	$cls = "friend_pic";
	if ($included) $cls .= " included_friend";
	$include_op = $included ? "exclude" : "include";

	$onclick = "badge.include_obj('networks', 'network_$net->network_id', $net->network_id, '$include_op');";
	return <<<ENS
<div class="$cls" onclick="$onclick" title="Click to $include_op this network.">
	<p>$img</p>
	<p>$name</p>
</div>
ENS;
    }
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:30,代码来源:badge_create.php

示例4: DomDocument

if (count($users_data)) {
    $xml_obj = new DomDocument();
    $buddylist = $xml_obj->createElement('buddylist');
    foreach ($users_data as $user) {
        $profile_data = User::load_user_profile($user['user_id'], $viewer_uid);
        $profile_data = sanitize_user_data($profile_data);
        $buddy = $xml_obj->createElement("buddy");
        //adding idbuddy to the xml
        $idbuddy = $xml_obj->createElement("idbuddy");
        $idbuddy->appendChild($xml_obj->createTextNode($user['user_id']));
        $buddy->appendChild($idbuddy);
        //adding thumbnail to the xml
        if (empty($user['picture'])) {
            $user['picture'] = $current_theme_path . '/images/default.png';
        } else {
            $img = uihelper_resize_mk_user_img($user['picture'], 80, 80, 'alt="PA"');
            preg_match("/src=\"([^']*?)\"/", $img, $match);
            //preg_match to get the src of the image
            $user['picture'] = $match[1];
        }
        $thumbnail = $xml_obj->createElement("thumbnail");
        $thumbnail->appendChild($xml_obj->createTextNode($user['picture']));
        $buddy->appendChild($thumbnail);
        //adding presence to the xml
        $presence = $xml_obj->createElement("presence");
        $personaIds = Persona::get_user_persona_ids_with_service($user['user_id'], 'AIM');
        $pp = PersonaHelper::can_see(@$personaIds[0], $user['user_id'], $viewer_uid);
        if ($pp) {
            // we are allowed to see it
            $presence_image = 'offline.png';
            $Screen_name = $pp->configuration_data->userName;
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:buddylist.php

示例5: uihelper_resize_mk_user_img

        ?>
        <tr class="activities_ranking_row activities_ranking_<?php 
        echo $even_odd;
        ?>
" id="activities_<?php 
        echo $idx;
        ?>
" onclick="$('.activities_actions#'+this.id).toggle();" style="cursor:pointer;">
          <td class="ranking_position">
            <?php 
        echo $i + $increment;
        ?>
          </td>
          <td class="ranking_image">
            <?php 
        echo "<a href=\"" . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . "{$ranked_user->user_id}\">" . uihelper_resize_mk_user_img($ranked_user->picture, 35, 35, "alt=\"{$ranked_user->display_name}\"") . "</a>";
        ?>
          </td>
          <td class="ranking_name">
            <a href="<?php 
        echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $ranked_user->user_id;
        ?>
"><?php 
        echo $ranked_user->display_name;
        ?>
</a>
          </td>
          <td class="ranking_date">
            <?php 
        echo !empty($ranked_user->last_activity) ? PA::datetime($ranked_user->last_activity, 'long', 'short') : __("unknown");
        ?>
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:31,代码来源:module_middle.tpl.php

示例6: urlencode

 //save post normally
 if ($_POST['route_to_pa_home'] == 1) {
     $display_on_homepage = DISPLAY_ON_HOMEPAGE;
     //its zero
 } else {
     $display_on_homepage = NO_DISPLAY_ON_HOMEPAGE;
     //This will not show up on homepage - flag has opposite values
 }
 $post_saved = BlogPost::save_blogpost(0, $login_uid, $_POST["blog_title"], $_POST["description"], NULL, $terms, -1, 1, $display_on_homepage);
 $permalink_cid = $post_saved['cid'];
 if ($extra['network_content_moderation'] == NET_YES && $network_info->owner_id != $user->user_id) {
     Network::moderate_network_content(-1, $permalink_cid);
     // -1 for contents; not a part of any collection
     $error_msg = "&err=" . urlencode(MessagesHandler::get_message(1004));
 }
 $content_author_image = uihelper_resize_mk_user_img($user->picture, 80, 80, 'alt="' . $user->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
 $network_owner_name = User::map_ids_to_logins($network_info->owner_id);
 $params['cid'] = $permalink_cid;
 $params['first_name'] = $user->first_name;
 $params['user_id'] = $user->user_id;
 $params['user_image'] = $content_author_image;
 $params['content_title'] = $_POST["blog_title"];
 $params['network_name'] = $network_info->name;
 $params['content_url'] = PA::$url . '/' . FILE_CONTENT . '?cid=' . $permalink_cid;
 $params['content_moderation_url'] = PA::$url . '/' . FILE_NETWORK_MANAGE_CONTENT;
 $params['config_site_name'] = $config_site_name;
 $params['network_owner_name'] = $network_owner_name[$network_info->owner_id];
 auto_email_notification('content_posted', $params);
 if ($_POST['route_to_pa_home'] == 1) {
     auto_email_notification('content_posted_to_comm_blog', $params);
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:createcontent.php

示例7: uihelper_resize_mk_user_img

echo $outer_block_id;
?>
">
    <!-- Post -->
    <div class="post">
        <h2>
            <?php 
echo $contents->title;
?>
        </h2>
        <div class="user-block">
            <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $contents->author->user_id;
?>
"><?php 
echo uihelper_resize_mk_user_img($contents->author->picture, 128, 128, 'class="img-circle img-bordered-sm" alt=".$contents->author_name."');
?>
</a>
            <span class="username">
                <?php 
echo $contents->author_name;
?>
            </span>
            <span class="description"><?php 
echo __("Blog post");
?>
 - <?php 
echo date("l, F d Y", $contents->created);
?>
</span>
        </div>
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:CNBlogPost.php

示例8: getUserImage

function getUserImage($args)
{
    $login = $args['login'];
    $user = new User();
    $user->load($login);
    if ($args['width'] == null || $args['height'] == null) {
        $p = $user->picture;
        $pic = !empty($p) ? $p : 'default.png';
        return array('success' => TRUE, 'url' => PA::$url . '/files/' . $pic);
    } else {
        $pic = uihelper_resize_mk_user_img($user, $args['width'], $args['height']);
        $pic = explode("\"", $pic);
        $pic = $pic[3];
        return array('success' => TRUE, 'url' => $pic);
    }
}
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:16,代码来源:api_impl.php

示例9: switch

 switch ($show_what) {
     case 'friends':
         $perpage = (int) $param;
         $relations = Relation::get_all_relations($user->user_id, 0, FALSE, $param, $page);
         $n = count($relations);
         $rows = intval($n / 3) + ($n % 3 ? 1 : 0);
         $pos = 0;
         $html .= "<table>";
         for ($y = 0; $y < $rows; ++$y) {
             $html .= "<tr>";
             for ($x = 0; $x < $cols && $pos < $n; ++$x, ++$pos) {
                 $html .= '<td valign="bottom">';
                 $rel = $relations[$pos];
                 $html .= '<a target="_blank" href="' . $base_url . '/user.php?uid=' . $rel['user_id'] . '">';
                 if ($rel['picture'] && file_exists("files/" . $rel['picture'])) {
                     $html .= uihelper_resize_mk_user_img($rel['picture'], 50, 50) . "<br/>";
                 }
                 $html .= htmlspecialchars($rel['login_name']) . '</a>';
                 $html .= "</td>";
             }
             $html .= "</tr>";
         }
         $show_all_url = "{$base_url}/view_all_members.php?view_type=relations&uid={$user->user_id}";
         $html .= "<tr>";
         for ($i = 0; $i < $cols - 1; ++$i) {
             $html .= '<td style="background-color: white"></td>';
         }
         $html .= "<td><a target=\"_blank\" href=\"{$show_all_url}\">show all</a></td></tr>";
         $html .= "</table>";
         break;
     case 'groups':
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:badge.php

示例10: if

* @license http://bit.ly/aVWqRV PayAsYouGo License
* @copyright Copyright (c) 2010 Broadband Mechanics
* @package PeopleAggregator
*/
?>
<div <?= ($mod->may_see_details) ? 'class="module_icon_list"' : '' ?> id="list_members">
<ul class="memb ers">
  <?php
    for ($counter = 0; $counter < count($links['users_data']); $counter++) {
      $class = (( $counter%2 ) == 0) ? 'class="color"': NULL;
  ?>  
  
  <li <?php echo $class?>>
  	<?php if ($mod->may_see_details) { ?>
    <a href="<?= PA::$url . PA_ROUTE_USER_PUBLIC . '/' . urlencode($links['users_data'][$counter]['login_name']) ?>">
      <?php echo uihelper_resize_mk_user_img($links['users_data'][$counter]['picture'], 35, 35, 'alt="PA"') ?>
    </a>
        <span>
          <b><?= link_to($links['users_data'][$counter]['display_name'],
			 "user_blog", array("login" => urlencode($links['users_data'][$counter]['login_name']))) ?></b><br/>
			 <?= $links['users_data'][$counter]['family_status'] ?>
        </span>
  	<? } else { ?>
  	<span>
          <b><?= link_to($links['users_data'][$counter]['display_name'],
			 "user_blog", array("login" => urlencode($links['users_data'][$counter]['login_name']))) ?></b>,
			 <?= $links['users_data'][$counter]['family_status'] ?>
        </span>
  	<? } ?>
  </li>
  <?php 
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:31,代码来源:side_inner.tpl.php

示例11: uihelper_resize_mk_user_img

 $new_video->allow_comments = 1;
 if (!empty($_GET['group_id'])) {
     $perm = 1;
 } else {
     $perm = !empty($_GET['video_perm']) ? $_GET['video_perm'] : 1;
 }
 $new_video->video_perm = $new_video->file_perm = $perm;
 $new_video->save();
 $tag_array = NULL;
 if (!empty($_GET['tag'])) {
     $tag_array = Tag::split_tags($_GET['tag']);
     Tag::add_tags_to_content($new_video->content_id, $tag_array);
 }
 global $config_site_name;
 $uploaded = TRUE;
 $media_owner_image = uihelper_resize_mk_user_img(PA::$user->picture, 80, 80, 'alt="' . PA::$user->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
 $params['first_name'] = PA::$user->first_name;
 $params['user_id'] = PA::$login_uid;
 $params['user_image'] = $media_owner_image;
 $params['cid'] = $new_video->content_id;
 $params['media_title'] = $new_video->title;
 $params['content_url'] = $redirect_url . '/' . FILE_CONTENT . '?cid=' . $new_video->content_id;
 $params['config_site_name'] = $config_site_name;
 $params['media_full_view_url'] = $redirect_url . '/' . FILE_MEDIA_FULL_VIEW . '?cid=' . $new_video->content_id;
 $params['content_moderation_url'] = $redirect_url . '/' . FILE_NETWORK_MANAGE_CONTENT;
 $params['network_name'] = PA::$network_info->name;
 //   auto_email_notification('media_uploaded', $params, $network_details);
 $moderation = FALSE;
 if (!empty($_GET['group_id'])) {
     $activity = 'group_video_upload';
     //for rivers of people
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:31,代码来源:save_tekmedia.php

示例12: catch

 }
 try {
     $relation = Relation::get_relation($rel_creater->user_id, $relation_uid);
     $edit = $relation ? TRUE : FALSE;
 } catch (PAException $e) {
     $edit = FALSE;
 }
 try {
     if (isset($_POST['in_family'])) {
         // If the user has checked the in_family checkbox.
         Relation::add_relation($uid, $relation_uid, $relationship_level, NULL, NULL, NULL, NULL, NULL, true, $status);
     } else {
         Relation::add_relation($uid, $relation_uid, $relationship_level, NULL, NULL, NULL, NULL, NULL, NULL, $status);
     }
     // relationship establisher image
     $rel_creater_picture = uihelper_resize_mk_user_img($rel_creater->picture, 80, 80, 'alt="' . $rel_creater->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
     if ($edit == FALSE) {
         if ($extra['reciprocated_relationship'] == NET_YES) {
             $approve_deny_url = $base_url . '/view_all_members.php?view_type=in_relations&uid=' . $user->user_id;
             // defining array to be sent, to fill message frame
             $params = array('first_name' => $_SESSION['user']['first_name'], 'last_name' => $_SESSION['user']['last_name'], 'user_id' => $_SESSION['user']['id'], 'approve_deny_url' => $approve_deny_url, 'invited_user_name' => $user->login_name, 'requestor_image' => $rel_creater_picture, 'to' => $user->email, 'requested_user_id' => $user->user_id, 'config_site_name' => $config_site_name);
             // send notification
             auto_email_notification_members('relationship_requested', $params);
         } else {
             $params['related_uid'] = $relation_uid;
             $params['related_user'] = $user->first_name;
             $params['user_name'] = $rel_creater->login_name;
             $params['user_id'] = $rel_creater->user_id;
             $params['user_image'] = $rel_creater_picture;
             $params['to'] = $user->email;
             $params['my_friends_url'] = PA::$url . '/' . FILE_VIEW_ALL_MEMBERS . '?view_type=in_relations&uid=' . $relation_uid;
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:edit_relations.php

示例13: uihelper_resize_mk_user_img

              </table>
            </th>
          </tr>

          <tr valign="top">
            <td class="author_info" width="<?php 
echo $avatar_size['width'];
?>
">
              <div class="forum_avatar">
                <a href="<?php 
echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $post->user->login_name;
?>
">
                  <?php 
echo uihelper_resize_mk_user_img($post->user->picture, $avatar_size['width'], $avatar_size['height'], 'alt="' . $post->user->login_name . '"');
?>
                </a>
              </div>
              <div class="smallfont">
                <div><?php 
echo __('Posts');
?>
: <?php 
echo $post->user->user_id != -1 ? PaForumPost::countPaForumPost("user_id = " . $post->user->user_id) : '';
?>
 </div>
                <div><?php 
echo __('Last login');
?>
: <?php 
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cnmodule_content_display_post.php

示例14: htmlspecialchars

'>
  <td class="author">

      <?php 
        if ($comment['user_id'] == -1) {
            ?>
      <a rel="nofollow" href="<?php 
            echo htmlspecialchars($comment['homepage']);
            ?>
"><?php 
            echo $comment['name'];
            ?>
</a> said:
      <?php 
        } else {
            echo '<a href="' . PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $comment['user_id'] . '">' . uihelper_resize_mk_user_img($comment['picture'], 80, 80, 'alt=""') . '</a>';
            ?>

      <br /><a href="<?php 
            echo PA::$url . PA_ROUTE_USER_PUBLIC . '/' . $comment['user_id'];
            ?>
"> <?php 
            echo $comment['name'];
            ?>
</a>
      <?php 
        }
        ?>
  </td>
    <td class="message">
   <?php 
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:31,代码来源:cncontent_comments.php

示例15: User

             // if group is joined through group invitation
             $Ginv = Invitation::load($group_invitation_id);
             $gid = $Ginv->inv_collection_id;
             $user_obj = new User();
             $user_obj->load((int) $Ginv->user_id);
             $group = ContentCollection::load_collection((int) $gid, $Ginv->user_id);
             $user_type = Group::get_user_type($user_obj->user_id, $gid);
             if ($group->reg_type == REG_MODERATED && $user_type == OWNER) {
                 $group->collection_id = $gid;
                 $group->approve($login_uid, 'user');
             }
             $user_accepting_ginv_obj = new User();
             $user_accepting_ginv_obj->load((int) $login_uid);
             $group_name = $group->title;
             $group_url = PA::$url . '/' . FILE_GROUP . '?gid=' . $gid;
             $invited_user_image = uihelper_resize_mk_user_img($user_accepting_ginv_obj->picture, 80, 80, 'alt="' . $user_accepting_ginv_obj->first_name . '" align="left" style="padding: 0px 12px 12px 0px;"');
             // data for passing in common mail method
             $array_of_data = array('first_name' => $user_accepting_ginv_obj->first_name, 'last_name' => $user_accepting_ginv_obj->last_name, 'user_name' => $user_accepting_ginv_obj->login_name, 'user_id' => $user_accepting_ginv_obj->user_id, 'invited_user_id' => $user_obj->user_id, 'invited_user_name' => $user_obj->login_name, 'invited_user_image' => $invited_user_image, 'group_id' => $gid, 'mail_type' => 'invite_accept_group', 'to' => $user_obj->email, 'group_name' => $group_name, 'group_member_count' => Group::get_member_count((int) $gid), 'config_site_name' => $config_site_name, 'group_url' => $group_url);
             auto_email_notification_members('invitation_accept', $array_of_data);
         }
     } catch (PAException $e) {
         if ($e->code == GROUP_NOT_INVITED) {
             $group_top_mesg = $e->message;
             //header("Location: groups_home.php");
             //exit;
         }
         $group_top_mesg = $e->message;
     }
 } else {
     $group_top_mesg = "You are already a member of \"" . stripslashes($group->title) . "\" .";
 }
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:group.php


注:本文中的uihelper_resize_mk_user_img函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。