vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




FLOAT bbcode

Coder1
04-27-2006, 04:10 PM
I just added a custom BBCODE tag to my site, which I'm glad to share. This code will cause a selected image (or any element, really) to use a float style.

See it in action: http://www.tgreer.com/printforum/showthread.php?t=215&garpg=4

The image is floated left.

The code: what you're floating

<div style="float:{option}; padding-left:12px; padding-right:12px;">{param}</div>

And an icon you can use: http://www.tgreer.com/printforum/images/misc/float-left.gif

I hardcoded the padding, because as far as I know you can't pass two options into a BBCODE. Adjust to fit.

Peggy
04-27-2006, 04:20 PM
interesting...

Joeychgo
04-27-2006, 06:17 PM
Whats floating? I must be missing something...

Peggy
04-27-2006, 07:04 PM
whew! I'm glad I'm not the only one, lol

Coder1
04-28-2006, 07:04 AM
Refers to the CSS "float" style. As it is now, if you include an image, it will simply display as a block, on its own, with any text being above or below it in the message. If you follow the link I provided, you'll see that the image is "floated" to the left of the text, because of the bbcode:


myimage.gif


I needed it to provide a sleeker more "realistic" look to my articles, which have sidebar images. Another example from the same article (http://www.tgreer.com/printforum/showthread.php?t=215&garpg=3).

Think of it as putting your image in one "column", your paragraph in another.

John
04-28-2006, 10:55 AM
I also added some BBCodes that use imgleft and imgright to show a left aligned and right aligned image on a page

<div align="left"><img align="left" src="{param}" hspace="3" alt=""/></div>

Here's an example of an entry on my site that uses both in a thread...

http://www.themouthpiece.com/vb/showthread.php?t=19731

Coder1
04-28-2006, 11:14 AM
Excellent - same idea, different technique. I'm in the habit of using CSS wherever I can.

Biggles LLB
04-30-2006, 08:53 AM
I also added some BBCodes that use imgleft and imgright to show a left aligned and right aligned image on a page

<div align="left"><img align="left" src="{param}" hspace="3" alt=""/></div>

Here's an example of an entry on my site that uses both in a thread...

http://www.themouthpiece.com/vb/showthread.php?t=19731Hi John

I don't understand most of the technical stuff on that linked page, but I sure enjoyed reading your interview with Steve Hackett. And one of my youngsters, Jodie, who is a saxophonist/keyboard player/budding composer, currently doing a BTEC National Diploma in Music Technology has read it. She loved it and wants to show her class at Bridwater College MT section. If that's OK with you, of course?

Cheers

Biggles

John
04-30-2006, 10:16 AM
Most certainly it is Biggles... I'd be delighted for her to use it wherever she can. I also have an interview planned with Rick Wakeman (ex Yes) sometime soon. Just waiting to hear back from his management company.

Peggy
04-30-2006, 03:11 PM
I also added some BBCodes that use imgleft and imgright to show a left aligned and right aligned image on a page

<div align="left"><img align="left" src="{param}" hspace="3" alt=""/></div>

Here's an example of an entry on my site that uses both in a thread...

http://www.themouthpiece.com/vb/showthread.php?t=19731

nicely done... I've been using the same layout in html on websites for years. You can see it here on my photography website: Personally Yours Photography (http://pyphotos.net)

(it's not finished and some links don't work)


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum