<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : ClassActive</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 04 May 2026 21:47:28 -0000</pubDate>

		<item>
			<title>tensh</title>
			<description><![CDATA[<p>It just displays {PHP|classactive('','')} and also other tags, lang tags, etc. in text - it doesn't get parsed. I'm using the latest 9.0.14 Cotonti. :)</p>
]]></description>
			<pubDate>ср, 02 окт 2013 08:00:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38074]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Hmm…</p>

<p>What does it mean «does not work at all»:  What we get for  `<span style="color:rgb(0,0,255);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:14.296875px;white-space:pre;">{PHP|classactive('','')}</span>` string in tag? Is other tpl tags parsed in menu slot?<br />
What version of Cotonti you are use on server? <br />
 </p>
]]></description>
			<pubDate>ср, 25 сен 2013 17:52:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38032]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>Now my plugin doesn't work at all even without slots and tags (at production server), maybe the order should be the other way round? Hmmm.<br />
I experimented with ordering and classactive had to have bigger priority in order to work at all (even when placed in header.tpl - slots and tags' bigger priority makes it disfunctional). It still doesn't work with slots and tags as well. If the priority was other way round, then slots and tags doesn't work. </p>

<p>Haven't tested on localhost but on localhost it previously worked as expected. o_O</p>
]]></description>
			<pubDate>пн, 23 сен 2013 22:12:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38023]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>It can happened because order to run plugins not specified (in that case install order can be important).</p>

<p>Try new version from GitHub:  <a href="https://github.com/macik/cot-slots_n_tags" rel="nofollow">https://github.com/macik/cot-slots_n_tags</a>  (I'm fixed hook order)</p>

<p>First uninstall both of plugins than install ones more. Do the same on production server.</p>
]]></description>
			<pubDate>пн, 23 сен 2013 21:20:13 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38021]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>It just doesn't do anything with these tags.</p>

<p>cot_url() gets parsed but my global class classactive() doesn't. The code as I see in page source:</p>

<pre class="brush:xml;">
&lt;ul class="nav"&gt;
          &lt;li class="{PHP|classactive(,)}"&gt;&lt;a href="http://mywebsite.com" title="Site title / site description"&gt;Strona Główna&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive(page,c=turnieje)}"&gt;&lt;a href="https://www.cotonti.com/turnieje/ttt-vol8"&gt;Turniej Tekken&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive(page,c=galeria)}"&gt;&lt;a href="https://www.cotonti.com/galeria"&gt;Galeria&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive(plug,e=contact)}"&gt;&lt;a href="https://www.cotonti.com/contact"&gt;Kontakt/Zapisy&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive(forums,)}"&gt;&lt;a href="https://www.cotonti.com/forums"&gt;Forum&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;</pre>

<p>Here's what is in cfg.menu1 in config:</p>

<pre class="brush:php;">
&lt;ul class="nav"&gt;
          &lt;li class="{PHP|classactive('','')}"&gt;&lt;a href="https://www.cotonti.com/{PHP.cfg.mainurl}" title="{PHP.cfg.maintitle} {PHP.cfg.separator} {PHP.cfg.subtitle}"&gt;{PHP.L.Home}&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive('page','c=turnieje')}"&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('page', 'c=ttt-vol8')}"&gt;Turniej Tekken&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive('page','c=galeria')}"&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('page', 'c=galeria')}"&gt;Galeria&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive('plug','e=contact')}"&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('contact')}"&gt;Kontakt/Zapisy&lt;/a&gt;&lt;/li&gt;
          &lt;li class="{PHP|classactive('forums','')}"&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('forums')}"&gt;{PHP.L.Forums}&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;</pre>

<p>Seems like classactive doesn't get parsed or gets parsed wrong. But in my localhost it is parsed just fine!</p>

<p>Source from localhost:</p>

<pre class="brush:xml;">
&lt;ul class="nav"&gt;
          &lt;li class="active"&gt;&lt;a href="http://site.local" title="Site title / Site desc"&gt;Strona Główna&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="https://www.cotonti.com/turnieje/ttt-vol8"&gt;Turnieje Tekken&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="https://www.cotonti.com/galeria"&gt;Galeria&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="https://www.cotonti.com/contact"&gt;Kontakt/Zapisy&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="https://www.cotonti.com/forums"&gt;Forum&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;</pre>

<p>If I use classactive() in header.tpl in my theme, it's parsed fine, it just doesn't work with slots and tags on my production server. Something with php settings? but what? Maybe I should change plugin's priority? Or anything?</p>
]]></description>
			<pubDate>пн, 23 сен 2013 17:59:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38020]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<blockquote>
<p>For some reason both plugins cooperate as exected in my localhost, but fail to work on my production external server. Any help? Is it because it has memcache or something?</p>
</blockquote>

<p>Can you write on what exact links it does not work? </p>
]]></description>
			<pubDate>пн, 23 сен 2013 01:30:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38019]]></link>
		</item>
		<item>
			<title>Aristei</title>
			<description><![CDATA[<p>Very good, thanks!</p>
]]></description>
			<pubDate>вс, 22 сен 2013 15:33:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38014]]></link>
		</item>
		<item>
			<title>tensh</title>
			<description><![CDATA[<p>Hi;</p>

<p>I made this plugin to determine in which location the user is, and if location matches the url in navigation menu, it returns the class name "active" (or any other, can be set in settings), so that the menu item can switch colors. By now it can be achieved only by "IF" statements.</p>

<p>Currently it works only with URLs set to "Handy" urls (custom urls probably as well).</p>

<p>For nested categories, provide the Parent category in class parameters (the very first parent category in structure hierarchy) - it doesn't recognize the category depth (YET).<br />
I hope it will work right, I made it very fast so I might not think of all alteratives.</p>

<p>Usage: just as you would use it with cot_url(): {PHP|classactive('module','parameters')} - e.g. {PHP|classactive('page','c=news')}.<br />
For home page it would be {PHP|classactive('','')}.<br />
For forums it will work only for first categories, not for subforums (by now)</p>

<p>Example menu link with this plugin:</p>

<pre class="brush:php;">
&lt;li class="{PHP|classactive('page','c=news')}"&gt;&lt;a href="https://www.cotonti.com/{PHP|cot_url('page', 'c=news')}"&gt;News&lt;/a&gt;&lt;/li&gt;</pre>

<p><strong>Attention:</strong><br /><span style="line-height:1.6em;">I made it to work with the plugin Slots_and_tags </span><a href="http://www.cotonti.com/extensions/customization-i18n/slots_n_tags">http://www.cotonti.com/extensions/customization-i18n/slots_n_tags</a> - because in this plugin we cannot use IF statements and I wanted to have menu somewhere at hand.</p>

<p>For some reason both plugins cooperate as exected in my localhost, but fail to work on my production external server. Any help? Is it because it has memcache or something?</p>

<p>Link to plugin:</p>

<p><a href="http://www.cotonti.com/datas/users/classactive_253.zip">Classactive.zip</a></p>
]]></description>
			<pubDate>вс, 22 сен 2013 10:42:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7536&d=0#post38013]]></link>
		</item>
	</channel>
</rss>