15
Quote:
skenow wrote:
Quote:
Peekay wrote:
The rule with XOOPS custom user groups is you can give them more - but not less - than registered users. So you can give a custom group 'Demo' access to a block that ordinary registered users cannot see. However, you cannot hide a block from the 'demo' group without hiding it from the 'registered users' group too.
The second problem is that wherever the demo user's name is shown - e.g. in the 'who's online' block, the user can click the link and edit their profile, including the password.
Best solution I can think of is to add a conditional statement to the Smarty template for 'edituser.php' so that the 'change password' field is only shown if the user is NOT in the user group 'demo'.
I'm going to differ on this a bit. The limitation is not what is assigned to the group, but which groups users are in. By default, when a user registers, they are added to the Registered Users group and have all rights assigned to that group. If you add the user to another group like 'Demo', that user will have the rights of the Registered Users group and the Demo group.
If you remove that user from the Registered Users group (which you can do), that only leaves them with the rights assigned to the Demo group.
See http://xoops-tips.com/news-article.storyid-37.htm
Thats not Soluation , you here just disable a certain user from Registered Group to A demo Group and this not the Quastion .. the Quastion is to make Demo user who can view every thing on the site and wont be able to edit any thing in the site included profile , password , his comment , or posts..
the best think is what the Guys above Said..
1- Creat Demo Groub
2- Edit user Template to Excute the Demo user from some Opition ..
We need some one Hack that Template ,
Whatever Hits You , Never was to Mess you , and Whatever Messed U , Never Was to Hit You.