<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : ParseBlock Help</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 12:40:13 -0000</pubDate>

		<item>
			<title>kripteks</title>
			<description><![CDATA[Verifi script blocking]]></description>
			<pubDate>Di, 24 Feb 2009 08:24:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8727]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[Same, doesn't work for me, but XP, FF 3.0.6]]></description>
			<pubDate>Di, 24 Feb 2009 07:40:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8725]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[I have Windows XP, Firefox 3.0.6. as well.]]></description>
			<pubDate>Di, 24 Feb 2009 00:19:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8698]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Neither it it works for me: Ubuntu 8.10, FireFox 3.0.6.]]></description>
			<pubDate>Mo, 23 Feb 2009 22:59:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8693]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[<blockquote><a href="https://www.cotonti.com/forums.php?m=posts&amp;p=8681#8681">#</a> <strong>medj :</strong>
Is it just me or does the &quot;copy to clipboard&quot; function not work?<br />
</blockquote>
<br />
Is working for me, using FF2... what is your specs?]]></description>
			<pubDate>Mo, 23 Feb 2009 22:32:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8692]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[Thanks a lot for the help guys.<br />
<br />
Is it just me or does the &quot;copy to clipboard&quot; function not work?]]></description>
			<pubDate>Mo, 23 Feb 2009 14:45:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8681]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[You can create a new Xtemplate with any file, it could be called .txt, .html it doesnt' matter.<br />
<br />
So jsut create a PHP file, and run your html file through xtemplate.]]></description>
			<pubDate>Mo, 23 Feb 2009 06:22:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8676]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[You don't need to include anything, mate! XTemplate is what Seditio/Cotonti uses to render TPL files. So you just  use it this way:<br />
<div class="highlight"><pre class="php">$my_tpl = new XTemplate('path/to/file.tpl');
$my_tpl-&gt;assign(array(
'TEST_1' =&gt; $some_var,
'TEST_2' =&gt; $another
));

$my_tpl-&gt;parse('MAIN.MY_BLOCK');

$my_tpl-&gt;parse('MAIN'); // Parse main block
$output = $my_tpl-&gt;text('MAIN'); // return contents
$my_tpl-&gt;out(); // output contents
</pre></div>]]></description>
			<pubDate>Mo, 23 Feb 2009 04:31:29 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8674]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[Um, to be honest, I don't know what XTemplate is but I'm gonna look into it.<br />
<br />
<br />
<strong>EDIT:</strong><br />
I just took a quick look at XTemplate. <br />
All I have to do is include the xtemplate.class file. From what I understand, this should give me all the functionality that I was looking for. <br />
Thanks for this idea, I will look more into XTemplate later on when I get back home.]]></description>
			<pubDate>Mo, 23 Feb 2009 03:29:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8668]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Are you reinventing XTemplate?]]></description>
			<pubDate>Mo, 23 Feb 2009 02:57:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8660]]></link>
		</item>
		<item>
			<title>medj</title>
			<description><![CDATA[Hello, I was wondering if someone could help me out with what I'm trying to accomplish.<br />
<br />
I have a function that will parse tags in HTML. I know users of Seditio and Cotonti are all familiar with this method.<br />
<br />
First off, here is some code:<br />
<br />
<div class="highlight"><pre class="php">class Parser {
  function ParseTags($Template, $ParseTags) {
    $Template = file_get_contents($Template);
    foreach($ParseTags as $UnParsed =&gt; $Parsed){      
      $Template = str_replace(&quot;{&quot;.$UnParsed.&quot;}&quot;, $Parsed, $Template);
      }
    return $Template;
    }</pre></div>
<br />
This will basically look at one of my HMTL files and convert any tags into the data that should be displayed for that page. This works fine.<br />
<br />
My question is basically if anyone knows how to implement a parseblock function. A very simple one in which on my HTML file I can have the following code:<br />
<br />
<div class="highlight"><pre class="html">{START: SHOW_NEWS}
{row_news_title}
{row_news_body}
{END: SHOW_NEWS}</pre></div>
<br />
And basically it would repeat this for as many news posts as I want to show on a page.<br />
<br />
Even if someone has a link for me to learn how to do this, that would be fine. I was searching for &quot;ParseBlock&quot; and didn't come up with any help.<br />
<br />
Thanks.]]></description>
			<pubDate>Mo, 23 Feb 2009 02:48:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=2189&d=0#post8655]]></link>
		</item>
	</channel>
</rss>