<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : CSS Menu Current</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 22:22:46 -0000</pubDate>

		<item>
			<title>GHengeveld</title>
			<description><![CDATA[The reason why these vars were never listed is because of the large number of them. Nontheless I think a shorter list of only the most useful ones would be a good thing, for example:<br />
<br />
{PHP.xk} Source key for submitting form fields<br />
{PHP.i} Iterator, often used in loops (not always)<br />
{PHP.usr.*} Various information about the current user/visitor<br />
{PHP.cfg.*} Various configuration variables]]></description>
			<pubDate>Sat, 18 Sep 2010 17:58:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26174]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[It is good to group these kind off things...<br />
<br />
@pieter,<br />
I find them by looking through the code.. (but that is huge).<br />
Most of them are in commons.php (guesing here, i do not have source code present) I believe.]]></description>
			<pubDate>Fri, 17 Sep 2010 22:40:48 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26151]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[I think it would be better to think of a scheme first so that we would know what to list, and then pick out variables and fill out the scheme. Like in instance &quot;Identifying location&quot; or &quot;User personal data&quot;. What do you say?]]></description>
			<pubDate>Fri, 17 Sep 2010 22:36:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26149]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[Kort,<br />
<br />
Is there a way to find those variables?<br />
Maybe I can help with this.]]></description>
			<pubDate>Fri, 17 Sep 2010 22:30:27 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26147]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Thnx, and maybe I will......]]></description>
			<pubDate>Fri, 17 Sep 2010 21:49:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26145]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[PHP.z and PHP.e are most commonly used to identify the location. There are more and it depends on what you treat as useful. As you might guess, there is no such list, so if you're finished with the PFS remodelling, why won't you pick up the tough job of compiling and systemizing the list of variables that might be useful for coders and skinmakers? <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /><br />
ps. as you might know, z can be admin, forums, index, message, page, pfs, polls, pm, plug or users]]></description>
			<pubDate>Fri, 17 Sep 2010 21:43:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26144]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[The e... I could guess that indeed.<br />
The z I have never used...<br />
<br />
Question still remains is there a list somewhere of available var's (the usefull ones, NOT all)<br />
<br />
tnx <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Fri, 17 Sep 2010 21:39:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26143]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[PHP.z is location and PHP.e is plugin code, e.g. plug.php?e=statistics<br />
ez, you're forgetting obvious things <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" />]]></description>
			<pubDate>Fri, 17 Sep 2010 20:41:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26142]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[@Kort,<br />
<br />
You mention {PHP.z}, {PHP.e}...  (what does this mean ???)<br />
<br />
Is there a list, somewhere, for usable var's?  (I know only a few)<br />
I would realy like to know, because it is usefull for skin-design.<br />
<br />
tnx]]></description>
			<pubDate>Fri, 17 Sep 2010 20:13:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26140]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[This problem can be solved easily with a small plugin that would deal with top categories for pages and lists highlights. Highlighting everything else is easy with {PHP.z}, {PHP.e} etc.<br />
This is what we used sometime ago for this purpose: <a href="https://www.cotonti.com/datas/users/highlighter_183.zip">highlighter_183.zip</a> (requires <a href="http://www.seditio.by/page.php?al=biblioteka-cotlib-dlja-cotonti" rel="nofollow">Cotlib Library</a>)]]></description>
			<pubDate>Fri, 17 Sep 2010 17:19:55 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26138]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[General best practice is to put Javascript in the footer, but in this case it won't hurt if you put it in the header instead.]]></description>
			<pubDate>Fri, 17 Sep 2010 01:39:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26126]]></link>
		</item>
		<item>
			<title>urlkiller</title>
			<description><![CDATA[@Koradhil<br />
do you really need to put that in the footer if it is encapsuled in a document ready function?<br />
as i understand it the doc ready function is there for implementing it in the header.]]></description>
			<pubDate>Fri, 17 Sep 2010 01:37:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26125]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[Works now, cheers!<br />
<br />
Edit: Gives another problem with pages. When i'm viewing for example the page: page.php?id=44, the button for page page.php?id=4 is also highlighted.. Any ideas?<br />
<br />
Thanks.]]></description>
			<pubDate>Thu, 16 Sep 2010 07:32:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26117]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[Correct. You'd have to use indexOf for that:<br />
<br />
<div class="highlight"><pre class="js">&lt;script type=&quot;text/javascript&quot;&gt; 
$(document).ready(function(){
    $('#cssmenu a').each(function(){
        if('{PHP.out.uri}'.indexOf($(this).attr('href')) == 0) { $(this).addClass('active'); }
        if($(this).attr('href') == 'index.php' &amp;&amp; '{PHP.out.uri}' == '') { $(this).addClass('active'); }
    });
});
&lt;/script&gt;</pre></div>
<br />
indexOf looks for the first instance and returns its position. Position 0 is at the beginning of the string.]]></description>
			<pubDate>Thu, 16 Sep 2010 06:57:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26116]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[Works like a charm, thank you!<br />
<br />
Edit: Got an issue - when viewing for example a topic in the forums, it doesn't keep the Forums button highlighted?]]></description>
			<pubDate>Thu, 16 Sep 2010 04:26:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26115]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[I use Javascript to achieve this. Put this in footer.tpl:<br />
<br />
<div class="highlight"><pre class="js">&lt;script type=&quot;text/javascript&quot;&gt; 
$(document).ready(function(){
    $('#cssmenu a').each(function(){
        if($(this).attr('href') == '{PHP.out.uri}') { $(this).addClass('active'); }
        if($(this).attr('href') == 'index.php' &amp;&amp; '{PHP.out.uri}' == '') { $(this).addClass('active'); }
    });
});
&lt;/script&gt;</pre></div>
<br />
Use .active in your css for the currently active menu item. You can replace 'index.php' in the second if statement with the link of your default page (index) if you need to. See my website for an example.]]></description>
			<pubDate>Thu, 16 Sep 2010 00:44:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26114]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[I've got a little problem with my CSS menu.<br />
<br />
I'd like to have the link that is active highlighted, for example when somebody is on the Forums page, the Forum link is highlighted.<br />
<br />
My html at the moment:<br />
        <br />
&lt;div class=&quot;cssmenu&quot;&gt;<br />
 &lt;ul id=&quot;cssmenu&quot;&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;index.php&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=contactus&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=4&quot;&gt;Roster&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;forums.php&quot;&gt;Forums&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=5&quot;&gt;Gameserver&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;list.php?c=files&quot;&gt;Files&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;plug.php?e=search&quot;&gt;Search&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=39&quot;&gt;Chat&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;page.php?id=44&quot;&gt;Recruitment&lt;/a&gt;&lt;/li&gt;<br />
  &lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;http://www.dev-enter.net/stats/&quot; target=&quot;_blank&quot;&gt;Stats&lt;/a&gt;&lt;/li&gt;<br />
 &lt;/ul&gt;<br />
&lt;/div&gt;<br />
<br />
I was thinking using for example:<br />
&lt;li&gt;&lt;a href=https://www.cotonti.com/&quot;index.php&quot; id=&quot;current&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
<br />
It does highlight the button, but it will keep it highlighted on different pages aswell, probably because the menu is not in seperate files, but all in the header.tpl.<br />
<br />
Any ideas how to fix this?]]></description>
			<pubDate>Wed, 15 Sep 2010 23:16:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=5906&d=0#post26113]]></link>
		</item>
	</channel>
</rss>