vBulletin Emojis

For anyone who wants to relive the old days of vBulletin and bring back those emojis, have a look at the following plugin (and yes, several of them are animated)

Oh, and they do not interfere with the existing emojione emoticons, as these are all prefixed with ‘vb-’

A big thanks goes out to @eviltrout for his emoji extender!

18 Me gusta

Just a reminder that in the 1.2 release there will be:

  • choice of Emoji class from Google, Apple, Twitter, EmojiOne

  • custom Emoji support

1 me gusta

Yes, that looks really neat (btw). The vB ones really don’t fit in with the Google/Apple/Twitter… ones, so I see this still being the easiest way to quickly bring in the vB emoticons, but I do like the progress that was made here within Discourse.

Well, these vb ones don’t really fit in anywhere in my opinion :wink:

2 Me gusta

Well aware of that. As you are aware that the opinions of others are the existing ones don’t really fit in anywhere… So the opinions are mutual across both sides. I personally don’t care enough one way over another, I simply created the plugin as 1) a test to get used to the plugin framework, and 2) because I know our forum specifically wants it.

2 Me gusta

I am just kidding. Just know, @cpradio, that I will always think of you as my

6 Me gusta

I always did consider myself a :laughing:

Too much?

3 Me gusta

Hahahahahaha. This was too good to just like.

2 Me gusta

2 Me gusta

PSA: Este complemento, en las últimas semanas, se ha roto con la última versión de Discourse, 2.5.0.beta2. Adiós, adiós, emoticonos de vbulletin. Fue un gusto conocerte. :cry:

2 Me gusta

El plugin puede actualizarse. El plugin está roto debido a una gran nueva función que permite la creación de nuevos grupos de emojis, pero aún podemos registrar nuevos emojis mediante el plugin.

Creo que solo necesitaremos agregar un elemento en el archivo plugin.rb, algo así:

register_emoji "doh", "/plugins/discourse-plugin-vb-emoticons/images/doh.gif", "vbulletin"

Y debería volver a funcionar.

5 Me gusta

Gracias, @Steven. Veo que @cpradio sigue activo visitando los foros aquí, hasta hace 3 días. Si no responde en una semana, ¿es aceptable que haga un fork de su plugin (con el debido crédito) usando la corrección que mencionas arriba?

1 me gusta

Esta corrección no parece ser suficiente; necesitamos agregar un comando clear_cache, pero por ahora no sé exactamente cómo hacerlo. Lo investigaré.

No me importa mantenerlo también; tengo un plugin similar, así que puedo realizar actualizaciones agrupadas cuando algo cambie.

2 Me gusta

¡Eso suena como un plan! Lo aprecio.

1 me gusta

@Steven, si quieres, puedo agregarte como colaborador al repositorio existente. Estoy más que feliz de compartir la responsabilidad. Lamentablemente, me tomará un tiempo configurar nuevamente un entorno de desarrollo para Discourse; desafortunadamente, no he tenido tiempo de trabajar en él, así que he descartado mis configuraciones por ahora.

2 Me gusta

Estoy de acuerdo con esto, mi cuenta de GitHub es iunctis

Aún no he encontrado una solución para que funcionen los plugins de emojis; me faltan los comandos adecuados para limpiar la caché.

2 Me gusta

Te envié una invitación. Si hay otras personas a las que quieras invitar, avísame. Logré volver a armar mi equipo anoche, pero eso es todo lo que hice: una instalación limpia de Discourse. Planeo volver a revisarlo esta noche (si el tiempo lo permite); en el peor de los casos, mañana por la noche.

3 Me gusta

Esto es extraño y podría no ser un problema del propio plugin. Cuando hago un rebuild en una instalación limpia de Discourse agregando mi plugin, obtengo el siguiente error

Caused by:
NameError: uninitialized constant Plugin::Instance::Emoji
/var/www/discourse/lib/plugin/instance.rb:482:in `register_emoji'
/var/www/discourse/plugins/discourse-plugin-vb-emoticons/plugin.rb:12:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:526:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:526:in `activate!'
lib/discourse.rb:224:in `block in activate_plugins!'
lib/discourse.rb:221:in `each'
lib/discourse.rb:221:in `activate_plugins!'
/var/www/discourse/config/application.rb:280:in `block in <class:Application>'
/var/www/discourse/lib/plugin_initialization_guard.rb:5:in `plugin_initialization_guard'
/var/www/discourse/config/application.rb:279:in `<class:Application>'
/var/www/discourse/config/application.rb:62:in `<module:Discourse>'
/var/www/discourse/config/application.rb:61:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `require'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.6.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'

Fíjate en las dos primeras líneas:

NameError: uninitialized constant Plugin::Instance::Emoji
/var/www/discourse/lib/plugin/instance.rb:482:in `register_emoji'

@j.jaffeux, ¿tienes alguna idea de por qué no puede encontrar la constante? Parece que está buscando dentro del namespace incorrecto.

3 Me gusta

Creo que funcionaría muy bien si envuelves todas tus llamadas a register_emoji dentro de un bloque after_initialize.

¿Es algo que puedes hacer?

6 Me gusta

¡De hecho, funciona! ¡Gracias!

3 Me gusta