Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Cannot create a new topic in group forums

Tagged: http://www.wheretoget-backlinks.com

  • This topic has 13 replies, 3 voices, and was last updated 11 years, 10 months ago by Ray.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • December 11, 2012 at 7:17 pm #1320
    Daniel Morton
    Participant

    Prior to the most recent update creating a topic was not a problem with each group forum, I clicked on the “New topic” button and I was directed to a section of the page very similar to this appeared and I could create one.

    However that is not what happens now, I still get the “/#new-post” in the url, but the new topic section is not there. When I go to the forum directory the buttons work there and I can create a topic without problem.

    So it appears I have made the new topic section of the group forum pages disappear. Could I get some help on how I may have done this and how I can get this functionality back

    Many thanks!

     

    December 11, 2012 at 8:28 pm #1322
    Ray
    Keymaster

    Hi Daniel,

    Can you take some screenshots of your group forums?

    Just want to make sure I understand the problem.

    December 12, 2012 at 4:44 am #1325
    Daniel Morton
    Participant

    Hi Ray,

     

    My apologies for not explaining this clearly, hopefully these will help clarify my problem.

    The first image (before click.png) shows being in a group forum and trying to start a new topic. There are two “New Topic” buttons. If I click on either of those the screen  I get is shown in (after click.png). The only thing that has changed is in the command line, I dont see the typical New Topic form.

    I have two further images of a before and after in the forums directory where the “New Topic” button does work.

    Thanks for your time

     

    Dan

    December 12, 2012 at 4:45 am #1326
    Daniel Morton
    Participant

    First file before clicking:

    Before Clicking

     

    second file after clicking:

    After Clicking

    Third File:

    Working before

    Fourth file:

     

    December 12, 2012 at 4:59 am #1327
    Daniel Morton
    Participant

    Sorry – here is the fourth file:

     

    December 12, 2012 at 4:37 pm #1335
    Ray
    Keymaster

    Hi Daniel,

    I introduced this bug, so apologies!

    For a short-term fix, locate:
    /wp-content/themes/cbox-theme/engine/includes/buddypress-cbox.php

    Find:
    // if groups isn't active and the bbPress plugin isn't enabled, stop now!
    if ( ! bp_is_active( 'groups' ) && ! function_exists( 'bbpress' ) )
    return;

    and replace with:

    // if groups isn't active, stop now!
    if ( ! bp_is_active( 'groups' ) )
    return;

    // if the bbPress plugin isn't enabled, stop now!
    if ( ! function_exists( 'bbpress' ) )
    return;

    This will be addressed in the next CBOX update.

    December 12, 2012 at 6:12 pm #1339
    Daniel Morton
    Participant

    Hi Ray,

    Thanks for looking at this so soon – and no apologies – I think this is a fantastic piece of work and really enjoying working with it!

    I have made the changes that you have suggested, but I am afraid that it has not made any change to the New Topic button, I am getting the same response. Do I need to refresh or update something?

    I have pasted in the area around where I made the changes in the file in case I have made a simple error:

     

     

    /**

    * Temporarily fix the “New Topic” button when using bbPress with BP.

    *

    * @todo Remove this when bbPress addresses this.

    */

    function cbox_fix_bbp_new_topic_button() {

    //if groups isn’t active, stop now!

    if( ! bp_is_active( ‘groups’ ) )

    return;

     

    //if the bbpress plugin isn’t enabled, stop now!

    if ( ! function_exists( ‘bbpress’ ) )

    return;

     

    // remove the ‘New Topic’ button

    // this is done because the ‘bp_get_group_new_topic_button’ filter doesn’t

    // work propelry

    remove_action( ‘bp_group_header_actions’, ‘bp_group_new_topic_button’ );

     

    // If these conditions are met, this button should not be displayed

    if ( !is_user_logged_in() || !bp_is_group_forum() || bp_is_group_forum_topic()|| bp_group_is_user_banned() )

    return false;

    December 13, 2012 at 1:21 am #1341
    Ray
    Keymaster

    Hi Daniel,

    Can you let me know if you have the bbPress plugin activated? If you do, are you using the bbPress plugin at all? If not, deactivate it.

    The full cbox_fix_bbp_new_topic_button() function should look like this:
    http://pastebin.com/ABSQdVng

    It looks like you have the “Discussion Forums” component enabled in BuddyPress. I should let you know that this BuddyPress component is going to be retired in the upcoming version of BuddyPress. The bbPress plugin will be used to power the forums in BuddyPress going forward

    For more info, read this thread:
    https://commonsinabox.org/groups/help-support/forum/topic/group-forumstopics-in-backend/

    If you have any questions, let me know!

    December 13, 2012 at 4:08 am #1344
    Daniel Morton
    Participant

    Hi Ray,

    Thank you for looking at this.

    I have both the bbpress plugin and the Discussion Forums activated. If I deactivate the bbpress plugins I no longer have forums within my groups, though deactivating the “Discussion Forum” seems to make little change.

    If I am understanding the threads you have linked to correctly I am best off converting over to bbpress completely. I think this will be fine as this site is just starting out and dont have too much content to lose.

    I will sit down today when I have time to go through the conversion and try this out. Will I still need to adjust the /buddypress-cbox.php file when I have changed this. 

    Also, considering I have only a few groups at this time would I be best served deleting these and setting up bbpress and then repopulating them.

     

    Many thanks

     

    Dan

    December 13, 2012 at 3:48 pm #1352
    Ray
    Keymaster

    Hi Dan,

    Since you say you have a relatively small amount of groups, I would recommend converting over to bbPress if you don’t mind a few minor bugs that will be addressed soon.

    Check out the migration guide (as well as the current bugs) here:
    http://codex.buddypress.org/buddypress-site-administration/migrating-from-old-forums-to-bbpress-2/

    If you have any private or hidden groups, let me know and I’ll provide further instructions.

    December 13, 2012 at 6:20 pm #1353
    Daniel Morton
    Participant

    Hi Ray,

    I just wanted to say that I went through the migration and everything went according to plan – the buttons all seem to be working now, my groups/forums/topics all appear to be present and correct.

    I didnt have any hidden/private groups, but I intend to have some in the future – I assume that this will not be a problem since I have changed over.

    Thanks again for the brilliant support

    All the best

    Dan

    December 13, 2012 at 7:04 pm #1354
    Ray
    Keymaster

    Hi Dan,

    Glad everything worked out!

    April 13, 2013 at 11:30 pm #2458
    Isaac
    Participant

    Hi Ray,

    I am having the same issue that Dan was having. But, none of these fixes worked. Any additional suggestions?

    April 18, 2013 at 3:04 am #2507
    Ray
    Keymaster

    Hi @Isaac – Are you running the “Discussion Forums” component bundled with BuddyPress?  If so, can you try the following code snippet in the CBOX Theme?
    https://github.com/cuny-academic-commons/cbox-theme/commit/746adabe856d60c2b7befb6e426afc6fa29e6881

    There was a bug in the CBOX Theme code that prevented the “New Topic” link from working when using the older BP Discussion Forums component.

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register