Automatic Intranet Inscriptions

Usaually you insert the e-mail addresses of users who are allowed to order an intranet login manually in PIDVESA
×
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
's A "manage intranet members". If you want users to receive an intranet login automatically after having registered with their e-mail address, do the following. Notice: To avoid spammers, the system limits Automatic Intranet Inscriptions to 1 per 600 seconds. To change that limit, e. g. to 1 per minute, set $waitsecondsbetweenintranetpworders=60; in the file config.php of your u5CMS installation.

1.

Is your u5CMS installation up-to-date and ready for this functionality?
×

For the functionality described on the page at hand, make sure you are using a current u5CMS version. You'll find the version number by surfing to your website and switching your browser to show the HTML source code. At the very bottom of the source code you'll find a line like this:
<!-- This site runs with u5CMS version 12.4.3 from https://yuba.ch/u5cms -->
If there is no such line or no version number or one lower than V8.3.3, see the following instructions:

u5CMS — How to update an existing installation (version 4 and above)
×
These update instructions are for u5CMS versions 4 and above. For versions below 4 read this!

  1. On your server, go to the files of your old (current) u5CMS installation and copy config.php to config.old.php
  2. Download the ZIP-File , unzip it and delete the file favicon.ico
  3. Further, delete all contents in folder r EXCEPT runonce.php
  4. Transfer the remaining files and folders from the ZIP file over the existing installation (FTP upload)
  5. Now, on your server, copy the database connection parameters $host $username $password $db from config.old.php to config.php
    If there are other dedicated settings in config.old.php, set the same in config.php (compare parameter by parameter)
  6. You must now log in to the backend of your (now updated) u5CMS installation via https://urltoyouru5cmsfrontend/u5admin and open a css-object (e. g. csslayout) in PIDVESA
    ×
    PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
    PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
    's S code section, for your site to work correctly again.
  7. You must now log in to the backend of your (now updated) u5CMS installation via https://urltoyouru5cmsfrontend/u5admin for that the database will be updated too

TROUBLE SHOOTING
A) If the layout does not look right after having done step 7, go to https://urltoyouru5cmsfrontend/u5admin and open a css-object (e. g. csslayout) in PIDVESA
×
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
's S special function's code (htmltemplate & css) section and safe it!
B) If your navigation does not look well, copy this code to cssnavleft in PIDVESA
×
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
's→S→Code and this code to cssnavleftsubtop in PIDVESA
×
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
's→S→Code and this code to cssnavtop in PIDVESA
×
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen.
PIDVESA: The very right column of your u5CMS backend is your repository. PIDVESA stands for Pages, Images, Documents, Videos, External Links, Special Functions, and Account. Find these things by clicking the respective radios P I D V E S or A in the top right corner of your backend screen; cf short reference (pdf)
's→S→Code

C) If after A) and B) the layout still does not look right, change the doctype <!DOCTYPE html> to the old one
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">






2.
Create a page in the u5CMS-backend EXACTLY named getaloginstep1
The page must have EXACTLY this content (of course you have to change texts and sender e-mail address, but the thanks value must be getaloginstep2 and the fields present in the form must exactly be as shown):
[[[[Get A Login]]]]
  [[[Enter a valid e-mail address of yours]]]
  [fo:]
  [fi:]
  [h:]
<!--Hidden fields in your form. You should have them in your form!-->
<input type="hidden" name="ouremail" value="[_mymail_]" />
<input type="hidden" name="thanks" value="getaloginstep2" />
<input type="hidden" name="thankssubject" value="[_myurl_]: Your e-mail address has been saved" />
<input type="hidden" name="thankstext" value="Your e-mail address 
has been saved. If you do not have a password or you have forgotten it, order it on [_myurl_]?c=getaloginstep2" />
<input type="hidden" name="thanksgreetings" value="Yours faithfully, University of Bern, IML" />

Please enter your e-mail address<br>
<input type="email" style="width:100%" name="youremail_mandatory" 
onchange="document.u5form.thanks.value='getaloginstep2&email='+escape(document.u5form.youremail_mandatory.value);" />
<label>How much is hundred minus one (enter digits)?</label>
<input size="77" type="text" name="cliving_mandatory" />

<label>&nbsp;</label><input type="submit" value="next step" />

<input type="hidden" name="in2my" value="off" /><!-- e-mail notifications to admin off-->
<input type="hidden" name="em2cu" value="off" /><!-- e-mail notifications to customer off-->
<input type="hidden" name="em2me" value="off" /><!-- e-mail notifications to me off-->
<script>document.u5form.youremail_mandatory.focus();</script>
[:h] [:fi] [:fo]

About [_mymail_] and [_myurl_]
×

Do not change these strings, they are superglobals!





3. Create a page in the u5CMS-backend EXACTLY named getaloginstep2
The page must have EXACTLY this content (of course you have to change texts):
[[[[Get A Login]]]]
Sending password to [hot]your email address:
[in:]Welcome! Here is your login for [_myurl_][:in]

[h:]
<iframe frameborder="0" src="autointranet.php"></iframe>
[:h]

Since u5CMS version 5.5.5 you may create the entry csspworder in PIDVESA's S → Special functions → code (html template & css) to format the form appearing on getaloginstep2.

If something special should happen on this page after the OK-button was clicked,
×

add a JavaScript-function named donescript() which automatically will be called, e. g.
[h:]
<script>
function donescript() {
document.getElementById('body').style.background='green';
}
</script>
[:h]






Be aware that you cannot mix manual intranet member management with automatic inscription. If the form getaloginstep1 exists AND contains data (in PIDVESA's S, section form data), then this "wins", say will overwrite manual entries in the intranet member management (which is in PIDVESA's A).

Download

Content Management System u5CMS

Service

English⇄German Translation Service

Flowers

blumen-bern-maarsen.ch