Skip to:
Content
Pages
Categories
Search
Top
Bottom

get_forum_link modification


  • mirce
    Member

    @mirce

    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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar