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
- change all “public function” to “function”
- change all “private function” to “function”
- change all “public $” to “var $”
- 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
- Change
function &add(bcn_breadcrumb $object)
tofunction &add(&$object)
- 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: https://www.zshare.net/download/7157015157c66059/
- The topic ‘Breadcrumb NavXT in PHP4’ is closed to new replies.