Info
- 2 posts
- 2 voices
- Started 5 years ago by Mirce
- Latest reply from Trent Adams
- This topic is not resolved
get_forum_link modification
-
- Posted 5 years ago #
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 5 years ago #
-
You must log in to post.