Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Center and Space buttons for vBcode Details »»
Center and Space buttons for vBcode
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-25-2002 Last Update: Never Installs: 19
 
No support by the author.

Space Button to insert a space into messages
Center Button to center text in messages.
Version 1.1 (By Boofo)

A special thanks goes out to bad_madman for all of his help and advice in developing this small hack. It never would have been without him. Thank you, sir.

What this hack does:

This hack will add a "Space" and "Center" button to your vB Code in newreply, newthread and editpost templates. If you try to add a space with the spacebar in a message, it will be parsed out when you save the message. With this it actually inserts a hidden & nbsp; (space code) into the message. The "center" button will allow you to center text in your message.

Tested on vBulletin 2.2.5

NOTE: Updated for version 2.2.6
Due to the censorship parsing of the hard space which is being parsed to the underscore character, you will need to make an additional file edit for the SPACE button to work. The file attachment has been updated.

Install time: less than 2 minutes
Files to edit: 2 (root/vbcode_language.js and admin/functions.php)
Templates to edit: 1 (vbcode_buttons)

Show Your Support

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

Comments
  #2  
Old 07-26-2002, 08:39 PM
DestyNova DestyNova is offline
 
Join Date: Jun 2002
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any example or screenshot?
Reply With Quote
  #3  
Old 07-26-2002, 08:46 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a screenshot of the buttons installed.
Reply With Quote
  #4  
Old 07-26-2002, 08:51 PM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why have a space button? You can just press space on keyboard. In vB 2.2.6 0160 (hard space) will appear as _ (underscore)
Reply With Quote
  #5  
Old 07-26-2002, 09:19 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is a test
This is a test.

xiphoid: You are wrong about the spaces in 2.2.6. I just tried it here. The first line above had 10 spaces with the spacebar added to the beginning of it and the second line had 5 spaces in between each word. As you can see, the spaces were parsed out when I used the spacebar and lined up on the left again. They didn't change that yet in 2.2.6. So you will need this if you want to add any spaces anywhere in your message.
Reply With Quote
  #6  
Old 07-26-2002, 09:34 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah excellent

Nice hack!

Satan
Reply With Quote
  #7  
Old 07-27-2002, 05:30 AM
DestyNova DestyNova is offline
 
Join Date: Jun 2002
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:thumb up:

==install==

I realize that I put too many custom codes and buttons so space button cannot fit into that and result come out just ">" lol

I fix it by add more space for buttons
Reply With Quote
  #8  
Old 07-29-2002, 08:54 PM
vdinh vdinh is offline
 
Join Date: Feb 2002
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by xiphoid
Why have a space button? You can just press space on keyboard. In vB 2.2.6 0160 (hard space) will appear as _ (underscore)
Same problem ... If I use this hack for version 2.2.6, it replace the space created by the hacked button with an underscore _ ...
Reply With Quote
  #9  
Old 07-29-2002, 09:16 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is strange. I am using 2.2.5 and it works fine here. I will do some reasearch on it and see what I can do to fix it to work on 2.2.6, too. Thanks for letting me know that.

And xiphoid, I apologize for misunderstanding what you meant in your message above. I thought you were trying to say that 2.2.6 already does the spaces without parsing. Again, my apologies.

Quote:
Originally posted by vdinh


Same problem ... If I use this hack for version 2.2.6, it replace the space created by the hacked button with an underscore _ ...
Reply With Quote
  #10  
Old 07-29-2002, 09:26 PM
DrkFusion's Avatar
DrkFusion DrkFusion is offline
 
Join Date: Nov 2001
Posts: 1,926
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work boofo...sure install

Drk
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 02:15 PM.


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.07184 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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