<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">ExpressionEngine Community Forums</title>
    <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/" />
    <link rel="self" type="application/atom+xml" href="http://expressionengine.com/forums/atom/" />
    <updated></updated>
    <rights>Copyright (c) 2008</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.3">ExpressionEngine</generator>
    <id>tag:expressionengine.com,2008:09:06</id>


    <entry>
      <title>Knowing how many times a module has been used in a template&#8230;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/89709/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.89709</id>
      <published>2008-08-31T13:46:47Z</published>
      <updated></updated>
      <author><name>Daniel H.</name></author>
      <content type="html">
      <![CDATA[
        <p>Howdy,
</p>
<p>
I&#8217;m working on developing a Google Maps plug-in, which is working quite well. What I currently need, though, is some way to know how many times my module has been called on the same page. I&#8217;ve searched this site all through, and haven&#8217;t found a thing.
</p>
<p>
The general gist is this:
<br />
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mapper id</span><span style="color: #007700">=</span><span style="color: #DD0000">"testMap1"</span><span style="color: #0000BB">&#125;<br /><br />&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mapper id</span><span style="color: #007700">=</span><span style="color: #DD0000">"testMap1"</span><span style="color: #0000BB">&#125;<br /><br />&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">mapper id</span><span style="color: #007700">=</span><span style="color: #DD0000">"testMap2"</span><span style="color: #0000BB">&#125;</span>
</code></div><p>
</p>
<p>
I want to know, when the mapper module is called, how many times it&#8217;s been previously run.
</p>
<p>
Perhaps a global of some kind? I tried declaring one, but it didn&#8217;t seem to persist.
</p>
<p>
Thanks for the input!
</p>
<p>
-Daniel
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Freeform &amp;lt;select&amp;gt; fields ignoring required on form validation</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/73150/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.73150</id>
      <published>2008-03-03T11:48:02Z</published>
      <updated>2008-03-03T11:48:27Z</updated>
      <author><name>miuz01</name></author>
      <content type="html">
      <![CDATA[
        <p>I am using the solspace freeform module, and am having issues getting the select field to be a required field.&nbsp; My input fields work fine, if I click submit without filling them out then the error will tell which field needs to be filled out.&nbsp; But on my select field, I have made it a required field, and if I hit submit without making a selection the form goes through without it recognizing it was a required field.&nbsp; Here is the code I used for the select field:
</p>
<p>
&#123;exp:freeform:form form_name="&#8221; return="&#8221; notify="&#8221; template="&#8221; required="person_type"&#125;
</p>
<p>
 &lt;select name="person_type[]" /&gt;
<br />
&lt;option value="null"&gt;Choose your type&lt;/option&gt;
<br />
&lt;option value="student"&gt;Student&lt;/option&gt;
<br />
&lt;option value="parent"&gt;Parent&lt;/option&gt;
<br />
&lt;option value="counselor"&gt;Counselor&lt;/option&gt;
<br />
&lt;option value="advisor"&gt;Advisor&lt;/option&gt;
<br />
&lt;option value="mentor"&gt;Mentor&lt;/option&gt;
<br />
&lt;option value="educator"&gt;Educator&lt;/option&gt;
<br />
&lt;/select&gt;
</p>
<p>
Freeform module control panel:
</p>
<p>
Field Name: person_type
<br />
Field Type: Text input
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>How to parse inner Categories and Weblog tags in custom module</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/89770/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.89770</id>
      <published>2008-09-01T08:57:35Z</published>
      <updated></updated>
      <author><name>agun</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi all, sorry if this has been covered before, but I can&#8217;t seem to find the answer anywhere.&nbsp; What I am doing is creating a custom module that will submit a form which captures data into a custom database table (therefore needs to be a module?!?!).&nbsp; This is all looking good, except when I need to add a &#8220;exp:weblog:categories&#8221; or &#8220;exp:weblog:entries&#8221; tag nested in my custom tag.&nbsp; The weblog tag is not being parsed.
</p>
<p>
So basically the code is:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">my_module</span><span style="color: #007700">:</span><span style="color: #0000BB">form&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">categories weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"products" </span><span style="color: #0000BB">style</span><span style="color: #007700">=</span><span style="color: #DD0000">"linear"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;categories_title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">categories&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">my_module</span><span style="color: #007700">:</span><span style="color: #0000BB">form&#125;</span>
</code></div><p> 
</p>
<p>
The &#8220;my_module&#8221; stuff is working, but of course the weblog:categories tag is not being parsed.
</p>
<p>
I am grabbing the &#8220;tagdata&#8221; in the &#8220;my_module&#8221; code using:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">$tagdata </span><span style="color: #007700">= </span><span style="color: #0000BB">$TMPL</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">tagdata</span><span style="color: #007700">;</span>
</code></div><p>
</p>
<p>
Clearly I need to parse it somehow...but I am not sure how.
</p>
<p>
Any thoughts/suggestions?
</p>
<p>
Cheers Andrew&#8230;
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>How to access query results in JavaScript&#63;</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/89288/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.89288</id>
      <published>2008-08-26T23:43:28Z</published>
      <updated>2008-08-26T23:47:58Z</updated>
      <author><name>geetika</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,
</p>
<p>
I have created a new module in EE and in mod.newmodule.php I am executing a query. After processing the query, the results create an array. I need to use this array in JavaScript of the template of the calling module.
<br />
How can I access this array created in mod.newmodule.php through the javascript of the template?
</p>
<p>
Please help.
</p>
<p>
Thanks.
</p>
<p>
<span style="font-size:9px;"><b>Mod Edit:</b> <i>Moved to the Modules: Technical Assistance forum.</i></span>
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Extending the Members Module</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/76621/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.76621</id>
      <published>2008-04-12T20:02:16Z</published>
      <updated></updated>
      <author><name>Komra Moriko</name></author>
      <content type="html">
      <![CDATA[
        <p>How do I extend the members module. There is zero documentation in the developers section on how the members module accomplishes even half of what it does.
</p>
<p>
<img src="http://ellislab.com/images/smileys/longface.gif" width="19" height="19" alt="long face" style="border:0;" />
</p>
<p>
I know because I read the entire developers guide including the module tutorial and the code for the Fortunes module - which incidentally does not cover half of the types of functionality that the members module provides. I need to add an extra section to the members&#8217; public facing control panel. For example, the member control panel lets a member Edit Profile, Edit Avatar, Edit Signature, etc. I need to be able to add a new section Edit Foo, also with a form, and then be able to process that form. How do I do this?
</p>
<p>
Where do I setup the system that links e.g. http://site.com/index.php/member/foo/ to the proper display function for that form? http://site.com/index.php/member/register/ obviously uses mod.member_register.php which makes sense given the name but still, there is absolutely no documentation covering the fact that this is how modules work. Besides that the constructor for the Member_register class is blank. Instead the form is generated by the registration_form() function and there&#8217;s no documentation regarding how in the world http://site.com/index.php/member/register/ knows that it should run the registration_form() function. Not only that but then there&#8217;s the backend Admin section. There is nothing in the documentation explaining how to add sections to the Admin tab. In the Admin tab there is an area for member profile templates:
</p>
<p>
CP Home  &gt;  Admin  &gt;  Members and Groups  &gt;  Member Profile Templates  &gt;  Default
</p>
<p>
but there is no documentation for this section, what it does, what it&#8217;s for, how to use it, and there&#8217;s no way to add or remove templates or hook these templates to specific URLs.
</p>
<p>
What gives?&nbsp; <img src="http://ellislab.com/images/smileys/angry.gif" width="19" height="19" alt="angry" style="border:0;" /> 
</p>
<p>
By the way, the <a href="http://expressionengine.com/docs/development/example.zip">example.zip</a> was corrupted when I tried to download it. I downloaded it a few different times using a few different methods. The example.zip that comes with the downloadable module documentation is fine. The one that is linked directly off of the online version is corrupted.
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Duplicate in$_POST</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/69190/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.69190</id>
      <published>2008-01-18T00:31:26Z</published>
      <updated>2008-01-18T07:36:24Z</updated>
      <author><name>vinci</name></author>
      <content type="html">
      <![CDATA[
        <p>Hey all,
<br />
I have something weird happening here. In a module I have developed, I have a Form posting a series of checkboxes to $_POST as an array.. ie:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">$r </span><span style="color: #007700">.= </span><span style="color: #0000BB">$DSP</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">input_checkbox</span><span style="color: #007700">(</span><span style="color: #DD0000">"groups&#91;&#93;"</span><span style="color: #007700">, </span><span style="color: #0000BB">$row&#91;</span><span style="color: #DD0000">'id'</span><span style="color: #0000BB">&#93; </span><span style="color: #007700">, </span><span style="color: #0000BB">$selected </span><span style="color: #007700">).</span><span style="color: #0000BB">NBS</span><span style="color: #007700">.</span><span style="color: #0000BB">$row&#91;</span><span style="color: #DD0000">'cat_name'</span><span style="color: #0000BB">&#93;</span><span style="color: #007700">;</span>
</code></div><p>
</p>
<p>
as you can see the checkboxes are posting as an array 
<br />
The output $POST array contains the groups array pefectly like this:
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">groups&#91;&#93; </span><span style="color: #007700">=&gt; array(</span><span style="color: #0000BB">&#91;0&#93;</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">123</span><span style="color: #007700">, </span><span style="color: #0000BB">&#91;1&#93;</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">456</span><span style="color: #007700">, </span><span style="color: #0000BB">&#91;2&#93;</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">789</span><span style="color: #007700">)</span>
</code></div><p>
</p>
<p>
thats perfect, but for some reason it is also appending , and auto-incrementing it seems, separate values at the end of the $_POST array like so: 
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">&#91;groups_0&#93;</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">123 &#91;groups_1&#93;</span><span style="color: #007700">=&gt;</span><span style="color: #0000BB">456 &#91;groups_2&#93;</span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">789</span>
</code></div><p>
</p>
<p>
which is weird.
</p>
<p>
The function is fairly simple, so i wont post it here, ive looked at the 3 lines very closely and no, theres nothing that could be adding to $POST like that.
</p>
<p>
Im wondering if its a bug or maybe something that is supposed to happen when using $DSP-&gt;input_checkbox?
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Getting GET key/values with php5</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/88129/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.88129</id>
      <published>2008-08-13T16:04:24Z</published>
      <updated></updated>
      <author><name>maneesh</name></author>
      <content type="html">
      <![CDATA[
        <p>Continuing the thread from Technical Support topic 
<br />
http://expressionengine.com/forums/viewthread/88048/
</p>
<p>
doing two changes you suggested made it work. The ‘?’ after index.php was also necessary.
</p>
<p>
Now, I am at next issue,
</p>
<p>
The URL following a custom form submit is: 
<br />
http://www.example_site.com/mytemplategroup/myfunction?e=expression&amp;f=0
</p>
<p>
In a template, I call &#123;exp:mymodule:myfunction&#125;
</p>
<p>
In the constructor of ‘mymodule’, I try to access the parameter ‘e’ passed on the URL (a form submit through GET method)
</p>
<p>
$this-&gt;e = $IN-&gt;clean_input_data($IN-&gt;GBL(’e’, ‘GET’));
</p>
<p>
I get nothing assigned to $this-&gt;e.
</p>
<p>
This was also working before switching to PHP5.
</p>
<p>
Thanks for your help!
</p>
<p>
Regards, 
<br />
Maneesh
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Provide own hooks</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/87059/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.87059</id>
      <published>2008-08-02T18:50:13Z</published>
      <updated></updated>
      <author><name>mweichert</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello, 
</p>
<p>
In my plugin, I want to provide a hook that extensions can implement. For example, one of the hooks is the ability to rewrite the output generated by the plugin.
</p>
<p>
If I have a simple plugin like this:
<br />
</p><div class="codeblock"><code>
<span style="color: #007700">class </span><span style="color: #0000BB">MyPlugin<br />&#123;<br />&nbsp;&nbsp;</span><span style="color: #007700">function </span><span style="color: #0000BB">say_hello</span><span style="color: #007700">()<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$out </span><span style="color: #007700">= </span><span style="color: #DD0000">"Hello"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return </span><span style="color: #0000BB">$out</span><span style="color: #007700">;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#125;<br />&#125;</span>
</code></div><p>
</p>
<p>
I would think to add a custom hook, I&#8217;d change the say_hello function to look like this:
<br />
</p><div class="codeblock"><code>
<span style="color: #007700">function </span><span style="color: #0000BB">say_hello</span><span style="color: #007700">()<br /></span><span style="color: #0000BB">&#123;<br />&nbsp;&nbsp;</span><span style="color: #007700">global </span><span style="color: #0000BB">$EXT</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$out </span><span style="color: #007700">= </span><span style="color: #DD0000">"Hello"</span><span style="color: #007700">;<br /><br />&nbsp;&nbsp;</span><span style="color: #0000BB">$out </span><span style="color: #007700">= </span><span style="color: #0000BB">$EXT</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">call_extension</span><span style="color: #007700">(</span><span style="color: #DD0000">'my_custom_hook'</span><span style="color: #007700">, </span><span style="color: #0000BB">$out</span><span style="color: #007700">);<br /><br />&nbsp;&nbsp;return </span><span style="color: #0000BB">$out</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">&#125;</span>
</code></div><p>
</p>
<p>
What happens though, is that </p><div class="codeblock"><code>
<span style="color: #0000BB">$EXT</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">call_extension</span><span style="color: #007700">(</span><span style="color: #DD0000">'my_custom_hook'</span><span style="color: #007700">, </span><span style="color: #0000BB">$out</span><span style="color: #007700">);</span>
</code></div><p> doesn&#8217;t return anything if no extension has been developed to modify $out.
</p>
<p>
Looking through the source code of EE, I couldn&#8217;t really see how it is supposed to be done. Am I supposed to check if $out has been set, or am I supposed to pass $out by reference, or ...?
</p>
<p>
Thanks for your help!
</p>
<p>
Cheers,
<br />
Mike
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Solspace Rating Module 2.1.2: Rating Rev Stats not working</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/87542/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.87542</id>
      <published>2008-08-07T11:24:20Z</published>
      <updated>2008-08-07T11:25:02Z</updated>
      <author><name>Carlo Poso</name></author>
      <content type="html">
      <![CDATA[
        <p>Hi,
<br />
I&#8217;ve managed to get to work &#123;exp:rating:insert_rating_rev&#125;.
<br />
Values are stored correctly inside the database (I&#8217;ve checked through phpMyAdmin). 
</p>
<p>
What is not working is the &#123;exp:rating:rating_rev_stats&#125;, which should pull out the values of reviews done by users on the website.
</p>
<p>
Here&#8217;s the code:</p><div class="codeblock"><code>
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">div </span><span style="color: #007700">class=</span><span style="color: #DD0000">"rating"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;stars&#125;&#123;rating&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">stars&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">div</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">h5 </span><span style="color: #007700">class=</span><span style="color: #DD0000">"reviews"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;review_title&#125;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">span</span><span style="color: #007700">&gt;, </span><span style="color: #0000BB">&#123;rating_date format</span><span style="color: #007700">=</span><span style="color: #DD0000">"%m/%d/%y"</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">span</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">h5</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">span </span><span style="color: #007700">class=</span><span style="color: #DD0000">"author"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">by </span><span style="color: #007700">&lt;</span><span style="color: #0000BB">strong</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;name&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">strong</span><span style="color: #007700">&gt; </span><span style="color: #0000BB">&#123;if citta</span><span style="color: #007700">!=</span><span style="color: #DD0000">""</span><span style="color: #0000BB">&#125;</span><span style="color: #007700">(</span><span style="color: #0000BB">&#123;citta&#125;</span><span style="color: #007700">)</span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">span</span><span style="color: #007700">&gt;<br />&lt;</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;review_area&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br /><br />&lt;</span><span style="color: #0000BB">p </span><span style="color: #007700">class=</span><span style="color: #DD0000">"useful"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Found this review interesting</span><span style="color: #007700">? &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://claraegigipadovani.orange021.com/index.php/sito/vota-recensione/&#123;rating_id&#125;/"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">img src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/btn-yes.png" </span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"YES"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt; &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"http://claraegigipadovani.orange021.com/index.php/sito/vota-recensione/&#123;rating_id&#125;/no/"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">img src</span><span style="color: #007700">=</span><span style="color: #DD0000">"/images/btn-no.png" </span><span style="color: #0000BB">alt</span><span style="color: #007700">=</span><span style="color: #DD0000">"NO"</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">p</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">rating_rev_stats rating_id</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;rating_id&#125;"</span><span style="color: #0000BB">&#125;<br />&#123;rating_id&#125;<br />This review has received &#123;y&#125; </span><span style="color: #007700">(</span><span style="color: #0000BB">&#123;percent_y&#125;</span><span style="color: #007700">%) </span><span style="color: #0000BB">thumbs up votes </span><span style="color: #007700">and </span><span style="color: #0000BB">&#123;n&#125; </span><span style="color: #007700">(</span><span style="color: #0000BB">&#123;percent_n&#125;</span><span style="color: #007700">%) </span><span style="color: #0000BB">thumbs down votes out of a total of &#123;total&#125; votes</span><span style="color: #007700">.<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">rating_rev_stats&#125;<br /><br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">rating</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;</span>
</code></div><p>
</p>
<p>
What I get on my website is:
</p>
<p>
<i>This review has received 0 (0%) thumbs up votes and 0 (0%) thumbs down votes out of a total of 0 votes.</i> 
</p>
<p>
...although I&#8217;ve easily managed to vote for entries.
</p>
<p>
Does anybody have a clue (Solspace guys?)?
</p>
<p>
Carlo
</p>
<p>
P.S. I&#8217;m using EE1.6.4
</p>
      ]]>
      </content>
    </entry>

    <entry>
      <title>Disable GZIP Compression in module</title>
      <link rel="alternate" type="text/html" href="http://expressionengine.com/forums/viewthread/87024/" />      
      <id>tag:expressionengine.com,2008:forums/viewthread/.87024</id>
      <published>2008-08-02T07:02:25Z</published>
      <updated></updated>
      <author><name>evasion</name></author>
      <content type="html">
      <![CDATA[
        <p>Hello,
</p>
<p>
I&#8217;m using EE with GZip Compression activated and the whole site is working fine except one part : 
</p>
<p>
I&#8217;ve some flash application that communicate with an EE module using POST : 
<br />
- Flash send data to PHP module using $_POST
<br />
- PHP Parse it and reply using : 
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #007700">echo </span><span style="color: #DD0000">"&amp;valid=true"</span><span style="color: #007700">; </span><span style="color: #FF8000">// If it's valid<br /></span><span style="color: #007700">echo </span><span style="color: #DD0000">"&amp;valid=false&amp;error=my_error"</span><span style="color: #007700">; </span><span style="color: #FF8000">// If it's not valid</span>
</code></div><p>
</p>
<p>
There is some weird problem with this : when trying on my development server everything works fine, but when on production server (with gzip support of course) it&#8217;s broken, but other pages are working fine.
</p>
<p>
After a few (long) search I&#8217;ve found that when disabling Gzip compression in the control panel, my flash application is working fine.
</p>
<p>
Altough it might be a solution, I would prefer to keep gzip compression active, and simply disable it in my PHP module.
</p>
<p>
I&#8217;ve tried something like that : 
</p>
<p>
</p><div class="codeblock"><code>
<span style="color: #0000BB">$PREFS</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">ini</span><span style="color: #007700">(</span><span style="color: #DD0000">'gzip_output'</span><span style="color: #007700">) = </span><span style="color: #DD0000">'n'</span><span style="color: #007700">;</span>
</code></div><p> 
</p>
<p>
but it don&#8217;t work&#8230; So my question : is it possible to disable gzip compression just for one module or not ?
</p>
<p>
Thanks in advance for your support !
</p>
<p>
Cheers,
</p>
      ]]>
      </content>
    </entry>


</feed>