__THEME__/mystyle/images/l1.gif
表单 s-txt
E:\LAMP\WWW\KeHu\yishujia\addons\theme\stv1\_static\css\form.css
获取积分
$usercredit = D('credit_user')->where('uid='.$this->mid)->find();
Array ( [id] => 1 [uid] => 1 [score] => 3 [experience] => 60 )
加载方法
tsload(ADDON_PATH.'/library/phpmailer/class.phpmailer.php');
//获取用户积分
$usercredit = D('credit_user')->where('uid='.$this->mid)->find();
$this->assign('usercredit',$usercredit);
裁剪长度
{$li.name|getShort='10'}
获取大图
{$photo.savepath|get_photo_url=###, 550, 'auto', false}
获取小图
{$li.savepath|get_photo_url}
{$photo.savepath|get_photo_url}
// 获取用户组信息
$userGroupData = model ( 'UserGroupLink' )->getUserGroupData ( $this->uid );
$this->assign ( 'userGroupData', $userGroupData );
// 获取用户积分信息
$userCredit = model ( 'Credit' )->getUserCredit ( $this->uid );
Array (
[credit] => Array ( [experience] => Array ( [value] => 2 [alias] => 经验 ) [score] => Array ( [value] => 163 [alias] => 鲸鱼宝 ) )
[creditType] => Array ( [experience] => 经验 [score] => 鲸鱼宝 )
[level] => Array ( [level] => 1 [name] => 初学乍练 [image] => level1.png [start] => 0 [end] => 5 [level_type] => experience [nextNeed] => 3 [nextName] => 登堂入室 [src] => http://test.com/addons/theme/stv1/_static/image/level/level1.png ) )
$this->assign ( 'userCredit', $userCredit );
// 加载用户关注信息
($this->mid != $this->uid) && $this->_assignFollowState ( $this->uid );
// 获取用户统计信息
$userData = model ( 'UserData' )->getUserData ( $this->uid );
$this->assign ( 'userData', $userData );
表:
tk_channel_category 频道主题
tk_channel 频道图片数据
tk_photo 图片 albumid = 相册ID
tk_photo_album 相册
用户附加信息表
user_profile
附加信息配置表
`tk_user_profile_setting`
core\OpenSociax\functions.inc.php 自定标签的方法 getUserSpace
* @param boolen $icon 是否显示用户组图标,默认为true
* @return string 解析空间地址HTML
*/
if($match[1] == 'uname') {
$text = str_replace('{uname}', $_userinfo[$uid]['uname'], $text);
empty($class) && $class = 'name';
} else if($match[1] == 'uaddress') {
$text = str_replace('{uaddress}', $_userinfo[$uid]['location'], $text);
empty($class) && $class = 'name';
}
关注取消关注按钮---全站JS监听
module.common.js - Yishujia/addons/theme/stv1/_static/js (10 个匹配项)

下一篇:Linux查看系统cpu个数、核心书、线程数