Questions tagged [tinybutstrong]

TinyButStrong is a template engine for PHP.

TinyButStrong is a template engine for PHP. It can merge not only HTML, but also XML, text, and any textual source by the technical of template. Provided in a single file, TinyButStrong is a brick in your application, and can be inserted in any framework. It can thus cover only one feature or being a central component of your application.

TinyButStrong can be empowered by the plug-in OpenTBS in order to merge OpenOffice, LibreOffice and Microsoft Office documents.

159 questions
0
votes
0 answers

Write data in xlsm using OpenTBS

I'm trying fill data in .xlsm template, which contain lot of VBA calculations. When I open merged file in MS Excel, file is corrupted and Application propose repair it. After repairing, I see new blank sheet, and lost formatting in old sheet which…
0
votes
0 answers

Urls treated like normal text - TinyButStrong

I have been trying to solve this for a while now, but it sounds like there is no hope :( So I have a Textarea that takes text input form the user, then the message gets pushed into the chat using TinyButStrong. The problem is, if the user enters any…
NinjaShawarma
  • 69
  • 1
  • 1
  • 9
0
votes
1 answer

.htaccess redirect for .html

I have a site constructed using the TinyButStrong template system, so consisting of pairs of .php pages with .html templates. What rules should I use in a .htaccess file such that any call to a .html page is redirected to the .php?
Cruachan
  • 15,733
  • 5
  • 59
  • 112
0
votes
3 answers

Allowed memory size error in Tbs library

Hello i am facing the problem of Allowed memory size error. I have created the project in codeigniter, php and I have used Tbs library. Its worked fine but today it display the error: Fatal error: Allowed memory size of 67108864 bytes exhausted…
David Coder
  • 1,138
  • 2
  • 14
  • 48
0
votes
1 answer

How to create a specific openTBS Word Template?

I have a php program that uses TinyButStrong together with the OpenTBS Plugin. I tried many examples and edited the xml directly too. nevertheless I don't get it and all the experimenting starts to frustrate me, so here is my problem: The template…
pauel
  • 908
  • 10
  • 26
0
votes
1 answer

Looping issue in Tinybutstrong

I've the data structures as shown below Array ( [0] => Array ( [name] => dummy0 [projects] => Array ( [project_names] => project0 [dates] => Array …
0
votes
3 answers

TinyButStrong htmlconv="no" dont print string which comes after doble quotes (" ") in tooltip

I have content which comes from database. I am using TBS library with codeigniter. I am displaying content with the 200 character limit. User can see full content with mouse hover on content as tool tip. But in tool tip the string which comes after…
David Coder
  • 1,138
  • 2
  • 14
  • 48
0
votes
1 answer

OpenTBS RTL issue

I'm using OpenTBS plugin for TinyButStrong to fill docx templates with data using PHP. When i'm trying to fill RTL text in the template, it is displayed in the right direction (from right to left) but the text itself seems messy. for example, this…
Eli Baratz
  • 23
  • 6
0
votes
1 answer

tinybutstrong not showing special characters from mysql

I'm trying to load data from a MySQL DB from a varchar(35) / utf8_swedish_ci field through TBS (tinybutstrong) and PHP using the example (MySQL data merge). My issue is that data loads fine if only ascii characters are in the fields but as soon as I…
sakumatto
  • 157
  • 1
  • 9
0
votes
1 answer

opentbs conditional statement in docx

How to show and hide the label [Merk - Track - Type || Location - Certificate], so here goes : when I have a vehicle data, the data appears : [xtable;block=tbs:page] Merk : [xtable.VehicleMerk;noerr] Track :…
KuliCoding
  • 3
  • 1
  • 4
0
votes
1 answer

How to merge multiple labels on one page with openTBS?

I am wondering what is best approach in handling multiple merges on one page. Something like such an official avery address label template: My goal is to create a docx template for address labels and than process it with openTBS so that every db…
pauel
  • 908
  • 10
  • 26
0
votes
1 answer

TinyButStrong PHP Templating multicolumn table

I'm using TBS sample code: include_once('tbs_class.php'); $TBS = new clsTinyButStrong; $TBS->LoadTemplate('template.htm'); $list = array('X','Y','Z'); $TBS->MergeBlock('blk', $list); $TBS->Show(); but instead of a one column table as…
dendini
  • 3,842
  • 9
  • 37
  • 74
0
votes
1 answer

How to hide/remove options from a side navigation bar based upon user's role? (best practice)

Environment: PHP/5.5.6 I have got 2 *.html files for side navigation bars defined, one for Role A and one for Role B. There are similiarties between the two and I would sort of like to combine the similarities into one single file, and include the…
mcv
  • 1,380
  • 3
  • 16
  • 41
0
votes
2 answers

TinyButStrong How to compare data value using block with php var?

Environment: PHP 5.3.5 MySQL Server 5.5.8 Was Using TBS 3.7.0 Now Using TBS 3.8.2 In the sql dataset that I merged to TBS (TinyButStrong) I have a sender / recipient info. I want to display the one that is currently not user. I am having trouble…
mcv
  • 1,380
  • 3
  • 16
  • 41
0
votes
2 answers

Change Text Colour of Part of a string in OpenTBS

I'm building a large word document, and need to change the text colour of 'part' of a string, only. I've found similar questions in a few places here, here and here, but where my problem seems to differ, is that I only wish to colour part of a…
Chris
  • 5,882
  • 2
  • 32
  • 57