Conflict with phpbb functions (5 posts)

  1. plazz
    Posted 13 years ago #

    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?

  2. eadz
    Posted 13 years ago #

    hmm .
    if(!function_exists("make_clickable")) {
    function make_clickable($text) {
    . ...
    in the wordpress code

  3. Matt Mullenweg
    Posted 13 years ago #

    That's what I would recommend.

  4. WDuluoz
    Posted 11 years ago #

    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.

  5. yosmc
    Posted 11 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.