Tag: php

Here you can see a listing of all the posts tagged with php on this website.

  • Migrating custom node type modules

    Posted on Nov. 2, 2006 at 21:06 +0100 Tagged with , , , ,

    Today I finally started porting the modules I had written for zerokspot.com from Drupal 4.7 to 5.0. So far everything has worked out just fine apart from one little thing:

    I added the modulename.info file to my book review module and there it was in the admin panel. Everything's great. Then I wanted to create a new node with this type and noticed (1) that it doesn't appear in the main listing but only in the navigation sidebar and (2) that when I try to submit the new node, I get an error similar to this one:

    array_merge_recursive() [<a href='function.array-merge-recursive'>function.array-merge-recursive</a>]: Argument #2 is not an array in /opt/wwwdev/htdocs/drupal-5.0/modules/node/node.module on line 1916.

    [more ...]

    1 comment

  • Technorati's link cosmos on your site

    Posted on July 31, 2006 at 14:03 +0200 Tagged with , , ,

    Natalie Jost has a nice post about how to track who else is linking to your blog but also a question: "How to get this information out of Technorati?" The answer is a little bit more techie than it should have to be, but anyway:

    Technorati is offering an API for getting exactly this kind of information out of it. What do you need for that?

    1. An account on Technorati
    2. An API key which you can get here

    The last thing you need is a script that actually uses this API. How should it work? That absolutely depends on what you want. I personally prefer a small script that polls that data let's say once per day and stores the output inside of a PHP file that I could then simply integrate in whatever CMS I'm currently using.

    [more ...]

    0 comments