Support » Kokeneille käyttäjille » bbPress erottimet

  • Resolved tapiohuuhaa

    (@tapiohuuhaa)


    Template tiedostoissa on määritelty erottimet

    forums/template.php:

    function bbp_list_forums( $args = ” ) {

    // Define used variables
    $output = $sub_forums = $topic_count = $reply_count = $counts = ”;
    $i = 0;
    $count = array();

    // Parse arguments against default values
    $r = bbp_parse_args( $args, array(
    ’before’ => ’<ul class=”bbp-forums-list”>’,
    ’after’ => ’’,
    ’link_before’ => ’<li class=”bbp-forum”>’,
    ’link_after’ => ’’,
    ’count_before’ => ’ (’,
    ’count_after’ => ’)’,
    ’count_sep’ => ’, ’,
    ’separator’ => ”, // ’,’,
    ’forum_id’ => ”,
    ’show_topic_count’ => true,
    ’show_reply_count’ => true,
    ), ’list_forums’ );

    replies/template.php:

    function bbp_get_reply_author_link( $args = array() ) {

    // Parse arguments against default values
    $r = bbp_parse_args( $args, array(
    ’post_id’ => 0,
    ’link_title’ => ”,
    ’type’ => ’both’,
    ’size’ => 80,
    ’sep’ => ”,
    ’show_role’ => false
    ), ’get_reply_author_link’ );

    topics/template.php (linkkinä esimerkkisivu, jossa tämä mallinne on käytössä)

    function bbp_get_topic_author_link( $args = array() ) {

    // Parse arguments against default values
    $r = bbp_parse_args( $args, array(
    ’post_id’ => 0,
    ’link_title’ => ”,
    ’type’ => ’both’,
    ’size’ => 80,
    ’sep’ => ”,
    ’show_role’ => false
    ), ’get_topic_author_link’ );

    Voisiko noihin vaikuttaa CodeSnippet avulla jotenkin, ettei tarvitisi puuttua suoraan mallinteeseen. Olen noissa tiedostoissa muuttanut alkuperäisiä tiedostoja.

    PS. CODE on merkitty oudosti ja se käyttäytyy välillä ihan miten sattuu, joten laitoin blockquote-elementtiä.

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

Esillä 1 vastausta (kaikkiaan 1)
Esillä 1 vastausta (kaikkiaan 1)
  • The topic ‘bbPress erottimet’ is closed to new replies.