E107: Question: e_user.php

Created on 26 Apr 2016  路  7Comments  路  Source: e107inc/e107

Currently I have a plugin that uses e_user.php, on the dev documentation it doesn't say much.

When creating the plugin with plugin builder I selected the e_user.php page which gave me e_user.php with some default code which is used for the user forum post? I went in and added what I could, my question is can I make the option for users to change a few of the information?

Right now I have three label's that pull user information from the database from myplugin table, but I would like to allow a user to edit the information in the settings area without making extended user fields. Is this possible?

documentation bug

Most helpful comment

I think we may need a new type of extended user field. custom class/method from within e_user.php.

All 7 comments

@LaocheXe e_user.php data displays on the profile page (not the user-settings page). If you wanted to save data, you would need to use ajax on the profile page so that it saves when data is changed. Send a form element as the 'text' value. However, what you probably want is an extended-field that pulls from your plugins table ?

Yes an extended-field that pulls from my plugins table.

@LaocheXe Extended User Fields > Add Custom Field > Type: DB Table Field ;-)

@CaMer0n So in the Basic - Name field put in myplugin database table (squadxml) and then steam id?

So it would be squadxml(plugin table) arma_id(column) ??? like that?

@CaMer0n I did what you said, all it does is show the field but nothing to add/edit and displays the name but no value in profile.

Also when I go to edit that extended field - it re-sets the selected db table.

Created the extended user field
euf-db-nothing2

Check User Profile and Settings
euf-db-nothing1

euf-db-nothing

Check/edit user extended field - shows no table selected
euf-db-nothing3

I think we may need a new type of extended user field. custom class/method from within e_user.php.

Any Update on this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simplythomasjay picture simplythomasjay  路  5Comments

Jimmi08 picture Jimmi08  路  5Comments

rica-carv picture rica-carv  路  5Comments

CaMer0n picture CaMer0n  路  4Comments

Jimmi08 picture Jimmi08  路  5Comments