<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>A.cc Extension: Smiley Counter</title>
		<link>http://www.allegro.cc/forums/view/590749</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Thu, 29 Mar 2007 16:50:16 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>New a.cc javascript extension. Displays a count of the smileys found in a given thread.</p><p>To install, select all of this text (make sure to scroll down!) and copy it to your clipboard (control + C):
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td><span class="c">// Smiley counter app Version 0.3</span></td></tr><tr><td class="number">2</td><td><span class="c">//</span></td></tr><tr><td class="number">3</td><td><span class="c">// namespace: csmiley</span></td></tr><tr><td class="number">4</td><td>&#160;</td></tr><tr><td class="number">5</td><td>function csmiley_load<span class="k2">(</span><span class="k2">)</span></td></tr><tr><td class="number">6</td><td><span class="k2">{</span></td></tr><tr><td class="number">7</td><td>  var tbl <span class="k3">=</span> document.getElementById<span class="k2">(</span><span class="s">"thread-topic"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">8</td><td>&#160;</td></tr><tr><td class="number">9</td><td>  <span class="k1">if</span><span class="k2">(</span>tbl <span class="k3">=</span><span class="k3">=</span> null<span class="k2">)</span></td></tr><tr><td class="number">10</td><td>    <span class="k1">return</span><span class="k2">;</span></td></tr><tr><td class="number">11</td><td>&#160;</td></tr><tr><td class="number">12</td><td>  var imgs <span class="k3">=</span> document.getElementsByTagName<span class="k2">(</span><span class="s">"img"</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">13</td><td>  var count <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">14</td><td>  </td></tr><tr><td class="number">15</td><td>  <span class="k1">for</span><span class="k2">(</span>var i <span class="k3">=</span> <span class="n">0</span><span class="k2">;</span> i <span class="k3">&lt;</span> imgs.length<span class="k2">;</span> i<span class="k3">+</span><span class="k3">+</span><span class="k2">)</span></td></tr><tr><td class="number">16</td><td>    <span class="k1">if</span><span class="k2">(</span>imgs<span class="k3">&lt;</span>i&gt;.src.indexOf<span class="k2">(</span><span class="s">"/forums/smileys"</span><span class="k2">)</span> <span class="k3">!</span><span class="k3">=</span> <span class="k3">-</span><span class="n">1</span><span class="k2">)</span></td></tr><tr><td class="number">17</td><td>      count<span class="k3">+</span><span class="k3">+</span><span class="k2">;</span></td></tr><tr><td class="number">18</td><td>  </td></tr><tr><td class="number">19</td><td>  var td <span class="k3">=</span> tbl.getElementsByTagName<span class="k2">(</span><span class="s">"td"</span><span class="k2">)</span><span class="k2">[</span><span class="n">0</span><span class="k2">]</span><span class="k2">;</span></td></tr><tr><td class="number">20</td><td>  </td></tr><tr><td class="number">21</td><td>  td.innerHTML <span class="k3">+</span><span class="k3">=</span> <span class="s">' &lt;img src="http://www.allegro.cc/forums/smileys/lipsrsealed.gif"&gt; x'</span> <span class="k3">+</span> count<span class="k2">;</span></td></tr><tr><td class="number">22</td><td><span class="k2">}</span></td></tr><tr><td class="number">23</td><td>&#160;</td></tr><tr><td class="number">24</td><td>doc.add_onLoad<span class="k2">(</span>csmiley_load<span class="k2">)</span><span class="k2">;</span></td></tr></tbody></table></div></div><p>
Then navigate to the extensions page and select the bottom text box with your mouse and paste (control + V). You must be logged in to navigate to this page.  </p><p>Please note that you may be required to refresh a couple of times or perform a hard refresh in your browser (the F5 key for firefox).</p><p>Click save and enjoy!</p><p><span class="remote-thumbnail"><span class="json">{"name":"591683","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/c\/1cc861d4fd831ee10a80b26f2934d274.png","w":721,"h":553,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/c\/1cc861d4fd831ee10a80b26f2934d274"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/1/c/1cc861d4fd831ee10a80b26f2934d274-240.jpg" alt="591683" width="240" height="184" /></span><br /><sub>

Changelog
<b>Version 0.2</b>:
&lt;ul&gt;
&lt;li&gt;Added a space before the smiley counter&lt;/li&gt;
&lt;/ul&gt;
<b>Version 0.3</b>:
&lt;ul&gt;
&lt;li&gt;Fixed the error message for non-thread a.cc pages&lt;/li&gt;
&lt;/ul&gt;
</sub>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Wed, 28 Mar 2007 03:55:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hm. Doesn&#39;t seem to work for me. Is there an option I need to have on to enable the custom JS?</p><p>Edit: Actually, I just decided to try refreshing and it worked!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kibiz0r)</author>
		<pubDate>Wed, 28 Mar 2007 04:12:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It seems it&#39;s count is a little off here:</p><p><span class="remote-thumbnail"><span class="json">{"name":"591684","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f3e1425c473ad2db2a728ffd1dd2c5f0.png","w":383,"h":227,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/3\/f3e1425c473ad2db2a728ffd1dd2c5f0"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/f/3/f3e1425c473ad2db2a728ffd1dd2c5f0-240.jpg" alt="591684" width="240" height="142" /></span>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Wed, 28 Mar 2007 04:39:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Its counting the 16 smileys below your new-post box.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Wed, 28 Mar 2007 04:54:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Its counting the 16 smileys below your new-post box.
</p></div></div><p>

Ah, of course.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Wed, 28 Mar 2007 05:08:37 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Nice work. Is this your full time job now days? </p><p>I would like to know how many smileys I&#39;m using. I&#39;m far too friendly.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kentl)</author>
		<pubDate>Wed, 28 Mar 2007 08:29:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Completely unrelated but you know what would be cool is if when someone posted to a thread I cared about I would get an IM and my IM&#39;s could be used as posts back to the forum. Or maybe not so cool, but it sounds like an interesting idea. Someone make that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Wed, 28 Mar 2007 08:37:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>that&#39;s very useful:P
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (le_y_mistar)</author>
		<pubDate>Wed, 28 Mar 2007 20:47:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>So, like...</p><p><tt>AllegroForum: Kibiz0r has posted in <a href="http://allegro.cc/forums/thread/590749">A.cc Extension: Smiley Counter</a>
<b>&quot;Hey, look at me, I&#39;m making a post.&quot;</b>
Make a response here.</tt></p><p>?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kibiz0r)</author>
		<pubDate>Thu, 29 Mar 2007 00:56:18 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I would make it, but I doubt Matt would let it exist with the extra bandwidth it would require.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ImLeftFooted)</author>
		<pubDate>Thu, 29 Mar 2007 02:06:42 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>If we were going to go that route, we might as well just use IRC and periodically dump a log of it on the site.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Kibiz0r)</author>
		<pubDate>Thu, 29 Mar 2007 08:51:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
I would make it, but I doubt Matt would let it exist with the extra bandwidth it would require.
</p></div></div><p>What extra bandwidth? It&#39;s one client looking at the recent threads page.</p><p>It&#39;s not hard to do, really. Just get a bot to harvest all the posts made to the site, then examine triggers set by users. Create an AIM account for the bot to use, and have clients add it to their buddy lists. In order to allow replying, clients have to provide their username and password to the bot.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Thu, 29 Mar 2007 16:50:16 +0000</pubDate>
	</item>
</rss>
