Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Weird permalink problem..

Thanks Josh, I took out the “if else” statements in the two main plugin files, and it’s working now.. ;):)

In bb-memberlist.php found this:

function bb_get_memberlist_link( $tag = ” ) {

global $bb;

if ( $bb->mod_rewrite )

$r = bb_get_option(‘uri’) . “mlist” . ( ” != $tag ? “?$tag” : ” );

else

$r = bb_get_option(‘uri’) . “mlist.php” . ( ” != $tag ? “?$tag” : ” );

return apply_filters( ‘get_memberlist_link’, $r );

}

Changed to this:

function bb_get_memberlist_link( $tag = ” ) {

global $bb;

$r = bb_get_option(‘uri’) . “mlist.php” . ( ” != $tag ? “?$tag” : ” );

return apply_filters( ‘get_memberlist_link’, $r );

}

Then, in bb-privatemessage.php.. Find these two:

(near top of file)

function get_pm_fp_link( $tag = ” ) {

global $bb;

if ( $bb->mod_rewrite )

$r = bb_get_option(‘uri’) . “pm” . ( ” != $tag ? “$tag” : ” );

else

$r = bb_get_option(‘uri’) . “pm.php” . ( ” != $tag ? “$tag” : ” );

return apply_filters( ‘get_pm_fp_link’, $r );

}

Changed to this:

function get_pm_fp_link( $tag = ” ) {

global $bb;

$r = bb_get_option(‘uri’) . “pm.php” . ( ” != $tag ? “$tag” : ” );

return apply_filters( ‘get_pm_fp_link’, $r );

}

Then, near the middle of the file, find this one:

function bb_get_pm_link( $tag = ” ) {

global $bb;

if ( $bb->mod_rewrite )

$r = bb_get_option(‘uri’) . “message” . ( ” != $tag ? “$tag” : ” );

else

$r = bb_get_option(‘uri’) . “message.php” . ( ” != $tag ? “$tag” : ” );

return apply_filters( ‘get_pm_link’, $r );

}

Changed it to this:

function bb_get_pm_link( $tag = ” ) {

global $bb;

$r = bb_get_option(‘uri’) . “message.php” . ( ” != $tag ? “$tag” : ” );

return apply_filters( ‘get_pm_link’, $r );

}

This should be it, and should be right.. it’s working for me now, at least.. Hope it maybe helps someone else out there.. ;):)

spencerp

Skip to toolbar