
First, sorry for waisting your time with this unnecessary problem in ppp 0.3. Nothing is wrong in the code, it’s my instructions that are bad.
This was causing the error:
For the new version to work you must add a line in the eForm template for the editing page. This information comes in part 3 of the documentation. But that’s too late as you need to add this line earlier. Also this line is needed to be added in eForm template regardless if the template is for editing users own profile, or an admin editing another user. That is not very clear in the instructions.
Solution:
This line should be added to any eForm template for editing users:
<input style="display:none;" type="text" name="wuid" value="[+id+]" />
(For some reason "type=hidden" does not work for me, that’s why I use "display=none".)
Testers needed:
Before I change the instructions it would be great if someone could confirm that this solves the problem.
One last thing: When designing the code I didn’t expect that this line would be needed in the eForm template for editing own user data. I must check the code again to see that this will not make it less secure. If that’s the case I’ll post an update of ppp.
But please go ahead and test if the solution above works for you.
EDIT: This doesn’t affect security, ppp is as secure (or unsecure) as before.
Thanks!
/Uncle68
[[ppp? &useTable=`web_user_ppp` &listUsersAdv=`LaatstIngelogd:web_user_ppp:ppp_tpl_row:thislogin DESC::fullname::`]] <b>Laatst Ingelogd</b> <ul id="UsersTable"> [+LaatstIngelogd+] </ul> <div id="targetArea"><br /></div>
<li>Naam: <a href="[~104~]?WID=[+webuser+]">[+fullname+]</a> <a href="/test/knltb-profiel.php?request=profiel&bondsnummer=[+KNLTBNR+]" class="loadinto-targetArea">Ranking</a> </li>
