Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] A newbie question about bp_forum_topic_posts()

  • Why bp_forum_topic_posts() in bp-forums-templatetags.php just only return posts, but no replies returned?

    I did’nt make changes to the code, but in the topic page, it is supposed to see the topic with all its replies shown in one page, but now I can only see the topic page, does anyone know it? Thanks a lot!

    Regards,
    -cq

Viewing 1 replies (of 1 total)

  • javierduce
    Participant

    @javierduce

    There is an issue with fresh installs of bbpress in Buddypress. You shold check if the table wp_bb_posts has been created in your database. Otherwise, you should create it manually:

    CREATE TABLE IF NOT EXISTS `wp_bb_posts` (
    `post_id` bigint(20) NOT NULL auto_increment,
    `forum_id` int(10) NOT NULL default 1,
    `topic_id` bigint(20) NOT NULL default 1,
    `poster_id` int(10) NOT NULL default 0,
    `post_text` text NOT NULL,
    `post_time` datetime NOT NULL default ‘0000-00-00 00:00:00’,
    `poster_ip` varchar(15) NOT NULL default ”,
    `post_status` tinyint(1) NOT NULL default 0,
    `post_position` bigint(20) NOT NULL default 0,
    PRIMARY KEY (`post_id`),
    KEY `topic_time` (`topic_id`, `post_time`),
    KEY `poster_time` (`poster_id`, `post_time`),
    KEY `post_time` (`post_time`),
    FULLTEXT KEY `post_text` (`post_text`)
    ) ENGINE = MYISAM;

    Hope it works.
    It did for me. :)

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] A newbie question about bp_forum_topic_posts()’ is closed to new replies.
Skip to toolbar