![]() |
Center and Space buttons for vBcode
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) |
any example or screenshot?
|
Here is a screenshot of the buttons installed. :)
|
Why have a space button? You can just press space on keyboard. In vB 2.2.6 0160 (hard space) will appear as _ (underscore)
|
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. ;) |
Ah excellent:)
Nice hack! Satan |
: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 :rolleyes: |
Quote:
|
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:
|
Nice work boofo...sure install ;)
Drk |
All times are GMT. The time now is 06:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|