View Full Version : Miscellaneous Hacks - Smilie Space
This hack will add a space after a smilie.
By default when you click on many smilie emoticons they are put next to each other like this:
:):):)
After this hack each smilie would have a space between them like this:
:) :) :)
To make this modification, open the following file: clientscript/vbulletin_textedit.js
/**
* Insert Smilie
*/
this.insert_smilie = function(e, smilietext)
{
this.check_focus();
add this --> smilietext = smilietext + ' ';
return this.insert_text(smilietext, smilietext.length, 0);
};
beduino
05-04-2008, 11:41 PM
Hi Andy
sorry but ... what for?? I don't understand what the hack does ... a space?
tks, anyway
joao barroca
aka beduino
Rickeo
05-05-2008, 12:30 AM
lol this hack made me smile for sure that's pretty darn funny :)
Well done though fair play some people may use this but sheesh this is funny :)
God Bless mate and thanks for making me smile :)
Rick
SwollenCranium
05-05-2008, 12:32 AM
^^^ Jeez, Rickeo, you sure are a chipper kinda humanoid.
echo2kk5
05-05-2008, 12:47 AM
Great! lol...saves a thump on the 'ol spacebar! :p
Selene
05-05-2008, 01:57 AM
you might win the Mod of the Month :D for this hack
RedTrinity
05-05-2008, 03:32 AM
Hmmm shouldn't this be in the templates modification section :confused:
Hmmm shouldn't this be in the templates modification section :confused:
No this is a modification to the source files.
PossumX
05-05-2008, 05:00 AM
This could very useful, as without the space, when folks go smiley crazy, they can sometimes show up in text rather than the image.
Fungsten
05-05-2008, 03:51 PM
I keep getting a script error when I try to edit the file. Yes I am editing it locally and not on the server.
On Edit:
I was able to open it in Wordpad.
I keep getting a script error when I try to edit the file. Yes I am editing it locally and not on the server.
On Edit:
I was able to open it in Wordpad.
First you have to make sure you download the uncompressed version of vBulletin v3.70. That way you can edit the .js file.
I use Dreamweaver to edit my .js files. I suppose you could use notepad or similar program, but you cannot use wordpad as far as I know.
Fungsten
05-05-2008, 05:35 PM
First you have to make sure you download the uncompressed version of vBulletin v3.70. That way you can edit the .js file.
I use Dreamweaver to edit my .js files. I suppose you could use notepad or similar program, but you cannot use wordpad as far as I know.
Funny. It worked on my test board but not on my live board.
Funny. It worked on my test board but not on my live board.
There are several places where this code can be entered and is dependent on the editor you allow. For example I only allow the use of the standard editor on my forum so I entered the code only once in the appropriate place. If you allow WYSIWYG and the standard editor you will need to add the code in several places.
Fungsten
05-05-2008, 05:54 PM
There are several places where this code can be entered and is dependent on the editor you allow. For example I only allow the use of the standard editor on my forum so I entered the code only once in the appropriate place. If you allow WYSIWYG and the standard editor you will need to add the code in several places.
I used Wordpad for both. I even copied over the file from my test board to my live board and it still did not work. I'll get back to you.
sdavis2702
05-10-2008, 12:55 PM
LoL this IS a funny one but could be very useful. I've had to sit and tap the spacebar when I went crazy with smilies in the past. This would have come in handy!
khb1st
06-02-2008, 01:22 AM
for those who laugh at this, all I can say is :):D:):D:p
installed
rulezde
11-16-2008, 11:01 PM
A space before and after :)
smilietext = ' ' + smilietext + ' ';
Ohiosweetheart
11-17-2008, 01:13 AM
for those who laugh at this, all I can say is :):D:):D:p
installedLOL!! I love it.
I really like people like Andy who think of the 'small' things that most don't consider.
Thanks Andy :):up::D:up::p:up:;):up:
Dream
11-17-2008, 01:31 AM
I actually like being able to choose if I want spaces or not between smilies :) as in this example
:):up:
instead
:) :up:
kurti
12-06-2008, 09:32 PM
hm.. it doesnt seem to work in 3.7.4
anyone else with this vBulletin version having problems?
Sunka
12-07-2008, 06:24 PM
Yep, I have tried but also don't work with v3.7.4 PL1
Fungsten
12-11-2008, 01:50 PM
It doesn't work with 3.8.0 RC1.
jlew24asu
12-16-2008, 10:41 AM
where in that js file do I add the code?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.