Forums

Join
bbPress Support ForumsPluginsget_forum_link modification

Info

get_forum_link modification

  1. I am trying to do a permalink hack. In bb-includes/template-functions.php
    I am trying to change the forum_link function so when the paggination appears, forum page 2 - ( 1 < $page ? "/page/$page" : '' ), the link to be different. I am trying to do this with an IF but it does not works:

    -this happens in bb-includes/template-functions.php/function get_forum_link

    if ( $forum_id )
    $forum = get_forum( $forum_id );
    if ( bb_get_option( 'mod_rewrite' ) ){
    if ($page <= 1) {
    $link = bb_get_option( 'uri' ) . "forum-$forum->forum_id" . ( 1 < $page ? "/page/$page" : '' ) . ".html";}
    else {
    $link = bb_get_option( 'uri' ) . "newlink-$forum->forum_id-$page" . ( 1 < $page ? "/page/$page" : '' ) . ".html";
    }

    Thanx,
    Mircea Piturca.

  2. Same thing...bbPress dev archives!

    http://comox.textdrive.com/pipermail/bbdev/

    Trent

  3. You must log in to post.