Support » Fixing WordPress » Conflict with phpbb functions

  • plazz

    (@plazz)


    Hi,
    I use a script called phpBB FetchAll on the same page as wordpress. It basically grabs the latest topics from phpBB and prints them on my index page.
    Whenever I do an upgrade of wordpress (or b2), it says that the function make_clickable has already been defined by phpBB.
    My only solution is to replace all of the make_clickable’s in wordpress to make_clickable_b2.
    I’m still only learning PHP, is there an easier way to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • eadz

    (@eadz)

    hmm .
    Maybe
    if(!function_exists(“make_clickable”)) {
    function make_clickable($text) {
    . …
    }
    }
    in the wordpress code

    Moderator Matt Mullenweg

    (@matt)

    That’s what I would recommend.

    WDuluoz

    (@wduluoz)

    Would you suggest the same thing for get_userdata? There is a conflict between PHPBB and WordPress with this function. I renamed them, but if you think this would work better, I will change it over.

    yosmc

    (@yosmc)

    I just came here to report the same problem. I don’t think eadz’ solution is recommendable because then wordpress would use the phpbb function, and unless it’s identical (wonder why it should be?) it will cause problems.

    Maybe it would be possible for the wordpress team to slightly change the name of these two functions for the next release (afaik phpbb is older code, otherwise I’d go over there and propose it to them). Thanks for listening!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conflict with phpbb functions’ is closed to new replies.