<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged hit-counter</title>
<link>https://www.question2answer.org/qa/tag/hit-counter</link>
<description>Powered by Question2Answer</description>
<item>
<title>How could I display the question view count in question list?</title>
<link>https://www.question2answer.org/qa/38826/how-could-i-display-the-question-view-count-in-question-list</link>
<description>I'm using the Q2A version 1.6.3. I'm searching for the method to display the view count ( hit counter ) in home page, quesion list.&lt;br /&gt;
&lt;br /&gt;
My website is: &lt;a href=&quot;http://elearningfork12.com/&quot; rel=&quot;nofollow&quot;&gt;http://elearningfork12.com/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Help me please, I'm newbie</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/38826/how-could-i-display-the-question-view-count-in-question-list</guid>
<pubDate>Sat, 27 Sep 2014 23:12:38 +0000</pubDate>
</item>
<item>
<title>Hit Counter Plugin</title>
<link>https://www.question2answer.org/qa/11543/hit-counter-plugin</link>
<description>

&lt;p&gt;
	I have created a Hit Counter Plugin.&lt;/p&gt;


&lt;p&gt;
	Features: Counts the number of pageviews your website gets and displays it as 'x users served'.&lt;/p&gt;


&lt;p&gt;
	Installation:&lt;/p&gt;


&lt;ol&gt;
	

&lt;li&gt;
		&lt;a rel=&quot;nofollow&quot; href=&quot;http://dl.dropbox.com/u/29431110/hitcounter.zip&quot;&gt;Download the plugin&lt;/a&gt; and unzip it.&lt;/li&gt;
	

&lt;li&gt;
		Upload &lt;strong&gt;hits.txt&amp;nbsp;&lt;/strong&gt;to your parent directory (&lt;a href=&quot;http://example.com/hits.txt&quot; rel=&quot;nofollow&quot;&gt;http://example.com/hits.txt&lt;/a&gt;)&lt;/li&gt;
	

&lt;li&gt;
		Upload the&amp;nbsp;&lt;strong&gt;hitcounter&amp;nbsp;&lt;/strong&gt;folder to your plugins folder&lt;/li&gt;
	

&lt;li&gt;
		Enable it under Admin-&amp;gt;layout&lt;/li&gt;
&lt;/ol&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/11543/hit-counter-plugin</guid>
<pubDate>Thu, 29 Dec 2011 13:23:09 +0000</pubDate>
</item>
<item>
<title>Unable to write to text file</title>
<link>https://www.question2answer.org/qa/11528/unable-to-write-to-text-file</link>
<description>

&lt;p&gt;
	I am writing a hit counter plugin for Q2A. I used qa-plugin.php to register a widget module. Here is part of the code:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&lt;/p&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;$file = fopen('hits.txt','r+') or exit('Unable to open file.');&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;$current = fgets($file) + 1;&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;rewind($file);&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;fwrite($file, $current) or exit('Unable to write to file.');&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;fclose($file);&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;echo $current;&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&lt;span style=&quot;font-family:courier new,courier,monospace;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;


&lt;div&gt;
	&amp;nbsp;&lt;/div&gt;


&lt;div&gt;
	&lt;span class=&quot;Apple-style-span&quot;&gt;I am getting the error &quot;Unable to open file&quot;, even though I set the permissons to 777. Any ideas?&lt;/span&gt;&lt;/div&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/11528/unable-to-write-to-text-file</guid>
<pubDate>Wed, 28 Dec 2011 23:11:37 +0000</pubDate>
</item>
</channel>
</rss>