Cannot create a new topic in group forums
- This topic has 13 replies, 3 voices, and was last updated 11 years, 6 months ago by Ray.
-
AuthorPosts
-
December 11, 2012 at 7:17 pm #1320Daniel MortonParticipant
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 #1322RayKeymasterHi 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 #1325Daniel MortonParticipantHi 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 #1326Daniel MortonParticipantFirst file before clicking:
second file after clicking:
Third File:
Fourth file:
December 12, 2012 at 4:59 am #1327Daniel MortonParticipantDecember 12, 2012 at 4:37 pm #1335RayKeymasterHi Daniel,
I introduced this bug, so apologies!
For a short-term fix, locate:
/wp-content/themes/cbox-theme/engine/includes/buddypress-cbox.phpFind:
// 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 #1339Daniel MortonParticipantHi 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 #1341RayKeymasterHi 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/ABSQdVngIt 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 #1344Daniel MortonParticipantHi 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 #1352RayKeymasterHi 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 #1353Daniel MortonParticipantHi 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 #1354RayKeymasterHi Dan,
Glad everything worked out!
April 13, 2013 at 11:30 pm #2458IsaacParticipantHi 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 #2507RayKeymasterHi @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/746adabe856d60c2b7befb6e426afc6fa29e6881There was a bug in the CBOX Theme code that prevented the “New Topic” link from working when using the older BP Discussion Forums component.
-
AuthorPosts
- You must be logged in to reply to this topic.