[BBCode] New OT BBCode

Mods, snippets and styles postet and supported by the users
Forum rules
As the forum title says this is for User Contributions
Post a support request in this forum and you will be banned!
User avatar
Lucky
BBCoder II
BBCoder II
Posts: 8
Joined: 26 May 2010, 21:31
BBCodes: 100
Favourite BBCode: Vozme bbcode MOD
Favourite MOD: Seo Premod
Location: Italy

[BBCode] New OT BBCode

Post by Lucky » 15 Jul 2012, 18:21

Title: New OT BBCode
Autor: Lucky
Description: A new view for write in "Off-Topic" in the post
Requirements: phpBB | PortalXl 5.0 Premod & Plain


Installing BBCode in ACP / Contents / BBCode / Add New BBCode

BBCode usage:

Code: Select all

[ot]{INTTEXT}[/ot]
HTML replacement:

Code: Select all

<table style='margin:0;width:450px;min-height:100px;border:1px dashed #740000;'>
      <tr>
        <td align='middle' bgcolor='#3333FF' valign='center' width='1%'><br />
           <FONT color='#ffffff' size='+7'><b>OT </b></font><br /></td>
        <td valign='top' cellpadding="5" style='background:#FFFFFF' ><div id="{INTTEXT}">{INTTEXT}
    </div></td>
      </tr>
    </table>
Help line:

Code: Select all

[ot]your text[/ot]

Demo link


juango
BBCoder II
BBCoder II
Posts: 34
Joined: 30 May 2011, 18:44

[BBCode] New OT BBCode

Post by juango » 01 Aug 2012, 23:59

good one lucky, but if you like your bbcodes xtml valid like me you can try this html replacement:

Code: Select all

  <table style="margin:0;width:450px;min-height:100px;border:1px dashed #740000;">
    <tr>
      <td style="background-color:#3333FF;vertical-align:middle;text-align:center;width:1%;"><br />
      <strong style="color:#FFFFFF;font-size:48px;">OT</strong></td>

      <td style="vertical-align: top;background:#FFFFFF">
        <div id="{INTTEXT}">
          {INTTEXT}
        </div>
      </td>
    </tr>
  </table>
the posted one had too many errors and many deprecated tags!

User avatar
Lucky
BBCoder II
BBCoder II
Posts: 8
Joined: 26 May 2010, 21:31
BBCodes: 100
Favourite BBCode: Vozme bbcode MOD
Favourite MOD: Seo Premod
Location: Italy

[BBCode] New OT BBCode

Post by Lucky » 02 Aug 2012, 19:17

Thank for your suggestion juango

juango
BBCoder II
BBCoder II
Posts: 34
Joined: 30 May 2011, 18:44

[BBCode] New OT BBCode

Post by juango » 03 Aug 2012, 00:05

not a problem lucky! your welcome!