don't update user profile custom fields
-
ale@devartstudio.com
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
6 years 11 months ago #6481
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 10 months ago #6488
by admin
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
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
6 years 10 months ago #6489
by ale@devartstudio.com
Hi
yes I did.
I just bought the premium subscription, and i will try to update the canvas image.
Please Log in or Create an account to join the conversation.
-
ale@devartstudio.com
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
6 years 10 months ago - 6 years 10 months ago #6490
by ale@devartstudio.com
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.
Last edit: 6 years 10 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
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
6 years 10 months ago #6492
by ale@devartstudio.com
hallo,
please, any tips to update profile with plg_jbackend_comprofiler ?
regards
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
6 years 10 months ago - 6 years 10 months ago #6493
by admin
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 10 months ago by admin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.146 seconds