Author Topic: Custom BBCode for ShapeSheet Formulas  (Read 5447 times)

0 Members and 1 Guest are viewing this topic.

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1712
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Custom BBCode for ShapeSheet Formulas
« on: June 23, 2008, 05:35:32 PM »
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

  • Hero Member
  • *****
  • Posts: 983
    • ShapeSheet™ Knowledge Base
Re: Custom BBCode for ShapeSheet Formulas
« Reply #1 on: December 06, 2016, 04:06:31 PM »
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:
Code
[shapesheet][h]{TEXT1}[/h][n]{TEXT2}[/n][v]{TEXT3}[/v][/shapesheet]
Example HTML[/b]:
Code
<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:
Code
[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

  • Administrator
  • Hero Member
  • *****
  • Posts: 1712
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: Custom BBCode for ShapeSheet Formulas
« Reply #2 on: December 12, 2016, 06:16:44 AM »
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

  • Hero Member
  • *****
  • Posts: 983
    • ShapeSheet™ Knowledge Base
Re: Custom BBCode for ShapeSheet Formulas
« Reply #3 on: December 21, 2016, 10:28:22 AM »
Hi, Chris !

Have you tried to use this BBCode ?