counter
Currently browsing source code


Articles on source code

Force users to login before download wordpress

Tags: , , — Hawk on April 21, 2008 at 1:55 am

Yet another item that I’ve been looking for and there wasn’t a simple solution.   I’ve actually been looking at this for a while then I just realized it would be really simple to write a filter.

If you own wordpress and you want to make sure that your users login/register before downloading .zip files, or any files if you want to customize it, the check this out.

  • Protects your links, promotes website user-base growth
  • Isn’t more than you need, no file management just pure href swapping (more…)

Who’s Online for Wordpress

Tags: , , — Hawk on April 20, 2008 at 10:06 pm

After rummaging through the search engine looking for a decent wordpress solution I came across an interesting article about just a simple solution. Well I took that and made it a bit more custom to my need and also included some wordpress features

  • Tracks users from the same ip address with user-agent info
  • Tracks anyone on your server, not just logged in
  • Customizable color background
  • Uses remote script run via img src, so no need to worry about install

This script is so incredibly small I can give it out right here. (more…)


DOMDocument PHP Crawler example

Tags: , , , , , — Hawk on August 21, 2007 at 12:40 am

I wrote this to illustrate that there is more then one way to accomplish a goal. Sometimes you choose something because your familiar with it, sometimes because it’s required and sometimes just for fun. I wrote this earlier with regular expressions, Then in response to a thread on programmingtalk I decided to write one in DOMDocument PHP
(more…)

Our First Case Study, SEO of HawkEnterprises.org

Tags: , , , , — Hawk on August 4, 2007 at 2:02 pm

As we have been looking at hawkenterprises as a market space for a while. Currently we had two competitors in our market space, which would be the owners of the .com and the .net.

To be fair to these people before I started to completely blow them off all the major search I offered to buy their domains. Of course they refused.
(more…)