[nodebb-plugin-gravatar-extended] NodeBB Gravatar Extended Plugin
-
Hello everyone, this is my first post in this forum
I would like to introduce my first NodeBB plugin, Gravatar Extended Plugin.
This is a simple plugin that extends some parameters into NodeBB ACP's Custom Gravatar Default Image settings. Useful for customize the default avatars with third-party avatar generators.
Currently, it accepts these parameters:
%md5
- the MD5 string of the user's email%email
- the raw email address%user
- the user name%size
- the image size
For example:
You can use
%md5
to fetch avatars from my Automatic Avatars system by entering:
https://avatars.moe/Default/%md5/%size.png
or you can use
%email
to fetch avatars from Adorable Avatars by entering:
http://api.adorable.io/avatar/%size/%email.png
Just enter them like this:
The url will be parsed correctly once the settings has been saved.Here is my GitHub repo:
https://github.com/JLChnToZ/nodebb-plugin-gravatar-extendedInstallation:
npm install nodebb-plugin-gravatar-extended
-
Yay! More plugins! Welcome to the NodeBB forum
Interested to see how you override the "Custom Gravtar Default Image" field to use %md5, etc...
-
@julian Thanks
The truth is, I did not directly override the field, instead I injected some code to the Gravatar function using simple JavaScript technique. You can have a look of my repo.
-
@tanner EVE API IMAGES
-
@xCausxn said:
@tanner EVE API IMAGES
@Schamper any way we could use this with the EVE API plugin to pull EVE avatars?
-
@Tanner not really. It would be one big hack.
-
That'd be fine with me
but I'll leave such decisions to you lol
-
That was hell of a beginning @JLChnToZ
-
This is awesome
congrats for figuring this out!
-
Nice plugin man! Would be perfect if you could implement the
%user
parameter as well.
Anyway good job!
-
@markkus Great idea, and I just added it experimentally.
-
v0.5.0
The plugin has been updated, for^0.6.x
compatibility
https://github.com/JLChnToZ/nodebb-plugin-gravatar-extended
-
@Mega Thanks for helping me to upgrade this plugin very much~!
-
@JLChnToZ
Hi, it seems that the plugin doesn't work on v0.9.x branch.
-
In addition, we now have a
nodebb-plugin-gravatar
, so this one sounds like an improvement on the old one even though they're completely different
-
@julian said:
In addition, we now have a
nodebb-plugin-gravatar
, so this one sounds like an improvement on the old one even though they're completely differentIf only it had the same features, as Gravatar Extended has
.
-
PR's accepted
-
Whoa, this is great. Wish I'd known of this sooner.
-
Alright, I will have a look and try to fix this.
-
Has anyone got this working on the v0.9.x branch.
A few of my users have broken images.... Even with the current stock Letter Images.
I've tried re-installing gravatar. Disabling it and even manually uploading a profile pic and then deleting it.
Nothing has worked so far.
I still have broken user pics.
Hopefully someone can help.
Cheers