-
- 168 Posts
I was faced with a problem where webloginpe would not remember the values of custom fields particularly the radio buttons and checkboxes (if the form failed validation) but found a decent way to get around this inability.
The POST variables indeed exist - as I found out by using print_r($_POST) after the form.
So if I have a Radio group with a Yes and a No radio button, with name customfield1, then $_POST[’customfield1’] will have the value ’Yes’ if the Yes button was previously checked.
Similarly if I have a checkbox called customfield2 and it was checked on the previous screen then $_POST[’customfield2’] will have the value ’on’
Then use a snippet to output the values of the two POST fields into javascript code (or adapt it for jquery).
echo ’<script type="text/javascript">’;
echo "customfield1_val = ’".$_POST[’customfield1’]."’ \n\r";
echo "customfield2_val = ’".$_POST[’customfield2’]."’ \n\r";
// lines to apply the values to the form fields
.
.
.
echo ’</script>’;
-
- 535 Posts
Dear webloginPE users,
i think there is an exploit possible with the "upload your image" function.
(Or maybe something is misconfigured on my shared hosting but this should not be, because they are good.)
i setup a website with this snippet month ago, and today i just see some strange files in the /assets/snippets/webloginpe/temp/ folder. (chmod 777)
file.php
file.php.gif
file.php.gif.jpg
A web user had uploaded first the iron.php file. Snippet say you need the right files type :
Choose an "image/jpeg", "image/gif", or "image/png". But the file IS now in the folder!
then he uploaded a fake gif file, then he get a "Modx parser error" message:
imagecreatefromgif() [function.imagecreatefromgif]: ’/home/www/..../assets/snippets/webloginpe/temp/iron.php.jpg.gif’ is not a valid GIF file
with this info you can then suppose the file.php script url which is devil (full script for browsing/creating/chmoding etc.)..
only solution i found right now is to desactivate the "upload your image" feature.. and changing all the db access...
WebLoginPE Snippet 1.3.2 Beta 1
Modx 1.0.4
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save
-
- 697 Posts
Any idea about the purpose of the "internalKey" column in table "web_user_attributes" and "web_user_attributes_extended" ?
I assume the relationship between these two tables is "1---1" in most cases and that the "id" column would suffice. Is internalKey present for the case where several extended attributes tables are used and not all users have extended attributes in all tables?
I have set up the registration form and login form. The registration must be approved by an admin so I set it to pending. Everything is working good.
The only problem is for the user to login the first time. The temporary password automatically generated by the Weblogin PE and sent to the user (once approved by the manager) is not working. The user is being prompted with a wrong username and password error message when trying to log in using it. However, if I change the password from the ModX Manager area and try to log in using the username and the newly set password I login normally as supposed to.
Anyone encountered the same problem and managed to solve it?
-
- 195 Posts
Hi,
I’m about to dive into WebLoginPE to check out if this snippet is fit for a client request, and so far so good, except I’m uncertain about the username login requirement. They need the username to be a "customer number (ex: f340021)" on log-in, which is defined by them. I’m thinking it’s easy to create a field under the extended profiles table, but is it possible to get WLPE to use another custom field for crosschecking in place of the typical username or e-mail address?
Cheers,
Les
-
- 1,024 Posts
Would some moderator be so kind to create a newer version with the language file people were so kind to create?
-
- 1,024 Posts
and the spannish language file. Someone created a Norwegian one on the prior page plus a worked version 3.1.3.
-
- 526 Posts
Hi,
I just tried WebloginPE 1.30 (on evo 1.04) for the first time in real life.
There’s something very puzzling : &lang=`fr` is suppose to do what ?
There’s a lang folder, right and a fr.php, ok again but looking at the strings in fr.php I see it seams to concern only the registration process.
Quit dissapointing, because I can’t see in the doc how to call custom template for the different forms.
Do I have to rebuild the webloginpe.templates.php and ALL the file in \Default Forms
Any help appreciated.
Thank you
Schtroumpf Grognon - Grouchy Smurf
---------------------------------
Faites pas attention.. - Don't pay attention
http://www.dzi-neo.net