Support jOOmla! Autoit!
注册用户权限相关的一些 hack 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-09-25 | View Count View: 10873 | Digg Count Digg: 58

/components/com_registration/registration.php 137行:

 $row->id   = 0;
 $row->usertype  = '';
 $row->gid   = $acl->get_group_id( 'Registered', 'ARO' );

改为:

 $row->id   = 0;
 $row->usertype  = '';
 $row->gid   = $acl->get_group_id( 'Editor', 'ARO' );

这样的话, 只要注册成功就是 Editor 的权限了. 改为 Author 就是到 Author 群组了...

 

如果单纯的让 Registeres 能发文章的话, 可以改:

/includes/gacl.class.php 179行[// actions]上面增加:

  $this->_mos_add_acl( 'action', 'add', 'users', 'registered', 'content', 'own' );
就可以了, 当然 如果要更改什么权限的话, 基本也都在这个文件里., 照毛画虎就下来了...

Permanent URL: http://www.autoit.cn/index.php/content/view/79/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: 注册  权限  

 
最新文章模块增加断字加省略号功能   Akocomment 出现验证码错误的修正方法