• Hi!

    I installed this plugin to use it with WHMCS… but I can’t get the “exclude” tags to work, and my WHMCS now use the front page header (with a slideshow and another things) instead of the inner page header.

    The header file has a condition, if the current page is “home”, it uses a big header with slide show and stuff; if the current page isn’t “home”, it uses a little header with a couple of buttons. I put the exclude tags around the first condition, but WHMCS always use the “home” header ?_?

    Is this a bug or something?

    https://www.ads-software.com/extend/plugins/templatesync/

Viewing 3 replies - 1 through 3 (of 3 total)
  • i think it was a bug. However, go to the plugin’s directory and replace the line

    $html = preg_replace(“/<!–tpl.exclude–>(.*?)<!–\/tpl.exclude–>/”, ”, $html);

    with

    $html = preg_replace(“/<!–tpl.exclude–>(.*?)<!–\/tpl.exclude–>/eis”, ”, $html);

    Cheers.

    Does this plugin work with Genesis themes? We can’t get it to work.

    gbogd4n:
    Thanks for the bug fix. It’s working perfectly now!
    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Template Sync] Can't exclude code from header’ is closed to new replies.