PDA

View Full Version : How to remove smilies' text from smilies drop menu


Mazinger
09 Dec 2008, 18:55
If you have a large collection of smilies and each smilie is associated with a random ID/name that doesn't anyway express the smilie. You might prefer to remove it. (Screenshot attached)

Edit: clientscript/vbulletin_textedit.js

Find:

option.innerHTML = '<img src="' + smilieoptions[cat][smilieid][0] + '" alt="' + PHP.htmlspecialchars(smilieoptions[cat][smilieid][2]) + '" /> ' + PHP.htmlspecialchars(smilieoptions[cat][smilieid][2]);

Replace with:

option.innerHTML = '<img src="' + smilieoptions[cat][smilieid][0] + '" alt="' + PHP.htmlspecialchars(smilieoptions[cat][smilieid][2]) + '" /> ';

Then save.

Marco van Herwaarden
10 Dec 2008, 10:19
Moved to modifications. Please also upload your instructions in a text file.

Mazinger
10 Dec 2008, 11:03
I'm sorry but that intended to be an article about 'How to do something', not a mod.

Shouldn't it?