Subject: Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 13/08/02 01:34pm
By: demianturner

I've been wanting to get a backlink script working for Geeklog for a while, seems like they've become quite popular in weblog circles. There is a Perl version that many people seem to be using, so I took a crack at converting it to PHP but it's a bit longwinded. Naturally PHP has many built-in functions that make this kind of thing a lot easier than Perl ;-)

To view an example of the referrer PHP Block check out http://www.phpkitchen.com/ , it's on the left side under the Amazon block. The source code is available here. I started off Charles F. Johnson's code from http://littlegreenfootballs.com which really is very good then modified it to display unique referrers.

Full install instruction are here;

By the way, we're also running the PHPkitchen Awards, pop by and vote for your favour PHP software.


Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 13/08/02 02:52pm
By: Anonymous

Cool great block! --Mr.GxBlock

Errors

Posted on: 13/08/02 04:07pm
By: Anonymous

I'm sure it's a great block, but it doesn't work for me as I get these errors: Warning: Wrong datatype in array_unique() call in /home/finiserv/public_html/thane/system/lib-custom.php on line 206 Warning: Invalid argument supplied for foreach() in /home/finiserv/public_html/thane/system/lib-custom.php on line 208 Warning: Invalid argument supplied for foreach() in /home/finiserv/public_html/thane/system/lib-custom.php on line 214 Hmm?

Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 13/08/02 09:48pm
By: Anonymous

That seems like a kick ass block, but it's too bad I can't get it to work. I've followed your instructions, but when I enable the block and go to my front page I only see the header and the left hand blocks. None of my content or right hand blocks show up. It seems to have bombed somewhere in the code. Is anyone else having this problem?

Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 14/08/02 12:03am
By: demianturner

apologies for this ;-) best disable the block till the bugs are sorted out. As I mentioned to the user above, I have it working in PHP 4.06 and 4.1.3 with no issues.

Errors: FIXED

Posted on: 14/08/02 01:30am
By: demianturner

It was a simple error, the reflog.txt cannot be empty - simply insert at least one fully qualified URL in the blank file and the block will work fine. Or download the updated source at http://www.phpkitchen.com/docs/referrersUnique.v0.1.zip

Very nice!

Posted on: 14/08/02 11:48am
By: Anonymous

Easy to install and working like a charm. Thanks for a nice chunka code. :-)

Best Weblog voting in PHPkitchen Awards

Posted on: 15/08/02 09:03pm
By: Anonymous

I don't want to start a panic but geeklog's ass is getting kicked in the weblog voting :-( If you can get over to the PHPkitchen awards and vote for the best PHP weblog PHPkitchen Awards

Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 17/08/02 01:33pm
By: Anonymous

Warning: Cannot add header information - headers already sent by (output started at /www/geeklog/geeklog/system/lib-custom.php:136) in /www/geeklog/geeklog/system/lib-sessions.php on line 150 Warning: Cannot add header information - headers already sent by (output started at /www/geeklog/geeklog/system/lib-custom.php:136) in /www/geeklog/geeklog/system/lib-sessions.php on line 162 ********* my errors

Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 19/08/02 04:58am
By: Anonymous

demianturner, can you modify the script a bit, bounce at least 2-3 domains? Currently yours only bounce off 1 domain. Any PHP guys wanna help me out here?

small request

Posted on: 19/08/02 02:40pm
By: squatty

Could you sort the reslults by hits per domain? I tried to play around with sort() and array_multisort() but couldn't quite find the right fit?

small request

Posted on: 19/08/02 11:10pm
By: demianturner

hi squatty, I have domain sorting and rank by hits working, and an autodeleting cron job every x hours if your list gets too big. just adding some final touches like www.longdomain.co ... [23] www.normaldomain.com [1] then will put up v0.2 for download.

Automatic backlinking for your weblog - see where your traffic is coming from

Posted on: 20/08/02 06:43am
By: squatty

sounds good. look forward to seeing the update.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=20738