分类归档:uchome

uchome2.0防注册机

之前网站被注册机盯上了,像uchome这样的SNS网站,批量注册一大堆用户,全部发些垃圾内容,整个网站一会就被弄的不成样。

解决这个问题的办法,直接采用的就是邮箱验证,为的就是提高用户质量,如果一个真正想注册用的户是不会在意去打开邮箱,拿到验证码的。 阅读全文…

uchome教程整理

UCH个人主页风格发布汇总

http://www.discuz.net/viewthread.php?tid=925006&extra=&page=1

牛为什么在天上跑,因为大家都在地上吹,马上让你会员过10万

http://www.discuz.net/thread-940039-1-4.html
UCHome模板制作教程
http://bbs.phphubei.com/thread-163-1-1.html
【UCHome二次开发】目录
  • 【UCHome二次开发】数据字典|数据库结构
  • 【UCHome二次开发】模板解析
  • 【UCHome二次开发】模板语法说明
  • 【UCHome二次开发】模板页面说明
  • 【UCHome二次开发】主要文件说明
  • 【UCHome二次开发】模板修改
  • 【UCHome二次开发】功能修改
  • 【UCHome二次开发】全局变量
  • 【UCHome二次开发】缓存机制解析
  • 【UCHome二次开发】与UCenter的交互解析
好文章 关于UChome开发文档
http://witmax.cn/uchome-file-info.html
uchome模板文件
快捷管理菜单  cp_advance.htm
相册管理      cp_album.htm
当前我的头像  cp_avatar.htm
编辑日志      cp_blog.htm
删除指定的分类 cp_class.htm
确定删除指定的回复吗  cp_comment.htm
积分                  cp_credit.htm
删除该迷你博客        cp_doing.htm
屏蔽指定动态          cp_feed.htm
帮您找好友            cp_friend.htm
页首 设置             cp_header.htm
日志 设置             cp_import.htm
邀请邮件              cp_invite.htm
管理群组成员          cp_mtag.htm
短消息                cp_pm.htm
打招呼                cp_poke.htm
个人隐私设置          cp_privacy.htm
我的真实姓名          cp_profile.htm
激活您的邮箱          cp_sendmail.htm
删除指定的分享        cp_share.htm
隐藏该应用            cp_space.htm
有奖活动              cp_task.htm
个人主页风格-CSS      cp_theme.htm
编辑话题              cp_thread.htm
图片上传              cp_upload.htm
我的应用?页面加载中..cp_userapp.htm
会员等级              do_ajax.htm
密码验证              do_inputpwd.htm
登录                 do_login.htm
取回密码          do_lostpasswd.htm
注册本站帐号      do_register.htm
头像抓拍页?       do_swfupload.htm
页脚             footer.htm
页首             header.htm
页首 其他        headerindex.htm
帮助             help.htm
未知页框架页     iframe.htm
首页             index.htm
邀请你为好友        invite.htm
相片搜索         network_album.htm
日志搜索         network_blog.htm
没有相应的迷你博客。  network_doing.htm
随便看看 页首           network_header.htm
随便看看                 network_index.htm
群组                network_mtag.htm
分享提示页?         network_share.htm
找人搜索            network_space.htm
话题搜索            network_thread.htm
邮件内容页          sendmail.htm
信息提示            showmessage.htm
相册                space_album_list.htm
相册 评论           space_album_pic.htm
相册 查看           space_album_view.htm
日志                space_blog_list.htm
日志 留下脚印         space_blog_view.htm
日志编辑                space_comment_li.htm
迷你博客            space_doing.htm
换换心情+寻找好友等功能 space_feed.htm
删除+屏蔽               space_feed_li.htm
黑名单                  space_friend.htm
我的主页                space_guide.htm
个人资料               space_index.htm
同心情             space_mood.htm
群组               space_mtag.htm
没有群组页         space_mtag_field.htm
我的群组           space_mtag_index.htm
讨论区             space_mtag_list.htm
成员               space_mtag_member.htm
通知               space_notice.htm
私信               space_pm.htm
私信编辑               space_post_li.htm
由于XX的隐私设置,你不能访问当前内容  space_privacy.htm
排行榜             space_rank.htm
RSS                space_rss.htm
分享+删除             space_share_li.htm
分享(评论网址+描述)               space_share_list.htm
分享                     space_share_view.htm
标签列表                space_tag_list.htm
标签查看              space_tag_view.htm
话题列表           space_thread_list.htm
话题查看          space_thread_view.htm
留言板            space_wall.htm
页面加载中页(在线添加功能 )  userapp.htm

关于UCHome二次开发调试时禁用tpl_cache

在UCHome的二次开发中,若不屏蔽tpl_cache,每次更新页面都需要去删除uchome\data\tpl_cache目录中的文件,或者在管理业页面中更新缓存,很麻烦。
要禁用tpl_cache,只需在source\function_common.php中找到 function template($name)函数,将其中的一个if判断注释掉就可以了,如下面的代码中的红色字体:

//模板调用
function template($name) {
global $_SCONFIG, $_SGLOBAL;
if($_SGLOBAL[‘mobile’]) {
$objfile = S_ROOT.’./api/mobile/tpl_’.$name.’.php’;
if (!file_exists($objfile)) {
showmessage(‘m_function_is_disable_on_wap’);
}
} else {
if(strexists($name,’/’)) {
$tpl = $name;
} else {
$tpl = “template/$_SCONFIG[template]/$name”;
}
$objfile = S_ROOT.’./data/tpl_cache/’.str_replace(‘/’,’_’,$tpl).’.php’;
//if(!file_exists($objfile)) {  //注释掉是为了调试方便,正式使用环境中请取消注释!
include_once(S_ROOT.’./source/function_template.php’);
parse_template($tpl);
//}
}
return $objfile;
}