Quote from: pixelchutes at Aug 24, 2007, 06:51 PM
Again, TGIF
This makes perfect sense. I assume this would also account for: <select multiple>...</select>
Well... no.
A multiple select is going to post as an array. I suppose I could add an if (is_array($field)) clause, but then what is WebLoginPE supposed to do with that info? implode it into a CSV? What do you do with array data that is now a comma separated string? It is just a script and can’t predict that type of usage.
The good news is that since we have had interactions in the last week or two I have been reading your posts here. You are a clever and very helpful dude. I am positive you can think of a more clever way to post multiple choices than with a <select multiple> form input.
Quote from: pixelchutes at Aug 24, 2007, 06:51 PM
Quote from: Dr. at Aug 24, 2007, 06:06 PM
The only issue ATM is if the textarea contained more than 255 chars.
...Even if web_user_attributes_extended custom column is of type TEXT? I’m not sure I see the issue?
I am just saying, there is no problem except that the field would be limited to 255 characters. if a user filled out a textarea with like 300 characters, anything after 255 would be truncated.
Quote from: pixelchutes at Aug 24, 2007, 06:51 PM
Quote from: Dr. at Aug 24, 2007, 06:06 PM
I don’t think "WHAT you want to do" is outside the limitations, it is just "HOW you want to do it".
HOW do you store multiple values in the extended table? Do you use some form of delimiter? Does WLPE allow for editing "extended" profile columns as well? Just curious how, if you are Editing your profile, WLPE handles the mapping of said checkboxes/radios when pre-populating
You don’t store multiple values in a column. That is just poor organization. each value should have it’s own column to facilitate accurate and predictable retrieval of data.
Editing "extended" profile columns? Of course!

Lets say you have this call on your profile page:
[!WebLoginPE? &type=`profile` &customFields=`city,timezone,url,favorite_color` &profileTpl=`myProfileChunk`!]
then myProfileChunk would include:
{...}
City:<br />
<input type="text" name="city" value="[+user.city+]" /><br />
Time Zone:<br />
<select name="timezone">
<option selected="selected" value=[+user.timezone+]></option>
<option value="EST">Eastern Standard Time</option>
<option value="CST">Central Standard Time</option>
<...>
</select><br />
Your Website:<br />
<input type="text" name="url" value="[+user.url+] /><br />
Favorite Color:<br />
Red <input type="radio" name="favorite_color" value="Red">
Blue <input type="radio" name="favorite_color" value="Blue">
Black <input type="radio" name="favorite_color" value="Black">
Spoon <input type="radio" name="favorite_color" value="Spoon">
<br />
You last chose [+user.favorite_color+] <input type="radio" name="favorite_color" value="+user.favorite_color+]" checked="checked">
{...}
The important part is the &profileTpl !
If it contains inputs with your custom fields, they are editable. Devilishly clever isn’t it?
Mapping of checkboxes and radios is not perfected yet. The main problem is that there is no way WebLoginPE can know what type of data you might be using. My best suggestion is to map them with javascript, and have a hidden field containing the value in case they don’t change it or javascript is disabled. Otherwise, the hackneyed trick above for radio options, albeit stupid, works.
-sD-
Dr. Scotty Delicious, Scientist DFPA.