WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT in PHP4 (2 posts)

  1. iron77
    Member
    Posted 4 years ago #

    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: http://www.zshare.net/download/7157015157c66059/

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. ec30
    Member
    Posted 4 years ago #

    @iron77 thank you for this! I'm on a deadline and this little problem was killing me! THX!!

Topic Closed

This topic has been closed to new replies.

About this Topic