[bbDev] Permalinks Plugin - Changing Mod Rewrite Rules
Sam Bauers
sam at viveka.net.au
Sat Mar 17 15:05:16 GMT 2007
I hope nobody is holding heir breath. I've got a lot of work on at
the moment. I don't see myself looking at this again for a month at
best.
Having said that, I did rewrite bb_repermalink and some other
functions once already and got quite a bit of flexibility out of it,
the main problems have been with working out the best way to resolve
a pretty URL to the correct forum/topic/user. But implementing that
has not started.
Sam
On 15/03/2007, at 7:36 PM, Michael D Adams wrote:
> On Mar 14, 2007, at 7:23 AM, info at swing-sets.us wrote:
>
>> Thanx for your response.
>>
>>> You'll also need above that:
>>> RewriteRule ^designer_furniture/topic([0-9]+)/page/([0-9]+)/?$ /
>>> topic.php?id=$1&page=$2
>>
>> I've added this into my htaccess but I get the 301 redirect from
>> bb_repermalink. You can see the paggination from
>> http://www.dfur.com/designer_furniture
>
> I didn't quite get it the first time :)
>
> What version of bbPress are you using? If you're using the latest
> SVN code, you can do:
>
> RewriteRule ^designer_furniture/page/([0-9]+)/?$ /forum.php?
> forum_name=$1 [L,QSA]
>
> Then, you can write a function that hooks on the 'bb_repermalink'
> filter and translates the forum name to a forum id. I'm not sure if
> what you want is possible with even the most recent official
> release of bbPress since it does not include the above hook.
>
> With the code Sam is working on, though, there may be a new and
> better method. The bb_repermalink() function, as you and Sam know,
> definitely needs some attention.
>
> Michael
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev
More information about the bbDev
mailing list