Support » Plugins » Breadcrumb NavXT in PHP4

  • I’ve seen some feedback from people asking about PHP4 support for this plugin. The best solution really is what the author is suggesting so just upgrade PHP5 🙂 – which shouldn’t be that hard these days. There might be some situations however, when this may be a problem, and I have been in one of those so here’s the quick tutorial how to downgrade. There were some instructions in some older topic but it doesn’t work well with current version.

    So first some basic removal of “public” and “private”…

    In breadcrumb_navxt_admin.php and breadcrumb_navxt_class.php

    1. change all “public function” to “function”
    2. change all “private function” to “function”
    3. change all “public $” to “var $”
    4. change all “private $” to “var $”

    Then there’s a pointer in one function which needed to be handled differently in PHP4

    In breadcrumb_navxt_class.php

    1. Change function &add(bcn_breadcrumb $object) to function &add(&$object)
    2. replace all = $this->add( with =& $this->add(

    And it should be it!

    I have also made a simple php patcher which you might put into plugin folder and run like your-wp-path/wp-content/plugins/breadcrumb-navxt/php4_patch.php and it would do above job for you – hopefully would save the repetition work on further updates 🙂

    download patcher:

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Breadcrumb NavXT in PHP4’ is closed to new replies.