Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Smilie Space Details »»
Smilie Space
Version: 1.00, by Andy Andy is offline
Developer Last Online: May 2019 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.0 Rating:
Released: 05-04-2008 Last Update: Never Installs: 17
Code Changes  
No support by the author.

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);
		};

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-05-2008, 05:03 PM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
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.
Reply With Quote
  #13  
Old 05-05-2008, 05:35 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andy View Post
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.
Reply With Quote
  #14  
Old 05-05-2008, 05:47 PM
Andy Andy is offline
 
Join Date: Sep 2003
Location: San Francisco
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
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.
Reply With Quote
  #15  
Old 05-05-2008, 05:54 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andy View Post
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.
Reply With Quote
  #16  
Old 05-10-2008, 12:55 PM
sdavis2702 sdavis2702 is offline
 
Join Date: Apr 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 06-02-2008, 01:22 AM
khb1st khb1st is offline
 
Join Date: Mar 2008
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

for those who laugh at this, all I can say is

installed
Reply With Quote
  #18  
Old 11-16-2008, 11:01 PM
rulezde rulezde is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A space before and after

smilietext = ' ' + smilietext + ' ';
Reply With Quote
  #19  
Old 11-17-2008, 01:13 AM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by khb1st View Post
for those who laugh at this, all I can say is

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::up::up::up:
Reply With Quote
  #20  
Old 11-17-2008, 01:31 AM
Dream's Avatar
Dream Dream is offline
 
Join Date: Oct 2001
Posts: 2,251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually like being able to choose if I want spaces or not between smilies as in this example

:up:

instead

:up:
Reply With Quote
  #21  
Old 12-06-2008, 09:32 PM
kurti kurti is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hm.. it doesnt seem to work in 3.7.4
anyone else with this vBulletin version having problems?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04885 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete