• Resolved cguimet

    (@cguimet)


    Hi,
    i’m trying to customize the plugin and i used the filter from the doc to replace the plugin template with my own.
    It didn’t work, i got an empty chat, so i tried to look into the plugins files to see how the filter works and i think i saw two problems.

    In your filter you pass two arguments, while the filter expects one so it crashes and we can’t see it since the error_reporting is set to zero before that.

    Then, in the filter, i return a full path like “c:/folder/template.php”.
    In the plugin code the string is stored in a variable and used to include the template, but there’s a “$path” variable just before like this :

    "include($path . $template);

    Which makes the include path look like “C:/plugin/path/C:/theme/path/template.php”

    It obviously doesn’t work.
    Is it my implementation that is not correct or is there a problem with the doc/plugin ?

    Thanks,

    Cedric

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wordplus

    (@wordplus)

    Hi there!

    Which version of plugin do you use? (this hook available only in latest one)

    Thannks!

    Thread Starter cguimet

    (@cguimet)

    I was not using the latest indeed, i updated the plugin and it worked.

    Thanks for the quick reply, I should have thought of that first.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with overwriting templates’ is closed to new replies.