<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.phpmix.org" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>phpMiX.org - Open Source eXperiments</title>
 <link>http://www.phpmix.org</link>
 <description>phpMiX.org is the home of Markus&#039; Open Source eXperiments, also focussed on discussion of topics related to web design and development.</description>
 <language>en</language>
<item>
 <title>Total page hits/unique visits snippet</title>
 <link>http://www.phpmix.org/story/total_page_hits_unique_visits_snippet</link>
 <description>&lt;p&gt;I just thought it would be nice to share how do I display the total page hits and unique visits counter on this site&#039;s footer.&lt;/p&gt;

&lt;p&gt;The following is a small code snippet that you can place wherever you wish, for instance on a block or a PHP template. Of course, you can change the message or customize the look to suit your needs. :-)&lt;/p&gt;

&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color:#000000&quot;&gt;
&lt;span style=&quot;color:#0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#606060&quot;&gt;//&amp;nbsp;please,&amp;nbsp;enter&amp;nbsp;to&amp;nbsp;view&amp;nbsp;the&amp;nbsp;snippet&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;
&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;

&lt;p&gt;It uses the Drupal functions &lt;a href=&quot;http://api.drupal.org/api/4.7/function/variable_get&quot;&gt;variable_get&lt;/a&gt; and &lt;a href=&quot;http://api.drupal.org/api/4.7/function/variable_set&quot;&gt;variable_set&lt;/a&gt; to store the data. There&#039;s no admin interface to manage these variables. If you want to modify or remove them, you need to edit the drupal variables table.&lt;/p&gt;

&lt;p&gt;Functions used to format the counter: (PHP) &lt;a href=&quot;http://www.php.net/number_format&quot;&gt;number_format&lt;/a&gt; and (Drupal) &lt;a href=&quot;http://api.drupal.org/api/4.7/function/t&quot;&gt;t&lt;/a&gt; and &lt;a href=&quot;http://api.drupal.org/api/4.7/function/format_date&quot;&gt;format_date&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.phpmix.org/story/total_page_hits_unique_visits_snippet&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/total_page_hits_unique_visits_snippet#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <category domain="http://www.phpmix.org/topics/web_development/php">PHP</category>
 <pubDate>Sat, 09 Sep 2006 00:16:30 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">158 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Busy IRL, but happier than ever</title>
 <link>http://www.phpmix.org/story/busy_irl_but_happier_than_ever</link>
 <description>&lt;p&gt;I would like to mention that I&#039;m very busy in real life these days, I haven&#039;t had the time to produce new content here at phpMiX.org since July and I presume it will be that way for the next couple of months or so. I hope to have the time to get back as soon as possible.&lt;/p&gt;
&lt;p&gt;I have recently changed my day job, it is now my first job directly related to internet, at &lt;a href=&quot;http://www.meristation.com&quot;&gt;meristation.com&lt;/a&gt;. It&#039;s a games related magazine (all platforms) in spanish, with more than 1.5 million unique visitors per month, which is about to &lt;a href=&quot;http://www.alexa.com/data/details/main?q=&amp;amp;url=meristation.com&quot;&gt;cross the 2000 rank at Alexa&lt;/a&gt;, a challenge.&lt;/p&gt;
&lt;p&gt;I&#039;m taking over all technical matters such as system administration (there are several web servers behind a load balancer and a proxy cache, also several mysql servers), but also site development (phpBB based forums and a proprietary CMS that, well, I&#039;m planning to migrate sometime to, prolly, Drupal).&lt;/p&gt;
&lt;p&gt;I&#039;m very, very happy. It is also closer to home than I could have never imagined (just at a 5 minutes walk), which means I may still have some time for my wife/kids :)&lt;/p&gt;
&lt;p&gt;Just 2 months later...&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.phpmix.org/story/busy_irl_but_happier_than_ever&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/busy_irl_but_happier_than_ever#comment</comments>
 <category domain="http://www.phpmix.org/topics/personal">Personal</category>
 <pubDate>Sat, 02 Sep 2006 12:48:25 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">157 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Drupal page titles like breadcrumbs</title>
 <link>http://www.phpmix.org/story/drupal_page_titles_like_breadcrumbs</link>
 <description>&lt;p&gt;The page title is one of the most important pieces of information that search engines display on their results page, for any given search query. Choosing the right title for your pages, articles (or posts of any type) is probably a key factor that may lead users to choose your site ...or just jump to somewhere else.&lt;/p&gt;

&lt;p&gt;By default, Drupal displays the site name and the page title, which is nice. However, any given page title you need to write is probably based on the context where it is published. So that alone might be misleading if it is not seen within the correct context. That is, in some circumstancies (say a book page, taxonomy based reports, etc.) only the title might not be enough.&lt;/p&gt;

&lt;p&gt;On the other hand, Drupal has another pretty nifty feature, the ability to build breadcrumbs based on context. That&#039;s almost perfect, for what I was trying to accomplish. All we need to do is build the page title based on the current active breadcrumb and append the page title.&lt;/p&gt;

&lt;p&gt;I thought I could share the code snippet I&#039;m using on this site, so you may try it and see if such a small change can be translated into more visits coming from search engine queries.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.phpmix.org/story/drupal_page_titles_like_breadcrumbs&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/drupal_page_titles_like_breadcrumbs#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <category domain="http://www.phpmix.org/topics/web_development/search_engines">Search engines</category>
 <pubDate>Thu, 29 Jun 2006 18:07:36 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">156 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Theming the Akismet spam counter</title>
 <link>http://www.phpmix.org/story/theming_the_akismet_spam_counter</link>
 <description>&lt;p&gt;If you are happy with the job being done by Akismet, then you may wish to display a link back to the &lt;a href=&quot;http://akismet.com&quot;&gt;Akismet&lt;/a&gt; site. To do so, the &lt;a href=&quot;/projects/drupal/4_7/akismet&quot;&gt;Akismet module for Drupal&lt;/a&gt; comes with the &quot;akismet spam counter&quot; block and a number of options that you can use to customize how it looks. There are also some hidden features behind this block that I would like to document here. First, I would like to mention the obvious features, then I&#039;ll try to describe how is it possible to display this information exactly as you wish.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.phpmix.org/story/theming_the_akismet_spam_counter&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/theming_the_akismet_spam_counter#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <pubDate>Wed, 21 Jun 2006 00:42:49 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">154 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Akismet module v1.1.2 for Drupal 4.7</title>
 <link>http://www.phpmix.org/story/akismet_module_v1_1_2_for_drupal_4_7</link>
 <description>&lt;p&gt;As soon as version 1.1.0 was released this site was visited by a nice spambot and I realized that there were a couple of minor bugs in the spambot detection code. Rather than waiting for some time to see if more bugs arise I decided to fix and release it asap. Those of you who are running v1.1.0, all you need to do is update the script akismet.module with the new one, which makes the upgrade path really simple. Hence &lt;a href=&quot;/projects/drupal/4_7/akismet&quot;&gt;version 1.1.2 is out&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Changelog:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Fixed bug: Do not apply anti-spambot checks if there have already been errors detected in the form.&lt;/li&gt;
  &lt;li&gt;Fixed bug: Do not check for empty body/mail in anti-spambot prevention code.&lt;/li&gt;
  &lt;li&gt;Added a function to expand the SQL query used to match spambots. This is hopefully better, for debugging purposes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Installation and upgrade instructions are provided in the file &lt;a href=&quot;http://phpmix.cvs.sourceforge.net/phpmix/drupal/modules/akismet/INSTALL.txt?revision=1.5&amp;amp;view=markup&quot;&gt;INSTALL.txt&lt;/a&gt; included in the package. Only the script akismet.module has been changed since version 1.1.0.&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/akismet_module_v1_1_2_for_drupal_4_7#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <pubDate>Tue, 20 Jun 2006 16:38:32 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">155 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Akismet module v1.1.0 for Drupal 4.7</title>
 <link>http://www.phpmix.org/story/akismet_module_v1_1_0_for_drupal_4_7</link>
 <description>&lt;p&gt;Although it took me a bit more time than expected, I&#039;m happy to say that &lt;a href=&quot;http://www.phpmix.org/projects/drupal/4_7/akismet&quot;&gt;Akismet module version 1.1.0 for Drupal 4.7&lt;/a&gt; is here.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Changelog:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Added experimental feature: anti-spambot options to prevent from Denial of Service (DoS) caused by certain spambots.&lt;/li&gt;
&lt;li&gt;Rewritten moderation queue. It is now a bit more powerful, allowing operations against multiple items.&lt;/li&gt;
&lt;li&gt;Code related to admin and cron has been moved to external files which are only loaded when needed. This is to minimize resource consumption during normal site operation.&lt;/li&gt;
&lt;li&gt;Prevent from sending e-mail notifications to the same user who has written the content.&lt;/li&gt;
&lt;li&gt;Removed unnecessary code in hook_install.&lt;/li&gt;
&lt;li&gt;Added a couple of columns to the {akismet_spam_marks} table to speed up some queries. Requires running http://site/update.php&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For further information, please check out the files &lt;a href=&quot;http://phpmix.cvs.sourceforge.net/phpmix/drupal/modules/akismet/README.txt?revision=1.5&amp;amp;view=markup&quot;&gt;README.txt&lt;/a&gt; and &lt;a href=&quot;http://phpmix.cvs.sourceforge.net/phpmix/drupal/modules/akismet/INSTALL.txt?revision=1.4&amp;amp;view=markup&quot;&gt;INSTALL.txt&lt;/a&gt; included in the package.&lt;/p&gt;
</description>
 <comments>http://www.phpmix.org/story/akismet_module_v1_1_0_for_drupal_4_7#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <category domain="http://www.phpmix.org/topics/web_development/open_source">Open source</category>
 <pubDate>Tue, 20 Jun 2006 01:38:43 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">153 at http://www.phpmix.org</guid>
</item>
<item>
 <title>phpBB 3.0 &quot;Olympus&quot; Beta 1 is here!</title>
 <link>http://www.phpmix.org/story/phpbb_3_0_olympus_beta_1_is_here</link>
 <description>&lt;p&gt;Although it has been a long road, the &lt;a href=&quot;http://www.phpbb.com/bugs/queryreports.php?mode=open&amp;amp;prj=4&quot;&gt;Olympus Bug Tracker&lt;/a&gt; was &lt;a href=&quot;http://www.phpbb.com/phpBB/viewtopic.php?t=375510&quot;&gt;officially opened&lt;/a&gt; 3 months ago ...and now, the 6th phpBB birthday has come with pretty nice present for us all, the &lt;a href=&quot;http://www.phpbb.com/phpBB/viewtopic.php?t=400283&quot;&gt;first beta has been released&lt;/a&gt;. Can&#039;t believe it? Go look yourself! ;-)&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.phpbb.com/phpBB/viewtopic.php?t=400283&quot;&gt;Official Announcement&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.phpbb.com/development/&quot;&gt;Development page at phpBB.com&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://area51.phpbb.com/phpBB/&quot;&gt;phpBB Development Board&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://www.phpmix.org/aggregator/categories/1&quot;&gt;phpBB Teams blogging about it&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It&#039;s Beta1, with &lt;a href=&quot;http://www.phpbb.com/phpBB/viewforum.php?f=46&quot;&gt;limited support&lt;/a&gt;, with no conversion/upgrade tools yet, but hey, it&#039;s Olympus and it&#039;s really coming!&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/phpbb_3_0_olympus_beta_1_is_here#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/open_source">Open source</category>
 <category domain="http://www.phpmix.org/topics/web_development/phpbb">phpBB</category>
 <pubDate>Sun, 18 Jun 2006 19:36:50 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">152 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Akismet for phpBB is coming nicely</title>
 <link>http://www.phpmix.org/story/akismet_for_phpbb_is_coming_nicely</link>
 <description>&lt;p&gt;&lt;a href=&quot;http://www.webmacster87.info/&quot;&gt;Douglas Bell&lt;/a&gt; (aka &lt;a href=&quot;http://www.phpbb.com/phpBB/profile.php?mode=viewprofile&amp;amp;u=124917&quot;&gt;Fountain of Apples&lt;/a&gt;) is working on an integration of &lt;a href=&quot;http://akismet.com&quot;&gt;Akismet&lt;/a&gt; with &lt;a href=&quot;http://www.phpbb.com&quot;&gt;phpBB&lt;/a&gt; and he has just finished the first in a series of development phases along a nice introduction on what&#039;s all about.&lt;/p&gt;
&lt;p&gt;If you&#039;re running a phpBB based board, you might want to keep an eye to the &lt;a href=&quot;http://www.phpbb.com/phpBB/viewtopic.php?t=393648&quot;&gt;development topic&lt;/a&gt; of this promising MOD. ;-)&lt;/p&gt;
</description>
 <comments>http://www.phpmix.org/story/akismet_for_phpbb_is_coming_nicely#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/phpbb">phpBB</category>
 <pubDate>Thu, 15 Jun 2006 19:24:51 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">151 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Ideas for fighting spambots</title>
 <link>http://www.phpmix.org/story/ideas_for_fighting_spambots</link>
 <description>&lt;img class=&quot;floatright&quot; src=&quot;/files/images/articles/akismet_module_logo.gif&quot; title=&quot;Akismet module for Drupal&quot; alt=&quot;Akismet module for Drupal&quot; /&gt;

&lt;p&gt;Well, the Akismet module has been &lt;a href=&quot;/story/akismet_module_v1_0_0_for_drupal_4_7&quot;&gt;released and announced today&lt;/a&gt; and I&#039;m just getting some food for testing thanks to a spammer who decided to bomb this site for a while. If you (spammer) read this I would like to thank you again for that... not only because Akismet worked like a charm, but also because you have made me think...&lt;/p&gt;

&lt;p&gt;Ok, I decided I&#039;ll finally enhance the moderator panel to convert it into a form so it will be possible to operate on several items at a time (to remove spam or simply to correct false positives sending information back to akismet). I can actually do it by a simple code snippet now, but probably akismet module users would love to see this, besides getting advantge of the current cron functionality that may remove detected spam automatically, so... expect that soon. ;-)&lt;/p&gt;

&lt;p&gt;But that&#039;s not all... what if I add an option to generate a delay (or a ban) when spam is detected, before sending the response to the spammer? Well, they may not need to wait, so... what if I add this delay (or ban) to all requests to posts made by known spammers? I&#039;m not thinking about permanent actions, just a measure to prevent from getting attacked by spambots. For permanent actions, there are other options such as .htaccess bans, Drupal access rules, the troll module and so on...&lt;/p&gt;

&lt;p&gt;If you have ideas on that direction, please share them here... or is it ok as it is?&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/ideas_for_fighting_spambots#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <pubDate>Mon, 12 Jun 2006 12:44:15 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">150 at http://www.phpmix.org</guid>
</item>
<item>
 <title>Akismet module v1.0.0 for Drupal 4.7</title>
 <link>http://www.phpmix.org/story/akismet_module_v1_0_0_for_drupal_4_7</link>
 <description>&lt;img class=&quot;floatright&quot; src=&quot;/files/images/articles/akismet_module_logo.gif&quot; title=&quot;Akismet module for Drupal&quot; alt=&quot;Akismet module for Drupal&quot; /&gt;

&lt;p&gt;After several days of work and tests here at phpMiX.org, I&#039;m proud to announce the immediate availability of about 2000 lines of code compiled into &lt;a href=&quot;/projects/drupal/4_7/akismet&quot;&gt;Akismet module v1.0.0 for Drupal 4.7&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You are encouraged to visit the &lt;a href=&quot;http://akismet.com&quot;&gt;Akismet&lt;/a&gt; site to learn more about it. In just a few words...&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.phpmix.org/story/akismet_module_v1_0_0_for_drupal_4_7&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.phpmix.org/story/akismet_module_v1_0_0_for_drupal_4_7#comment</comments>
 <category domain="http://www.phpmix.org/topics/web_development/akismet">Akismet</category>
 <category domain="http://www.phpmix.org/topics/web_development/drupal">Drupal</category>
 <pubDate>Mon, 12 Jun 2006 02:47:52 +0000</pubDate>
 <dc:creator>markus</dc:creator>
 <guid isPermaLink="false">149 at http://www.phpmix.org</guid>
</item>
</channel>
</rss>
