<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
<channel>
  <title>TinyButStrong Forum</title>
  <description>TinyButStrong Forum in English</description>
  <link>http://www.tinybutstrong.com/</link>
  <item>
   <title>Re: Spreadsheet documents and merged rows with formulas</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15640</link>
   <description>Hello, thanks for the answer =D !<br />
<br />
I just came here to know if is was a known issue. <br />
<br />
Since it is, I've came with this solution for now:<br />
<br />
         A                                       |     B                                  |    C                                       |  D<br />
1|  Number                                  | Value                                | Quantity                               | TOTAL<br />
2|  &#91;item.number;block=tbs:row]  | &#91;item.value;ope=tbs:num] | &#91;item.quantity;ope=tbs:num] |  =INDIRECT(CONCAT(&quot;B&quot;;ROW()))*INDIRECT(CONCAT(&quot;C&quot;;ROW()))<br />
<br />
<br />
And voila ! =D<br />
No changes on TBS or OpenTBS, just using excel regular formulas. The functions mentioned are all implemented both on Microsoft Excel and LibreOffice Calc.<br />
<br />
It's also possible to use R1C1 style on INDIRECT function. But I prefer to use A1 because the column letter appears in the formula.<br />
<br />
Thanks again, hope this post helps someone in the future. <br />
<br />
<br />
<br />
</description>
   <pubDate>2017-04-14 04:35:26</pubDate>
  </item><item>
   <title>Re: Nested subs in LibreOffice text</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15575</link>
   <description>Hello,<br />
<br />
Thanks for the help. It works! <br />
I'll consider the relative syntax (block=tbs:p). Tomorow I'll try something like this:<br />
&#91;code]<br />
1 &#91;myBlock.domaine;strconv=no;enlarge=text:p;block=tbs:p;sub1=(projet)]<br />
1.1 &#91;myBlock_sub1.nom;block=tbs:p;sub1=(ae)]<br />
- &#91;myBlock_sub1_sub1.nom]<br />
&#91;myBlock_sub1_sub1.desc]<br />
&#91;/code]</description>
   <pubDate>2017-02-23 22:02:21</pubDate>
  </item><item>
   <title>Re: Allow user to upload templates - security concerns</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15553</link>
   <description>Hi Michael and thanks for your reply!<br />
<br />
That sounds like you are doing a very comprehensive intervention into the existing class! I am not entirely sure I understand the necessity of each of the explained steps.<br />
<br />
I have done the following:<br />
&#91;code]<br />
$TBS = new \clsTinyButStrong('','wlTempl_','wlTempl_'); // new instance of TBS<br />
$TBS-&gt;VarRef = &#91;];<br />
$TBS-&gt;_UserFctLst = new \TbsNoFunctions;<br />
&#91;/code]<br />
<br />
TbsNoFunctions being defined like you explained in you original post. In addition I am customizing the method TbsPicAdd right after it called TbsPicExternalPath with the following code:<br />
&#91;code]<br />
// CHANGE CUSTOMIZATION !!!!<br />
		$ExternalPath = str_replace(&quot;//&quot;,&quot;&quot;,str_replace(&quot;..&quot;,&quot;&quot;,$ExternalPath));<br />
		if(!starts_with($ExternalPath,storage_path('app')))<br />
			return false;;<br />
&#91;/code]<br />
<br />
This ensures that image paths are within the image path and do not navigate out of it.<br />
<br />
I am not entirely positive that his is covering all potential to do bad with TBS strong templates. Any input on were this approach is lacking would be appreciated.<br />
<br />
Thanks again and all best,<br />
Tobias</description>
   <pubDate>2017-02-06 15:44:19</pubDate>
  </item><item>
   <title>Re: .txt file inside zip file (with custom extension)</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15371</link>
   <description>ok</description>
   <pubDate>2016-09-01 01:27:08</pubDate>
  </item><item>
   <title>Re: Setting up TBS demo_merge and getting an error...</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=15277</link>
   <description>Hello AAA,<br />
<br />
I cannot reproduce your problem.<br />
I guess you've used « demo_ms_excel.php » and not « demo_merge.php » because « demo_merge.php » uses an HTML template.<br />
<br />
Can you give more detail about your snippet  for merging ?</description>
   <pubDate>2016-04-15 00:34:43</pubDate>
  </item><item>
   <title>Re: Using OpenTBS can i remove the image form a template when picture file does not exist?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14868</link>
   <description>Ok, thx, i will try this. <br />
<br />
Does it work the same with docx files?</description>
   <pubDate>2015-06-12 16:23:24</pubDate>
  </item><item>
   <title>Re: OpenTBS Plugin: Signature of Central Directory Header #1  </title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14825</link>
   <description>Hi,<br />
<br />
Check that your document is a correct zip archive. You can do this using a zip tool such as 7zip or by checking the binary header of the file.<br />
If the document is protected by a password then it is probably encrypted so it is no longer a common zip archive.<br />
<br />
If you still have the problem, you can send the document to me.</description>
   <pubDate>2015-04-28 13:19:10</pubDate>
  </item><item>
   <title>Re: Open tbs plugin problem</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14811</link>
   <description>Hi,<br />
<br />
What problem do you have ?<br />
Dod you try the classic merge with a table, like in the DOCX example ?</description>
   <pubDate>2015-04-14 22:03:16</pubDate>
  </item><item>
   <title>Re: Generate multiple documents with only one click</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14806</link>
   <description>Thank you Skrol. You are right, it's not a TBS/Open TBS issue, but an html handicap. Some possible solutions found here: http://stackoverflow.com/questions/2339440/download-multiple-files-with-a-single-action</description>
   <pubDate>2015-04-10 09:02:35</pubDate>
  </item><item>
   <title>Re: &#91;FR] Empêcher les caractères spéciaux</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14674</link>
   <description>Oui j'avais tout réalisé en UTF-8. Je vais vérifier ça</description>
   <pubDate>2015-01-07 19:18:51</pubDate>
  </item><item>
   <title>Re: Generate document preview?</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14620</link>
   <description>TBS alone can merge any text template, so it can do HTML templates.<br />
OpenTBS is a plug-in for TBS that enables you to merge templates that are LibreOffice and MsOffice documents.</description>
   <pubDate>2014-11-20 01:43:29</pubDate>
  </item><item>
   <title>Re: AJAX post, then download file</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14598</link>
   <description>Worked handsomely ;)</description>
   <pubDate>2014-11-13 16:19:21</pubDate>
  </item><item>
   <title>Re: Possible Bug with Editing TBS codes in Word</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14570</link>
   <description>Hi<br />
<br />
Thanks, the &quot;Word.Options.StoreRSIDOnSave = false&quot; seems to make a difference and improve things.<br />
<br />
You say &quot;OpenTBS tries to find and delete such elements. But when it seems hazardous to delete an element, OpenTBS let it as it is. So you may sometimes be bothered by TBS tags that seems to not be recognized or be cut.&quot;<br />
<br />
I understand why it will not delete this but can you make the TBS code write an error into the log or even better via... &#91;code]&#91;onshow..error_msg]&#91;/code] My main issue is that I cannot easily tell if I have a problem by looking at the template and I have to test every permutation which is a problem for a large template.<br />
<br />
Thanks</description>
   <pubDate>2014-10-27 18:19:14</pubDate>
  </item><item>
   <title>Re: Website broken: OpenTBS demo page: link to PHP source</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14545</link>
   <description>fixed</description>
   <pubDate>2014-10-21 01:09:19</pubDate>
  </item><item>
   <title>Re: Feature request: operations on fields</title>
   <link>http://www.tinybutstrong.com/forum.php?msg_id=14447</link>
   <description>Hello Walter,<br />
<br />
It seems to can easily achieve this using the parameter &quot;onformat&quot;.<br />
<br />
Simple example:<br />
<br />
PHP:&#91;code]<br />
function f_format_div($FieldName,&amp;$CurrVal,&amp;$CurrPrm) {<br />
   $CurrVal = $CurrVal / $CurrPrm&#91;'value2'];<br />
}<br />
&#91;/code]<br />
<br />
Template:&#91;code]<br />
&#91;block1:block=begin]<br />
<br />
value=&#91;block1.num] equal to &#91;block1.num;onformat=f_format_div;value2=29]<br />
<br />
&#91;block1:block=end]<br />
&#91;/code]<br />
<br />
</description>
   <pubDate>2014-09-08 18:10:52</pubDate>
  </item>
</channel>
</rss>