<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Calendar&#039;s filter fail with accentued letters in category</title>
		<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Calendar&#039;s filter fail with accentued letters in category</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 09:53:39 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/calendars-filter-fail-with-accentued-letters-in-category" rel="self" type="application/rss+xml" />

		<item>
			<title>puljac on "Calendar&#039;s filter fail with accentued letters in category"</title>
			<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category#post-8192</link>
			<pubDate>Wed, 28 Mar 2012 08:56:35 +0000</pubDate>
			<dc:creator>puljac</dc:creator>
			<guid isPermaLink="false">8192@http://www.themolitor.com/forums/</guid>
			<description><p>Hmmm not working for me ... this is my custom.js from themes/scripts</p>
<p>this.molitorscripts = function () {</p>
<p>	//Remove accentued letter<br />
	accentsFree = function(s){<br />
	var r=s.toLowerCase();<br />
	r = r.replace(new RegExp("[čć]",'g'),"c");<br />
	r = r.replace(new RegExp("[š]",'g'),"s");<br />
	r = r.replace(new RegExp("[ž]",'g'),"z");<br />
	r = r.replace(new RegExp("[đ]", 'g'),"d");<br />
	return r;<br />
	};</p>
<p>	//FILTER EFFECTS &#38; APPEARANCE<br />
	var filterLink = jQuery('#filter a');<br />
	filterLink.click(function(){</p>
<p>		jQuery('li.box').removeClass('hideMe');</p>
<p>		filterLink.not(this).removeClass('active');<br />
		jQuery(this).addClass('active');</p>
<p>		var activeCat = jQuery(this).html().toLowerCase();<br />
		activeCat = accentsFree(activeCat);</p>
<p>		jQuery('li.postEvent').not('li.'+ activeCat).addClass('hideMe').children().stop(true,true).animate({opacity:".1"},350);<br />
		jQuery('li.'+ activeCat).children().stop(true,true).animate({opacity:"1"},350);</p>
<p>		return false;<br />
	});<br />
	jQuery('#filter li').not(':first').prepend("/ &#160;&#160;&#160;");</p>
<p>.<br />
.<br />
.<br />
and custom.js continues<br />
....
</p></description>
		</item>
		<item>
			<title>puljac on "Calendar&#039;s filter fail with accentued letters in category"</title>
			<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category#post-8083</link>
			<pubDate>Mon, 26 Mar 2012 03:14:57 +0000</pubDate>
			<dc:creator>puljac</dc:creator>
			<guid isPermaLink="false">8083@http://www.themolitor.com/forums/</guid>
			<description><p>Great, i'm using Croatian signs like č,ć,ž,š,đ . . . will it work for that either ? </p>
<p>tnx<br />
Puljac
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Calendar&#039;s filter fail with accentued letters in category"</title>
			<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category#post-6753</link>
			<pubDate>Mon, 13 Feb 2012 13:56:57 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">6753@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for sharing!
</p></description>
		</item>
		<item>
			<title>anou on "Calendar&#039;s filter fail with accentued letters in category"</title>
			<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category#post-6729</link>
			<pubDate>Mon, 13 Feb 2012 04:04:26 +0000</pubDate>
			<dc:creator>anou</dc:creator>
			<guid isPermaLink="false">6729@http://www.themolitor.com/forums/</guid>
			<description><p>EDIT : I add to change the first and last RegExp for category composed in two (or more) words.<br />
Like this :<br />
r = r.replace(new RegExp("\\s", 'g'),"-");<br />
r = r.replace(new RegExp("\\W", 'g'),"-");</p>
<p>Not sure for the last one. To control in use.
</p></description>
		</item>
		<item>
			<title>anou on "Calendar&#039;s filter fail with accentued letters in category"</title>
			<link>http://www.themolitor.com/forums/topic/calendars-filter-fail-with-accentued-letters-in-category#post-6706</link>
			<pubDate>Sun, 12 Feb 2012 02:43:21 +0000</pubDate>
			<dc:creator>anou</dc:creator>
			<guid isPermaLink="false">6706@http://www.themolitor.com/forums/</guid>
			<description><p>Hello,<br />
If like me you're using eventure for a site other then in English, maybe you'll encountered problems with th filtering of the events in the calendar.</p>
<p>So in scripts/custom.js I put this function :<br />
line 2 :<br />
	//Remove accentued letter<br />
	accentsFree = function(s){<br />
	        var r=s.toLowerCase();<br />
	        r = r.replace(new RegExp("\\s", 'g'),"");<br />
	        r = r.replace(new RegExp("[àáâãäå]", 'g'),"a");<br />
	        r = r.replace(new RegExp("æ", 'g'),"ae");<br />
	        r = r.replace(new RegExp("ç", 'g'),"c");<br />
	        r = r.replace(new RegExp("[èéêë]", 'g'),"e");<br />
	        r = r.replace(new RegExp("[ìíîï]", 'g'),"i");<br />
	        r = r.replace(new RegExp("ñ", 'g'),"n");<br />
	        r = r.replace(new RegExp("[òóôõö]", 'g'),"o");<br />
	        r = r.replace(new RegExp("œ", 'g'),"oe");<br />
	        r = r.replace(new RegExp("[ùúûü]", 'g'),"u");<br />
	        r = r.replace(new RegExp("[ýÿ]", 'g'),"y");<br />
	        r = r.replace(new RegExp("\\W", 'g'),"");<br />
	        return r;<br />
	};<br />
Then line 29 after :<br />
        var activeCat = jQuery(this).html().toLowerCase();<br />
        activeCat = accentsFree(activeCat); </p>
<p>If that's use full for someone, it was for me ;-)
</p></description>
		</item>

	</channel>
</rss>
