Welcome to Geeklog, Anonymous Saturday, November 30 2024 @ 11:48 pm EST

Geeklog Forums

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


Status: offline

demianturner

Forum User
Newbie
Registered: 12/17/01
Posts: 14

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.

 Quote

Anonymous

Anonymous
Cool great block! --Mr.GxBlock
 Quote

Anonymous

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?
 Quote

Anonymous

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?
 Quote

Status: offline

demianturner

Forum User
Newbie
Registered: 12/17/01
Posts: 14
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.
 Quote

Status: offline

demianturner

Forum User
Newbie
Registered: 12/17/01
Posts: 14
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
 Quote

merlinmann

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

Anonymous

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
 Quote

Anonymous

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
 Quote

Anonymous

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?
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
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?
In a world without walls and fences, who needs Windows and Gates?
 Quote

Status: offline

demianturner

Forum User
Newbie
Registered: 12/17/01
Posts: 14
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.
 Quote

Status: offline

squatty

Forum User
Full Member
Registered: 01/21/02
Posts: 269
sounds good. look forward to seeing the update.
In a world without walls and fences, who needs Windows and Gates?
 Quote

All times are EST. The time is now 11:48 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content