bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

get_forum_link modification

(2 posts)
  • Started 1 year ago by Mirce
  • Latest reply from Trent
  • This topic is not resolved
  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.

    Posted 1 year ago #
  2. Same thing...bbPress dev archives!

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

    Trent

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.