vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Smilie Space (https://vborg.vbsupport.ru/showthread.php?t=178145)

Andy 05-04-2008 10:00 PM

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

Code:


                /**
                * 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:

Andy 05-05-2008 04:29 AM

Quote:

Originally Posted by GamerGirl27 (Post 1508860)
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.

Andy 05-05-2008 05:03 PM

Quote:

Originally Posted by Fungsten (Post 1509413)
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

Quote:

Originally Posted by Andy (Post 1509498)
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.

Andy 05-05-2008 05:47 PM

Quote:

Originally Posted by Fungsten (Post 1509537)
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

Quote:

Originally Posted by Andy (Post 1509550)
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

Quote:

Originally Posted by khb1st (Post 1538293)
for those who laugh at this, all I can say is :):D:):D:p

installed

LOL!! 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?


All times are GMT. The time now is 10:23 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01196 seconds
  • Memory Usage 1,757KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete