Friday 23 September 2005 12:30:18 am
Hi,
Maybe you did the wrong choice if you need a CMS which deliver you a out of the box multi-users choice...
In fact eZp is a very complete solution and allowed you to do what you want by using it's functionalities and there is forums to help you ;) when you are stuck.
You know, I'm not a hard coder and my approche of php is close to 0. But eZp can perform most of my needs if I spend time to learn a bit. Anyway ! Your dual approche based on site acces doesn't seems to me to be useful. There is minor things to do to make your own kind of extensions manually especially if it's already written ;)
- create a new folder in extension "myextension"
- create 2 subfolders "modules" and "settings" - in "settings" create a file "module.ini.append" with this lines
#?ini charset="iso-8859-1"?
[ModuleSettings]
ExtensionRepositories[]=myextension
- In "modules" create a new subfolder "myextension" and copy/paste the whole content of kernel>user in it - create a folder in yourdesign (plain ?)>templates>"myextension" and copy/paste the whole content of standard>templates>user You'll have to modify the php files to call the templates you need so open them and look for this kind of lines :
$templateResult =& $tpl->fetch( 'design:user/activateaccountmail.tpl' );
In regiter.php replace the session variable "RegisterUserID" with "RegisterUserID_myextension" to avoid confusion between the 2 forms. {* nearly the end ;) *} Create you new user class in admin under user tab. Copy/paste this in settings>override>site.ini.append.php
[myextensionSettings]
GeneratePasswordIfEmpty=true
GeneratePasswordLength=6
DefaultmyextensionPlacement=316
DefaultSectionID=8
RegistrationFeedback=email
VerifyUserEmail=enabled
RegistrationEmail=
myextensionClassID=45
myextensionGroupClassID=2
AncienClassGroupID=2
UserCreatorID=316
HashType=md5_user
UpdateHash=true
AuthenticateMatch=login;email
RequireUniqueEmail=true
UseSpecialCharacters=false
LogoutRedirect=/myextension/login LoginHandler[]=standard Mind to write our own IDs Done. It should have be better to make a real extension to install all this stuff with 2 clics but it will be a good approch of how eZp works. regards. Laurent
|