Thanks Beenyb.
The webloginpe snippet appears in the snippet list. One post said that it may not work on localhost so I installed on the server and still the same result (below). The snippet is [!WebLoginPE? &type=`simple`!] in the sidebar.
Does the template call the chunk or do both chunk and template need to be present?
The live site is at
www.search-optimizers.co.za/modx
Manager login: admin/warthog321
PHP error debug
Error: include_once(/home/searchop/public_html/modx/assets/snippets/webloginpe/webloginpe.class.php) [function.include-once]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /home/searchop/public_html/modx/manager/includes/document.parser.class.inc.php(770) : eval()’d code
Line: 27
Unless that’s a sandbox site, I’d advise you to change that password ASAP. Anyone with an internet connection can delete your whole site or fill it with trash.
Sandbox site but password changed anyway. BTW, the error was due to an omission in the webloginope upload that should have included the statement - obvious to everyone else apparently - ’Change the name of the folder webloginpe.v.3.1.1 (or whatever) to webloginpe’ tacked on to the instruction to ’upload your webloginpe folder’.
Now, things work, not perfectly but that should be donkeywork from this point on.
Sounds like a natural mistake to make. Glad you got it sorted.
2 Little questions:
How do I get the login page to redirect to a chosen page if the user is registered and to the ’register’ page if not?
<form id="wlpeLoginForm" action="[~[*65*]~]" method="POST"> gives a ’password unknown’ error for an unregistered login, which is fine.
If ’Register’ is clicked however, the registration form is displayed in the sidebar, not on [~[*65*]~]. View Source shows action="index.php?id=1" - where did that come from? The cache has been cleared. The site is search-optimizers.co.za/modx/.
Which of the two tpl formats is actually used by the script - the html or the txt??
I am using DefaultLoginFormTpl.
Thanks, Martin