Aligntable BBcode

New BBCodes, tips and tricks, hacks and MODs for the BBCode system

Aligntable BBcode

Postby umpire66 » 20 Jun 2007, 13:45

Aligntable by vampire666 :-P

Works in FireFox and in InternetExplorer.

With this bbcode you can have text around any object (yep, also at the right and left of images/videos etc., etc?).

Create and name a bbcode as you like (aligntable in this case ? thanks to Tyler for giving me a better name for this bbcode). This is a simple table made of only 1 cell that can include your image that you want to wrap with text around (left or right alignment).
As you can see in the code below, you can also have a border (colour and thickness settable), an eventual background colour and of course the width of the table adjustable. If you don?t need some of these option just remove the HTML code and the correspondent bbcode tag (but trust me, the bbcode as it is can be useful in many scenarios).

BBCode usage
Code: Select all
[aligntable={TEXT1},{TEXT2},{NUMBER1},{NUMBER2},{TEXT3},{TEXT4},{TEXT5}]{TEXT}[/aligntable]
HTML replacement
Code: Select all
<div style="float:{TEXT1}; margin: 0px {NUMBER2}px 0px {NUMBER1}px;"> <table width="{TEXT2}" border="{TEXT3}" bordercolor="{TEXT4}" bgcolor="{TEXT5}">
  <tr> 
  <td>{TEXT} </td>
  </tr>
</table> </div>
Help line
Code: Select all
[aligntable =align,width,marginleft,marginright,border,brdcolor,bkgrdcolor]{TEXT}[/aligntable]

At this point you have just to insert the common IMG tag inside this aligntable bbcode (with the link of the image you want to wrap with text of course) and everything works as it should and as many times you want in the same post. :grin:

Example:
Code: Select all
[aligntable =right,0,10,0,0,0,0][img]http://localhost/phpBB3RC1/styles/prosilver/imageset/site_logo.png[/img][/aligntable]Here goes all the text I want to insert?hallelujah!

As you can see in the example if you just want the image without any borders, and backgrounds just set the values of the correct options to zero (0).

Note that if you want to create an image (wrapped with text) with a border you can just put the width of the table on zero?it will calculate automatically the exact width of the image so that you won?t have to know it exactly and then insert it, just put 0?.(if on the other hand you want to have the table with a different dimension (bigger then the image) you can of course set it).

The bbcode wraptext posted in another thread here on STG seems that isn?t capable of handling more then one image per post. If you need more then one image per post you can just use this bbcode I discovered and that I am currently using.

Note: I haven't test it, but I believe that with this method you can wrap almost any object (so not only images, but also videos and other) and then have text around it. :D

Enjoy!

P.S. Let me know if there are any problems.
P.P.S. Thanks to Sniper_E for his help.

Image
Last edited by umpire66 on 21 Jun 2007, 14:04, edited 1 time in total.
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male


Re: Aligntable BBcode

Postby Tyler » 21 Jun 2007, 09:46

An absolute fantastic bbcode.

In the beginning when I started to use this bbcode, I found it a little difficult to work with because of all the different options in the code, but now that I've used it a couple of times and understand how it works, it's become a great tool that adds to the value of my forum. It simply wouldn't be the same without it. Especially useful for forums where articles and reviews are posted.

Many thanks for this BBcode Vampire 666.

p.s.
I hope Highway of Life will finish his "Thanks post/user Mod" soon, and install it on this forum,.. than for sure I will push the thanks button. :good:

:hello: Tyler.
http://www.soundtrackforum.net
dedicated to film music and game scores
User avatar
Tyler
Cadet IV
Cadet IV
 
Posts: 45
Joined: 11 Feb 2007, 07:44
Gender: Male
phpBB Knowledge: 2

Re: Aligntable BBcode

Postby umpire66 » 21 Jun 2007, 14:03

Thanks for your words Tyler, they are really appreciated. :)
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

Re: Aligntable BBcode

Postby Sworm » 08 Dec 2007, 12:01

this BBcode, don't work on RC8 Version og phpBB3?

In my forum don't work :cry:
Sworm
Cadet I
Cadet I
 
Posts: 17
Joined: 10 Jul 2007, 10:31
Favorite Team: Juventus
Gender: Male

Re: Aligntable BBcode

Postby umpire66 » 19 Dec 2007, 10:17

Hi Sworm.

Try with the final version of phpbb.

No problems here (phpbb 3.0.0 final).
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

Re: Aligntable BBcode

Postby Potku » 15 Sep 2008, 15:31

Seems great! :)

I tried this, I guess it takes a little to get to know it. Could I ask someone to post a code with the results being something similar to the picture attached to the first post? I don't mean anything that elaborate, would take a while :D But something with a couple of pictures and text positioned similarly to the post in the picture.

Thanks!
Potku    
Cadet II
Cadet II
 
Posts: 25
Joined: 25 Jun 2008, 06:12
Gender: Male
phpBB Knowledge: 1

Re: Aligntable BBcode

Postby onomoney » 08 Oct 2008, 16:16

Asking permission after the fact.

Sorry!

I have stolen this link, in hopes that some of the more advanced members will take interest and the beginners will want to learn.

I didn't steal the post I gave a highlight and a link back to here,
If you would like to view here is the location of your link.
http://theinternetmarketersguild.com/ze ... ?f=48&t=61

If you have a problem please just give me a shout.

Thanks for the great work
Brad West ~ onomoney
The best way to predict the future is to create it.
The Internet Marketers Guild
Show off Your Dog
Sheryl Loch
Game Girl Racing
User avatar
onomoney    
Cadet IV
Cadet IV
 
Posts: 51
Joined: 09 Mar 2008, 12:27
Location: Las Vegas NV.
Gender: Male
phpBB Knowledge: 2

Re: Aligntable BBcode

Postby umpire66 » 08 Oct 2008, 16:55

No problem with me. I'm glad that you like my bbcode...so spread it as you wish (but at least write my name correctly :P ...I'm vampire666 not Umpire66 :grin: ).

See ya!

EDIT: What the Java.NullPointerException! I just noticed that my username was renamed! :shock: Huh...now I understand why you called me with that name. :rolleyes:
Last edited by umpire66 on 09 Oct 2008, 14:39, edited 1 time in total.
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

Re: Aligntable BBcode

Postby onomoney » 09 Oct 2008, 06:18

I was a little confused but I will change it on my board.

Thanks for the great work
Brad West ~ onomoney
The best way to predict the future is to create it.
The Internet Marketers Guild
Show off Your Dog
Sheryl Loch
Game Girl Racing
User avatar
onomoney    
Cadet IV
Cadet IV
 
Posts: 51
Joined: 09 Mar 2008, 12:27
Location: Las Vegas NV.
Gender: Male
phpBB Knowledge: 2

Re: Aligntable BBcode

Postby umpire66 » 09 Oct 2008, 14:40

Thank you. :)

:wave:
umpire66
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 129
Joined: 28 Apr 2007, 14:45
Gender: Male

Next

Return to BBCode System

Who is online

Users browsing this forum: No registered users and 2 guests