BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Get help developing custom BBCodes or request one.
Post Reply
User avatar
Armstrong
Registered User
Posts: 88
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by Armstrong » Wed Jul 10, 2019 7:09 pm

BBCODE Bordered post + cellpadding & cellspacing + bgcolor + outer table border only + attachment include.

This is what it looks like...

Image

Output Spec = OUTER BROAD BORDER (with complimentary pinline border) + INNER BGCOLOR (with complimentary pinline border) + inner table + only OUTER borders + inner table artificial cellpadding + cellspacing for text edge clearance.

Only 2 tables used now.
Easy to edit and throw about.

What the user sees.

Code: Select all

[PostTextBox][AttachmentHolder][attachment=0]puppy.jpg[/attachment][/AttachmentHolder]Post text Goes Here![/PostTextBox]
MAKE THE POST.
BBCODE Useage

Code: Select all

[PostTextBox]{TEXT}[/PostTextBox]
HTML replacement

Code: Select all

<TABLE bgcolor="#77b4f0" border="2" bordercolor="#318ce7"  rules="none" frame="border"><tr><TD colspan="3" height="10"></TD></TR>
<TR><TD width="10"></TD>

<TD align="middle">

<TABLE bgcolor="#ffffe0" align="center" border="2" bordercolor="#a19c48" 
<!--Not commonly used anymore but splat out inner borders of every cell but outer edge -->  rules="none" frame="border">
<!-- Artificial cellpadding --><tr><TD colspan="3" height="12"></TD></TR>
<!-- Artificial cellspacing --><TR><TD width="12"></TD>
<TD valign="top">{TEXT}</TD>
<TD width="12"></TD></TR>
<TR><TD colspan="3" height="12"></TD></TR></TABLE>

</TD>
<TD width="10"></TD></TR>
<TR><TD colspan="3" height="10"></TD></TR></TABLE>

</td></tr></table>
HELP line.

Code: Select all

Posts Text Box. Clean. Simply write between the tags. [PostTextBox]Your Words Here![/PostTextBox]
ADD THE ATTACHMENT.
Now lets put in the attachment upper left RHS wrapped by the text in the parent table.

BBCODE useage.

Code: Select all

[AttachmentHolder]{TEXT}[/AttachmentHolder]
HTML replacement.

Code: Select all

<TABLE align="left" valign="top"><tr colspan="3" height="12"><TD></TD></TR>
<TR><TD width="12"></TD>
<TD align="left">{TEXT}</TD>
<TD width="11"></TD></TR>
<TR><TD colspan="3" height="12"></TD></TR></TABLE>
HELP line.

Code: Select all

Add this INSIDE the PostTextBox to hold your ATTACHMENT Image. [AttachmentHolder]Click the INLINE attachment between here.[/AttachmentHolder]
If this helps anybody take it with my blessing. Personally I would LOVE to see this as standard in PHPBB Prosilver and you choose your border width, colour, border style etc.
BUT.............. I am no Guru in php. :geek: :lol: SO I get by like this. ;)

User avatar
JoshyPHP
Code Contributor
Posts: 999
Joined: Mon Jul 11, 2011 12:28 am

Re: BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by JoshyPHP » Wed Jul 10, 2019 8:43 pm

FYI you have an HTML comment in the middle of a tag. That's not valid and it can cause the markup to be misinterpreted:

Code: Select all

<!--Not commonly used anymore but splat out inner borders of every cell but outer edge -->
I wrote the thing that does BBCodes in 3.2.

User avatar
Armstrong
Registered User
Posts: 88
Joined: Sun Mar 25, 2007 2:26 am
Location: Oxford UK / Aix France.
Name: Neil Armstrong
Contact:

Re: BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by Armstrong » Thu Jul 11, 2019 5:09 pm

I assume anyone creating thewir own BBCodes in PHPBB will delete the explanatories.
It's just that I recall when I first started out (1994 html + Pascal) I relied on a lot of the explanatories added in and I started before C became C++ and etc.
People were still using Amstrad 1512's with 1/2 meg of ram and a 20meg HDD. Oh yeah. We thought we were so cool with giant 5 inch floppy disks that really were bendy. :lol: :lol:
And after seeing Gallery3 go down because the original programmers stated that they'd all got married and had kids since they started out with Gallery1 I am suddenly aware that I am growing old. :P Well, Im too busy growing up to grow old. :lol:
So I am under no doubts that newbies to php and servers and bbcode are crawling out of cribs and infront of 'puters.
We gotta look after them too and teach 'em right as they grow. ;)
JoshyPHP wrote:
Wed Jul 10, 2019 8:43 pm
FYI you have an HTML comment in the middle of a tag. That's not valid and it can cause the markup to be misinterpreted:

Code: Select all

<!--Not commonly used anymore but splat out inner borders of every cell but outer edge -->

User avatar
Lumpy Burgertushie
Registered User
Posts: 66320
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by Lumpy Burgertushie » Fri Jul 12, 2019 1:02 am

yep, 20MB 3.5inch hard drives were huge.
like the guy who was head of IBM in those days said..." who would ever need more than 256k of memory".


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

User avatar
canonknipser
Registered User
Posts: 1995
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by canonknipser » Fri Jul 12, 2019 5:17 am

Lumpy Burgertushie wrote:
Fri Jul 12, 2019 1:02 am

like the guy who was head of IBM in those days said..." who would ever need more than 256k of memory".
Wasn't it Bill of Microsoft when talking about a new MSDOS version?
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB

User avatar
Lumpy Burgertushie
Registered User
Posts: 66320
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: BBCODE Beautiful Bordered post + cellpadding&cellspacing + bgcolor + outer table border only.

Post by Lumpy Burgertushie » Fri Jul 12, 2019 1:32 pm

I don't think so, but hey, my 256K of memory aint what it used to be.


robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Post Reply

Return to “Custom BBCode Development and Requests”