Started by svarrer.dk (v. 0.1-1.7), maintained by ge-webdesign.de (v. 2.0-2.3), and starting with version 3 widely changed and further developed by Svasti (3.1 with some hints from cmb to improve security, and 3.2 with code from cmb to show who is logged in.).
Memberpages can store user name, password, access level, email address, full name and membership expiration date. After login members can change their password, email address and full name.
A log file of all login actions is kept.
Usernames, passwords and full name accept accented letters, non-european scripts and special signs (like apostrophe), but no " nor \.
Main changes compared to version 2.3:
Install the new version on top of your old version. Go the plugin backend and click "activate plugin". Old members' list and log file can be imported. However, settings for going to special pages on log out, error etc. have to be entered again. Changed entries in the stylesheet will also be lost.
Updating from older version is not supported any more.
Unzip the zip file and upload the folder "memberpages" into the plugin folder of your CMSimple installation.
Create the login form either in your template or in a page of your site.
Open the template file and put this php code where the login form should be located:
<?php echo memberslogin();?>
On the left you see the login form, on the right how it changes after a member logged in. The look depends also upon the template.
Enter {{{memberslogin 1}}}
on a page. This will give you the login form, and when a person is
logged in "you are logged in" appears on that page. You still need to place
<?php echo membersnotice(1);?>
in your template, which will produce all necessary information
in one line if a person is logged in, e.g:
This can be put at the top of the page, at the top of the content area or after the menu. It is embedded in the div class="mpp_oneline" and can easily be styled via css.
If you enter on a page {{{memberslogin}}}
you get the same as in the login form in the template, with the change from login to logged-in form. If you add to your template, <?php echo membersnotice();?>
this will produce the same logged-in notice when a member is logged in. So on the page with the login form, there will be a duplication when a member is logged in and the same form will appear in the template and the page text.
This duplication is prevented by using {{{memberslogin 1}}}
on a page.
If you don't use Memberpages to hide pages, uncheck both methods to hide pages.
If you use Forum_XH 1beta1 and want to display the full name of users, change line 170 in plugins/forum/index.php from
return isset($_SESSION['Name']) ? $_SESSION['Name'] : (
to
return isset($_SESSION['fullname']) ? $_SESSION['fullname'] : (
Set method in config. Uncheck unused method for better speed of your site.
Set pages as memberpages via the pagedata tab "M" above the editor menu. There you can also set the access level, except when your access mode is "members see all memberpages". The data you enter will be stored in the pagadata.php. Unchecking the pagedata tab method in plugin config will clean the pagadata.php of all memberpage entries.
#CMSimple member();#
in the textThis method is only included for update of old installations and may not be supported in future versions!
Put the code #CMSimple member();#
or {{{member();}}}
anywhere in a page that you want to convert to a memberpage.
To add an accesslevel put the number of the level between the parentheses, e.g.
#CMSimple member(3);#
or {{{member(3);}}}
for level 3.
Memberpages without access-level (= level 0) are visible to all members. Concerning pages with access level you can choose between the following modes:
The line "Password forgotten" can be displayed under the Login button. A click will ask for the members user name. IF the user name and an email address is found in the members list, the forgotten password will be send to that email address.
For sending an email the plugin needs a sender's address, which
has to be entered in plugin config under Site e-mail address
. Without sender's address
"Password forgotten?" will not be displayed.
An admin email address must also be entered in plugin config to inform the admin of password requests, where no email address or username is found in the members' list.
From Version 3.5 on the members' list is saved by default in userfiles/plugins/memberpages/, however
a different folder can be chosen in plugin config. The entry in the config starts from the CMSimple_XH base.
You can even, for high protection, choose a folder which is below the CMSimple_XH base,
e.g. ../my_folder
.
When you change the folder of the members' list, a new members' list and new log file will be generated. If you have done this after already having created a new list, copy the new list via ftp to the new location.