Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   01-19-2008, 12:16 AM
Ville will become famous soon enough Join Date: Jul 2007 Posts: 29 Location: North Texas
Tip:   custom tag


Perhaps this is not as novel as what I think but I mention about it anyway.

I've at number of occasions wondered how to add non-collapsible space in front of text in vBulletin. It ended up being rather simple. I just set up couple of custom vbcode tags:

[ 1sp ] ... [ /1sp ]
replaces with:  {param}
prepends: 1 x  

[ 2sp ] ... [ /2sp ]
replaces with:   {param}
prepends: 2 x  

[ 5sp ] ... [ /5sp ]
replaces with:      {param}
prepends: 5 x  

[ 10sp ] ... [ /10sp ]
replaces with:         &n bsp; {param}
prepends: 10 x  

To use these user simply wraps the first word (or letter) inside the "space" tags and the respective number of  's are added in the front of the text. They can be used in the beginning of a line, or in the middle of the text (for example, to have two spaces between sentences.)

Users can nest tags so that if, for example [ 10sp ] and [ 5sp ] tags are used together it results in 15 spaces in front of the wrapped text.
--------------------
Check out LinkResource.com and My.Galagzee.com :-)

Last edited by Ville; 01-19-2008 at 10:25 AM.
Quote   |  



#2   01-19-2008, 09:37 AM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,605 Location: Topeka, KS
Re: Tip:   custom tag


Thanks for the info

btw.. does "nbsp" mean anything ?
I've always wondered that..lol
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#3   01-19-2008, 10:03 AM
Send a message via MSN to Magnumutz Send a message via Yahoo to Magnumutz Send a message via Skype™ to Magnumutz Magnumutz has a spectacular aura about Join Date: Dec 2006 Posts: 535 Location: Romania
Re: Tip:   custom tag


It's &nbsp... no break space?
It's the space tag for HTML.
Quote   |  



#4   01-19-2008, 10:18 AM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 10,605 Location: Topeka, KS
Re: Tip:   custom tag


Quote:
Originally Posted by Magnumutz View Post
It's &nbsp... no break space?
It's the space tag for HTML.
ah, thanks
I knew what it did in html, didn't know the acronym
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Be sure to check out our latest Contest for a Custom Style.


Add our Facebook Blog, Group and LinkedIn group.. Thanks
Stay up to date by installing our Tool Bar
Quote   |  



#5   01-19-2008, 06:21 PM
RedMatrix is a jewel in the rough Join Date: Sep 2006 Posts: 201 Location: Texas
Re: Tip:   custom tag


great idea. I would also create a [p5] tag so that every paragraph of your choosing would be indented by 5 spaces.
--------------------
Need Help With Your Computer? Hate to reboot?
Introducing my Computer Help Desk & Discussion Forum
Quote   |  



#6   01-19-2008, 06:24 PM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 610 Location: Tasmania, Australia
Re: Tip:   custom tag


The difference between a non-breaking space and a regular space is that a non breaking space won't make a sentence go onto another line.

You could do this with Style Replacement variables.
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#7   01-19-2008, 06:37 PM
Ville will become famous soon enough Join Date: Jul 2007 Posts: 29 Location: North Texas
Re: Tip:   custom tag


Quote:
Originally Posted by bdude View Post
The difference between a non-breaking space and a regular space is that a non breaking space won't make a sentence go onto another line.
That, and perhaps more importantly non-breaking space(s) don't collapse so that it's possible to indent a single line (without line feeds above and below it like with the [ indent ] tag) or to add multiple spaces between characters.
--------------------
Check out LinkResource.com and My.Galagzee.com :-)
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Tags
nbsp, vbcode

Thread Tools
Display Modes

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom page help megabyte366 vBulletin Questions 2 01-01-2008 07:35 AM
Custom forum graphics Ville vBulletin Questions 8 08-27-2007 03:04 PM
Custom vB Pages Crow vBulletin Questions 10 11-24-2006 03:50 PM
What is a custom skin? joh vBulletin Questions 1 10-12-2006 04:35 PM


All times are GMT -6. The time now is 03:11 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory