Custom BBCode for ShapeSheet Formulas

Started by Visio Guy, June 23, 2008, 10:35:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visio Guy

Anybody know much about the SMF forum and creating custom BBCode mods?

I'd like to add a custom "shapesheet" bbcode tag, so that we could get automatic, shapesheet-style formatting.

We could parse each line within the shapesheet bbcode bracket, and look for the first instance of an equals sign. Everything to the left would be red, everything else would be blue:

[shapesheet]
cellname = formula
User.foo = SIN(PI()/4)
Prop.Cost = EUR 45.00
[/shapesheet]
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Surrogate

Hi, Chris !

Sorry, for necro-posting ! But today i created own simple ShapeSheet-Style BBCode for our russian-speaking Visio forum...
You can see result there.

BBCode:
[shapesheet][h]{TEXT1}[/h][n]{TEXT2}[/n][v]{TEXT3}[/v][/shapesheet]
Example HTML[/b]:
<div class=shapesheet>
<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="100%"
style='width:100.0%;border-collapse:collapse;border:none;mso-border-alt:solid windowtext .5pt;
mso-yfti-tbllook:1184;mso-padding-alt:0cm 6.0pt 0cm 6.0pt'>
<span style="h: {TEXT1}; n: {TEXT2}; v: {TEXT3}"></span>
<tr style='mso-yfti-irow:0;mso-yfti-firstrow:yes'>
  <td width="80%" colspan=2 valign=top style='width:80.0%;border:solid windowtext 1.0pt;
  mso-border-alt:solid windowtext .5pt;background:navy;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
  normal'><b style='mso-bidi-font-weight:normal'><span style='color:white;
  mso-ansi-language:EN'>{TEXT1}<o:p></o:p></span></b></p>
  </td>
</tr>
<tr style='mso-yfti-irow:1;mso-yfti-lastrow:yes'>
<td width="20%" valign=top style='width:20.0%;border:solid windowtext 1.0pt;
  border-top:none;mso-border-top-alt:solid windowtext .5pt;mso-border-alt:solid windowtext .5pt;
  background:#A6A6A6;mso-shading:windowtext;mso-pattern:solid #A6A6A6;
  padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal align=right style='margin-bottom:0cm;margin-bottom:.0001pt;
  text-align:right;line-height:normal'><span style='color:red;mso-ansi-language:
  EN'>{TEXT2}<o:p></o:p></span></p>
  </td>
  <td width="80%" valign=top style='width:80.0%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  mso-border-top-alt:solid windowtext .5pt;mso-border-left-alt:solid windowtext .5pt;
  mso-border-alt:solid windowtext .5pt;padding:0cm 6.0pt 0cm 6.0pt'>
  <p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
  normal'><span style='color:blue;mso-ansi-language:EN'>{TEXT3}<o:p></o:p></span></p>
  </td>
</tr>
</table>
<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>
</div>

Description Tooltip:
[shapesheet][h]Section header[/h][n]Cell name[/n][v]Cell value[/v][/shapesheet]

Please try this BBCode, may be it works with SMF forum too ?

Visio Guy

Wow, that is really cool and impressive! It looks exactly like a ShapeSheet. I would have been happy with just Red = Blue, hahaha!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

Surrogate

Hi, Chris !

Have you tried to use this BBCode ?