[wp-hackers] bbPress integration: merge forum topics into
hello at chanpory.com
Tue May 6 22:29:19 GMT 2008
Thanks for pointing that out. I've uploaded the text file onto my
server. Here is the URL:
Please let me know if you're able to view it.
On May 6, 2008, at 3:17 PM, Alexander Beutl wrote:
> Any attatchments you make when posting to the list will be deleted
> sending the msgs to the list.
> Maybe you can upload the txt file somewhere?
> 2008/5/6, Chanpory Rith <hello at chanpory.com>:
>> Hey everyone.
>> I'm new to this list and a novice PHP coder, but I wanted to share
>> code I've been working on.
>> The goal is to enable bbPress moderators to "promote" a topic to
>> show up
>> in a Wordpress loop. Clicking on the permalink of the bbPress topic
>> the Wordpress loop, will take you directly to bbPress topic page. Any
>> changes made to topic on the bbPress side would also show up
>> in the loop. (There is a similar functionality in Drupal, and I was
>> considering migrating my Wordpress blog to Drupal, but it turned
>> out to be
>> huge pain.)
>> My approach was to take advantage of the "sticky" functionality in
>> bbPress. The idea is to retrieve "super sticky" topics from the
>> database tables, and merge it into an array of Wordpress posts.
>> Then, use
>> foreach to create a custom loop which displays the combined list of
>> Wordpress and bbPress posts. From a user's perspective, you would
>> click the "Stick topic (to front)" in bbPress to promote the topic to
>> So far, I've been successful in modifying the index.php file for the
>> Classic theme to achieve this functionality. There is some pagination
>> issues, but it seems to be working fairly well so far.
>> I'm not sure if it could be turned into a plugin or not. I've
>> what I have so far as a text file. The code assumes the latest
>> versions of
>> bbPress and Wordpress, and that bbPress was installed with Wordpress
>> integration enabled. Also, the tables for bbPress and Wordpress are
>> in the
>> same database.
>> Any suggestions for streamlining or improving this would be greatly
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers