The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Easy Problem (for coders) - Translate this HTML to BBcode please?

View previous topic View next topic Go down

Easy Problem (for coders) - Translate this HTML to BBcode please?

Post by Alexander Moore on August 1st 2012, 3:25 pm

I just need help translating this into BBcode. I've already figured out everything else about it.

I think the biggest confusion is coming from the <tbody> tags. I looked around Google but it seems that most sites don't even support it or something...well, this site uses it just fine. Can I get some help?
Code:

<table style="border-left: 1px solid #007295; border-right: 1px solid #007295; border-bottom: 1px solid #007295;" width="100%" cellspacing="0"><tbody><tr><td align="left" style="text-align: justify; background: #f7f7f7; padding-left: 5px;"><div style="margin:auto;text-align:center;width:100%"><br>A <strong><font color="#00A5CD">Free</font><font color="#7CBA2C">Lancers</font></strong> Important Announcement</div><br></td></tr></tbody></table></td></tr></tbody></table>

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Re: Easy Problem (for coders) - Translate this HTML to BBcode please?

Post by Alexander Moore on August 1st 2012, 7:17 pm

Sorry, I meant this :
Code:

</td></tr></tbody></table><table style="border-left: 1px solid #007295; border-right: 1px solid #007295; border-bottom: 1px solid #007295;" width="100%" cellspacing="0"><tbody><tr><td align="left" style="text-align: justify; background: #f7f7f7; padding-left: 5px;"><div style="margin:auto;text-align:center;width:100%">A <strong><font color="#00A5CD">Free</font><font color="#7CBA2C">Lancers</font></strong> Important Announcement</div><br></td><td align="left" style="background: url('http://i82.servimg.com/u/f82/09/02/12/09/helpmo10.png');" width="140" height="100"></td></tr></tbody></table></td></tr></tbody></table>

Missed a little bit there. What's the bbcode for <tbody> anyway? That's what stumped me - when you translate to bbcode it looks like it gets turned into something totally different or is just removed.

Don't worry, I'm removing the background images as I need to use my own. I just wanted the fancy table codes.


Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Re: Easy Problem (for coders) - Translate this HTML to BBcode please?

Post by Alexander Moore on August 1st 2012, 7:55 pm

Oh, and the following code isn't working for me either (after being translated into BBcode. It works fine as an HTML code) :

Code:
[table style="padding: 2px; -moz-border-radius: 5px; -webkit-border-radius: 5px;" class="forabg" cellpadding="0" cellspacing="1" width="100%"][tr][td style="padding-bottom: 3px" class="table-title"]Title here[/td][/tr][tr][td style="padding: 5px; -moz-border-radius: 10px" class="row1" width="100%"]

Alright, well let me just give you the full codes that I need fixed into BBcode. Maybe I'm missing something :

Code:
<table style="padding: 2px; -moz-border-radius: 10px" class="forabg" cellpadding="0" cellspacing="1" width="100%"><tbody><tr><td align="left" style="padding-bottom: 3px" class="table-title">Important Announcement</td></tr><tr><td align="left" style="padding: 5px; -moz-border-radius: 10px" class="row1" width="100%"><table style="border: 1px solid #007295; table-layout:fixed; width: 100%;" cellspacing="0"><tbody><tr><td align="left" style="background-image: url('http://i15.servimg.com/u/f15/11/95/92/91/fa1010.png'); background-repeat: repeat;" width="152" height="100"></td><td align="left" style="background: url('http://i62.servimg.com/u/f62/09/02/12/09/repet10.png'); padding-bottom: 15px;"><div style="margin:auto;text-align:center;width:100%"><span style="font-size: 20px; line-height: normal"><font color="#1675BC"><strong>Freelancers General Forum Rules</strong></font></span></div><br></td><td align="left" style="background-image: url('http://i15.servimg.com/u/f15/11/95/92/91/09610110.jpg'); background-repeat: no-repeat;" width="84"></td></tr></tbody></table><table style="border-left: 1px solid #007295; border-right: 1px solid #007295; border-bottom: 1px solid #007295; table-layout:fixed; width: 100%;" cellspacing="0"><tbody><tr><td align="left" style="padding: 5px; background-color: #F7F7F7;"><br><br><div align="justify">

CONTENT HERE

</td></tr></tbody></table><table style="border-left: 1px solid #007295; border-right: 1px solid #007295; border-bottom: 1px solid #007295;" width="100%" cellspacing="0"><tbody><tr><td align="left" style="text-align: justify; background: #f7f7f7; padding-left: 5px;"><div style="margin:auto;text-align:center;width:100%">A <strong><font color="#00A5CD">Free</font><font color="#7CBA2C">Lancers</font></strong> Important Announcement</div><br></td><td align="left" style="background: url('http://i82.servimg.com/u/f82/09/02/12/09/helpmo10.png');" width="140" height="100"></td></tr></tbody></table></td></tr></tbody></table>

I want that full code translated into BBcode and work in my forum. It should look a lot like the rules here. Once I have it working I plan to edit the code to insert my own graphics.

Also, do I need to insert anything into my CSS or otherwise to get the table to display properly?

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

Re: Easy Problem (for coders) - Translate this HTML to BBcode please?

Post by SLGray on August 2nd 2012, 1:07 am

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!

This is your second reminder.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Re: Easy Problem (for coders) - Translate this HTML to BBcode please?

Post by Alexander Moore on August 2nd 2012, 2:16 am

Sorry, it was really late and I was a browsing zombie by this time Razz

I could hardley even make sense of what I was doing by this time, haha.

Edit : Still isn't solved Sad

Alexander Moore
Forumember

Male Posts : 210
Reputation : 2
Language : English (USA), Mandarin Chinese || HTML, CSS, Limited JavaScript.
Location : Suzhou, China

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum