<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Co-template Question / bug ???</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 14:56:52 -0000</pubDate>

		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	<img alt="wink" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/wink_smile.gif" title="wink" width="20" /> me too</p>
]]></description>
			<pubDate>Sal, 08 Mayıs 2012 05:27:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34251]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Patched version of pagetextbyidn.code.php is here: <a href="https://gist.github.com/2630919" rel="nofollow">https://gist.github.com/2630919</a></p>
<p>
	I posted a comment on the plugin page with a link to the patch.</p>
<p>
	Thanks for the thanks.</p>
<p>
	BTW, love it when code I didn't even try just works :)</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 22:18:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34250]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	:)</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 20:30:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34247]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	DAMN... i am getting blind.... i think.... sorry about that</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 20:25:37 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34245]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	<a href="http://www.cotonti.com/thanks?user=68">http://www.cotonti.com/thanks?user=68</a> is a list of  "Thanks" a user has received.</p>
<p>
	You need to click on 'Thank You' above the post. Should have a link such as: http://www.cotonti.com/thanks?a=thank&amp;ext=forums&amp;item=34231</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 20:24:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34244]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	no console messages what so ever... and off course i have JS enabled.</p>
<p>
	i just go to... http://www.cotonti.com/thanks?user=68<br />
	and see nothing happening.. only a list off ppl</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 20:17:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34243]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	What browser do you use and is javascript enabled? Does it emit any error messages?</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 20:06:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34241]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Thanks, this solution works fine..</p>
<p>
	I never would suspected the regex ..<br /><br />
	Your fix should be standard in the download for this plugin :)<br /><br />
	I was trying to thank you through the thanks plugin.... but am I doing something wrong ???? (i cannot thank you)</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 19:38:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34239]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Small mistake in the regex, the braces should be outside of the tag.</p>
<p>
	<span style="color:rgb(0,0,255);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:13px;line-height:14px;text-align:left;background-color:rgb(255,255,255);">"#(?P&lt;tag&gt;{PAGE_TEXT_ID_(?P&lt;id&gt;[0-9]+)})#"</span></p>
<p>
	should be </p>
<p>
	<span style="color:rgb(0,0,255);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;font-size:13px;line-height:14px;text-align:left;background-color:rgb(255,255,255);">"#{(?P&lt;tag&gt;PAGE_TEXT_ID_(?P&lt;id&gt;[0-9]+))}#"</span></p>
<p>
	Your tpl IF block should work just fine.</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 11:32:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34231]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	OK, i will check your code..<br /><br />
	I never had trouble with this PAGETEXTBYIDN plugin... This is the first time it is giving me troubles...</p>
<p>
	Thanks for responding, and ill try that and post the results here..</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 09:45:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34230]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Several things are wrong with this code (pagetextbyidn.code.php). Try this code:</p>
<pre class="brush:php;">
&lt;?php
if (!defined('SED_CODE')){die('Wrong URL.'); }

$currenttpl = file_get_contents($mskin);
if (mb_strpos($currenttpl, "{PAGE_TEXT_ID_") !== false)// if tag exist on page
{
	$matches = array();
	preg_match_all("#{(?P&lt;tag&gt;PAGE_TEXT_ID_(?P&lt;id&gt;[0-9]+))}#", $currenttpl, $matches, PREG_SET_ORDER);
	foreach ($matches as $match){
		$p_tag = $match['tag'];
		$p_id = $match['id'];

etc...</pre>
<p>
	Update: fixed the regex</p>
]]></description>
			<pubDate>Pzt, 07 Mayıs 2012 07:36:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34229]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Version : Genoa 0.6.22</p>
<p>
	<br />
	I have on my website 2 languages, which I would like to select.<br />
	Inside my index.tpl is the following part.<br />
	 </p>
<p>
	                &lt;!-- IF {PHP.usr.lang} == "en" --&gt;<br />
	                    &lt;h2&gt;About My website&lt;/h2&gt;<br />
	                    {PAGE_TEXT_ID_23}<br />
	                &lt;!-- ENDIF --&gt;<br />
	                &lt;!-- IF {PHP.usr.lang} == "nl" --&gt;<br />
	                    &lt;h2&gt;Over mijn website&lt;/h2&gt;<br />
	                    {PAGE_TEXT_ID_22}                    <br />
	                &lt;!-- ENDIF --&gt;<br />
	 </p>
<p>
	Where it goes wrong is when i have two {PAGE_TEXT_ID_xx} in there....<br />
	Then the index times out...</p>
<p>
	<br />
	The PAGETEXTBYIDN plugin does something like this:</p>
<p>
	<span style="color:#ff0000;">It starts something like this:</span><br /><br />
	$currenttpl = file_get_contents($mskin);<br />
	if (strpos($currenttpl, "{PAGE_TEXT_ID_")==true)// if tag exist on page<br />
	{<br />
	    unset($p_match);<br />
	    preg_match_all("#\{(PAGE_TEXT_ID_(\d*?))\}#", $currenttpl, $p_match);<br /><br />
	 </p>
<p>
	<span style="color:#ff0000;">It ends like this inside a loop that loops through all found tags:</span></p>
<p>
	        // Assign tag<br />
	        $t-&gt;assign($p_tag, $page_html);<br />
	 </p>
<p>
	<u><span style="color:#0000ff;">My best guess</span></u>:</p>
<p>
	I am guessing it goes wrong with the assign inside the Template...<br />
	I think because I use an conditional TAG based on language &lt;!-- IF {PHP.usr.lang} == "en" --&gt;<br />
	and the fact that this plugin uses file_get_contents($mskin) to get the tags.... (which do not care about IF THEN statements)<br /><br />
	How do I fix this ??????????????</p>
<p>
	 </p>
]]></description>
			<pubDate>Paz, 06 Mayıs 2012 20:56:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=6914&d=0#post34225]]></link>
		</item>
	</channel>
</rss>