× Requests and support related to jBackend.

don't update user profile custom fields

  • ale@devartstudio.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #6481 by ale@devartstudio.com
don't update user profile custom fields was created by ale@devartstudio.com
Hi,
I have created a custom filed type image in user profile.
After upload the image on server, I stored the image path in the related fields object "rawvalue" and the img tag string in "value", then I put/user/profile, status is ok, but when I call user/profile, the rawvalue is yet empty.
How can I do it?

Many thanks
Alessandro

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago #6488 by admin
Replied by admin on topic don't update user profile custom fields
Hi Alessandro,
have you checked plugin settings for "Extended fields" option?

Please Log in or Create an account to join the conversation.

  • ale@devartstudio.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #6489 by ale@devartstudio.com
Replied by ale@devartstudio.com on topic don't update user profile custom fields
Hi
yes I did.
I just bought the premium subscription, and i will try to update the canvas image.
Attachments:

Please Log in or Create an account to join the conversation.

  • ale@devartstudio.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago - 6 years 4 months ago #6490 by ale@devartstudio.com
Replied by ale@devartstudio.com on topic don't update user profile custom fields
I can't do it with plg_jbackend_comprofiler too :(

here my code:

console.log in attachments
saveUserPhoto(img_path) {
        let link = "api/put/comprofiler/profile/";
        let serverName = this.serverName;
        let url = serverName + link;
        let sendData = {
            "id": this.userObj.id,
            "name": this.userObj.name,
            "username": this.userObj.username,
            "email": this.userObj.email,
            "password": this.userObj.password,
            "avatar" : img_path
        }

        console.log("sendData" , sendData);
        this.http.put(url, sendData).subscribe(data => {
            console.log("getUserProfile" , data);
            if (data["status"] == "ok") {
                if ( data["avatar"] == null) {
                    this.userProfileObj.immagine_profilo = this.serverName + "images/assets/defaultUser.png";
                }
                else {
                   this.userProfileObj.immagine_profilo = this.serverName + data["avatar"];
                }
            }
        });
    }

I can't update any fields, now I'm using simple "put/user/profile" and it works, but don't update the custom fields.
Attachments:
Last edit: 6 years 4 months ago by ale@devartstudio.com.

Please Log in or Create an account to join the conversation.

  • ale@devartstudio.com
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #6492 by ale@devartstudio.com
Replied by ale@devartstudio.com on topic don't update user profile custom fields
hallo,
please, any tips to update profile with plg_jbackend_comprofiler ?

regards

Please Log in or Create an account to join the conversation.

More
6 years 4 months ago - 6 years 4 months ago #6493 by admin
Replied by admin on topic don't update user profile custom fields
Hi Ale,
can you send me a PM at info(at)selfget.com? As premium subscriber you have also premium support available (and I guess we can chat in Italian too if you add me on skype, user @selfget).

Kind regard,
Luigi
Last edit: 6 years 4 months ago by admin.

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds