Forum Replies Created
-
ok, I played with this for a while, and any solution would be site/theme specific and beyond free help I’m afraid.
In reply to: Import parent and child relationshipsDid you do a bbpress to bbpress importer? I know it was mentioned some time ago.
In reply to: One topic in multiple forums – possible?Possible? – not without a load of bespoke code – I’m afraid
In reply to: No back button to parent forumforums have breadcrumbs to help navigation.
Yours appear to be switch off, possible by your theme?
ok, just posting for anyone searching in future
THIS IS A WORKING VERSION
This code allows a standard gravity form lets it be saved as a gravity forum, but on saving also creates a new topic form for a specific forum
add_action( 'gform_after_submission', 'set_post_content', 10, 2 ); function set_post_content( $entry, $form ) { //set the forum ID that the topic will be saved to $forum_ID = '31086' ; if (!function_exists('bbp_insert_topic')) { require_once '/includes/topics/functions.php'; } //getting post $post_form = get_post($entry['post_id']) ; $title = $post_form->post_title; $content = $post_form->post_content; // The topic data. $topic_data = array( 'post_parent' => $forum_ID, // forum ID of Projects hard coded 'post_status' => bbp_get_public_status_id(), // Subscribed users can see this 'post_content' => $content, 'post_title' => $title, 'comment_status' => 'open', 'menu_order' => 0 ); // The topic meta. $topic_meta = array( 'forum_id' => $forum_ID, 'reply_count' => 0 ); $post_id = bbp_insert_topic($topic_data, $topic_meta); }In reply to: Topics not found, only sticky topics showIn reply to: Topics not found, only sticky topics show@jkw217 if you can confirm my post above – ie
can you confirm that
“5 random reply posts that arent working:
– all have ‘0’ for post_parent.
– all have a postmeta _bbp_topic_id #I need to know that you
a) have EXACTLY the same problem and
b) have the postmeta as abovethen I can give you some code
what widget are you using to see that list ?
In reply to: Topics not found, only sticky topics showcan you confirm that
5 random reply posts that arent working:
– all have ‘0’ for post_parent.
– all have a postmeta _bbp_topic_id #and I can give you some code
or you could link to the ‘forum’ class as it is just before the title
eg
.forum::before { content: "Read this: "; }As it’s above the title, then it’s before bbpress kicks in.
you could try
if (is_bbpress) { echo 'hello' ; }but may not work
Or try to add something to your theme page.php or equivalent before the title
Something like (this won’t work it’s just to start you off!)$array = (2925, 3567,4567) ; if (in_array ($page_id, $array)) { echo 'hello' ; }where 2925 etc are forum ID’s
In reply to: Moving topic from one forum to anotherdashboard>topics>all topics>edit the topic and amend the forum on the right hand side.
@strike3 -sincere apologies for not getting back to you – your response slipped through the net.
Glad you are fixed, and thanks for posting the link
In reply to: Cannot See Forum Replies.suspect it an update conflict
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
In reply to: # Postname concepttry this
a.bbp-reply-permalink { display : none !important; }In reply to: # Postname conceptput this in your custom css area
.bbp-reply-permalink { display : none ; }In reply to: User Registrationwhen they first log on they are allocated the default role that you set in dashboard>settings>forums.
you can use the bbpress logon widget in a sidebar, use the shortcode [bbp-login] on a page or post, use any wordpress logion plugin or technique, or add a login to your menu using
In reply to: how to add the bbpress side barIn reply to: # Postname concept1. bbpress uses wordpress post database, so these are wordpress post numbers, so no, you cannot have different numbers for bbpress (without completely re-writing bbpress !).
2.
I also wanted to ask if there was a plugin that supported sharing bbpress topics.
None that I know of
In reply to: bbpress not inherit our theme headerI will need to look at your site, so I need a url to the forums on your site
eg
In reply to: bbpress not inherit our theme headerany chance of a link to forums on your site
In reply to: This forum is emptycreate a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/content-single-forum.php
bbPress will now use this template instead of the original
and you can amend thisso change line 26 from
<?php bbp_single_forum_description(); ?>to
<?php if (bbp_get_single_forum_description != 'This forum is empty.') bbp_single_forum_description(); ?>In reply to: Display number of subscribers of a forumThis is not as easy as I thought.
As a widget it can be shortcoded, but the version I currently have does need to do the calculation each time, which on a site with lots of forums and users could make the site slow.
Whereabouts on the site were you thinking of – eg in sidebar, at top of each forum, within the forum list etc.
In reply to: Unable to Delete, Edit or Close *Some* Topicshmm…
not sure what to suggest next.
I could code a quick ‘close topic’ shortcode, but that would be beyond free – contact me via my website if interested
In reply to: Quicktagsbis bold
I is italic
B-quote puts a wordpress block around the text – exactly what is set by your theme
Del – is delete quotes
img is an image
ul is an unordered list
ol is an ordered list
li is a list item
code is code – stops the display from executing, just displays it
close tags – closes all open tags