@ningji the errors shown are to instruct the user to upload smaller images. You can raise the limit from the ACP.
Change back Facebook profile image.
-
Yeah, that i figured out myself. But it would be nice to be able to activate the facebook hotlink url again. Thats the issue that I am trying to solve.
-
Upload the Facebook image
-
That does not solve the issue. I want it to link to the Facebook picture. Not local
This way the image vill auto change if i change the Facebook image (Because its a link to the facebook storage of images)
-
@Jenkler you can customize the
nodebb-plugin-sso-facebook
to make it happenadd this code before this line https://github.com/julianlam/nodebb-plugin-sso-facebook/blob/master/library.js#L148
user.getUserField(uid, 'picture', function(err, userPicture) { if (!userPicture) { // Save their photo, if present if (picture) { user.setUserField(uid, 'uploadedpicture', picture); user.setUserField(uid, 'picture', picture); } } else { if (picture && userPicture !== picture) { user.setUserField(uid, 'uploadedpicture', picture); user.setUserField(uid, 'picture', picture); } } });
one warning though... even if the user changes to use default icon in their profile, this will switch it to facebook pic on login
-
Don't want to modify a local copy of the plungin
@julian <-- Could you patch this?
@pichalite <-- Btw, how do you do codeblocks in NodeBB ?
-
@pichalite Maybe its better to build a function in the plugin that renews the image instead? I hate to patch stuff myself. I only want to maintain my own plugins. Why reinvent the wheel again
@julian What do you think about that?
Test
This is a codeblock
Another way to write something
@pichalite Do you have a list of syntax for markdown? A good to know list? What is best for terminal output. This > or ```
-
@pichalite Lol, how can I have missed that
Thanks man!