Categories > TinyButStrong general >

string conversion

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Adam
Date: 2014-07-07
Time: 12:54

string conversion

Hi, Skrol

I'm also looking to do this in a project I'm working on. I was actually part-way through coding my own solution when I found TBS, but I'm hoping that I can save a lot of time by switching to TBS now.

I tried the example code above but, the MergeBlock call insists on converting
<
into
&lt;
so the template source was displayed rather than the page itself.

I tried looking through the forum but none of the suggestions helped. I was able to fix the issue by executing my own MySQL query and setting the Source string directly, but I want to understand why your suggested approach wouldn't work.
By: Skrol29
Date: 2014-07-07
Time: 13:07

Re: string conversion

Hi Adam,

I've moved your message to a new thread.

By default, TBS performs a string conversion in order to protect the template from HTML/XML injection.
You can tune a fields that may display trusted HTML/XML contents using parameter "strconv".

See http://www.tinybutstrong.com/manual.php#html_field_prm_strconv
By: Adam
Date: 2014-07-07
Time: 15:32

Re: string conversion

Thanks for the fast reply :-)

Adding 'strconv' didn't actually help but removing 'protect' fixed the issue (and then 'htmlconv' also worked as expected).

Apart from the other question I posted regarding the best design approach for my multi-language site, I also wanted to ask about the TBSforum project I saw mentioned in a few posts.

I found one link, but it was broken - are you still providing the source for that? I didn't see it on the downloads page but it would be a very useful addition to the site I'm working on.
By: Skrol29
Date: 2014-07-08
Time: 02:39

Re: string conversion

I can provide the code source of the forum, with the doc,but it is not maintained anymore.
By: Adam
Date: 2014-07-08
Time: 11:00

Re: string conversion

That would be very helpful - thanks :-)

Is it the same code used for this forum or an earlier example?