• Jimako
    Main Admin
    Posts: 359
    Joined: 1 year ago
    Sun Sep 17 2017, 14:01  Jimako

    This is temporalily fix before this issue will be solved:

    line 18 - $pref was empty, adding as global helped.

    global $sql, $ns, $pref;

    replaced

    //$text = preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_HEADER);

    with 

    $var  = array('TOTAL_TOPICS' => $TOTAL_TOPICS,
    'TOTAL_REPLIES' => $TOTAL_REPLIES,
    'TOTAL_VIEWS' => $TOTAL_VIEWS
    );
    $text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_HEADER, $var);

    and item:

    //$text .= preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_MAIN);
    $varmain = array(
    'THREAD' => $THREAD,
    'FORUM' => $FORUM,
    'VIEWS' => $VIEWS,
    'REPLIES' => $REPLIES,
    );
    $text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_MAIN, $varmain );

    footer:

    //$text .= preg_replace("/{(.*?)}/e", '$1', $NEWFORUMPOSTSTYLE_FOOTER);
    $text .= e107::getParser()->simpleParse($NEWFORUMPOSTSTYLE_FOOTER, $var);

  • Jimako
    Main Admin
    Posts: 359
    Joined: 1 year ago
      
    It was fixed in core by extending newsforumpost_menu in forum plugin