Forum Replies Created
-
you can then apply the same technique to the reply form
ok, so create a new topic form template
find
wp-content/plugins/bbpress/templates/default/bbpress/form-topic.phptransfer this to your pc and edit
change around line 199
<?php if ( ! bbp_is_single_forum() ) : ?>to
<?php if (isset($_REQUEST['bbp_forum_id'])) : ?> <input type="hidden" name="bbp_forum_id" value="<?php echo $_REQUEST['bbp_forum_id']; ?>" /> <?php elseif ( ! bbp_is_single_forum() ) : ?>and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-topic.phpbbPress will now use this template instead of the original
then put this in your child theme functions file
add_action ( 'bbp_template_before_single_forum', 'reww_new_topic_button' ) ; function reww_new_topic_button () { $url = $url = get_home_url(); $forum_id = bbp_get_forum_id() ; $url.='/topic-form/?bbp_forum_id='.$forum_id ; $text = 'create new topicc' ; echo '<a class="hello" href ="'.$url.'">'.$text.'</a>' ; }where ‘/topic-form/’ is the page you have the topic form on
that sends a query string to the topic form page, which is then picked up by the amended template above
In reply to: Settings for my forumProbably not with that plugin, but probably another plugin and/or your theme
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
In reply to: Change user role based on user post count?you can also check out this plugin which does user ranking
In reply to: Change user role based on user post count?I’d suggest you crack open this plugin which does topic and reply counts
In reply to: Settings for my forumsuspect dashboard>settings>forums>subscriptions
In reply to: Login to BBpress vs. WordPressgreat – glad you are fixed
the topic and reply forms are at the bottom of the forum and topic pages, so there is no need to visit a separate page.
I agree that this is far from obvious.
my style pack plugin adds a button which takes you there
once activated go to
dashboard>settings>bbp style pack>Buttons
I’m looking at creating a pop-up topic and reply form at the moment, but this is very much work in progress. If I succeed I’ll try and remember to post back here
In reply to: Hide breadcrumbs on home forum indexš
In reply to: Login to BBpress vs. WordPresssorry, I’m confused on what the issue is – when I click on the login link above, I get taken to the expected login.
In reply to: Access sidebar on topic pagedashboard>appearance>widgets and choose the sidebar and add a custom html widget
anything can be done if you can find someone with the technical skills and time and are willing to pay the money for them to do the work !!
The plugin does not generate WordPress ‘pages’ as such, it uses a theme’s template and renders data within that.
I’m just a bbpress user who helps out on this forum, but if we ignore login, register and password reset which users may or may not want as pages (many use sidebar widgets and a multitude of membership plugins and methods to handle registration etc.) then I’m not clear what you want to happen with topic and reply forms – what is missing that you want that needs multiple forms?
The solution Iām looking for is for BBP to dynamically generate them as required. Is that possible?
not within the current product.
I’m not quite sure what you have against creating 5 pages yourself š š
ok, so your topic and reply forms will have pages with urls, so you just need to put the buttons where you want
<input type="button" value="button name" onclick="window.open('http://www.website.com/page')" />not sure what that means – render a screen with the form? or create a worpdress page ?
perhaps you could describe what you want to achieve from what and to what.
In reply to: Stop redirect after submitting replyIn reply to: Critical error when I try to deinstall bbpresssuspect it might have been another plugin that was dependant on it, but anyway glad you are fixed.
In reply to: custom post type in bbpress forum boardoops semi colon missing from $image = line
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?> <?php $image_id = get_user_meta (bbp_get_reply_author_id(), 'profile-picture' , true) ; $image = get_post_meta ($image_id, _wp_attached_file, true) ; echo '<li>herestart'.$image.'hereend</li>' ; ?>In reply to: custom post type in bbpress forum boardok, so we are making progress.
I don’t expect this to work, just to return the next stage
so amend that to
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?> <?php $image_id = get_user_meta (bbp_get_reply_author_id(), 'profile-picture' , true) ; $image = get_post_meta ($image_id, _wp_attached_file, true) echo '<li>herestart'.$image.'hereend</li>' ; ?>In reply to: custom post type in bbpress forum boardthat’s fine, I wanted to see what was in the database ie in this case 1345, I suspect it is a reference to a media image
In reply to: custom post type in bbpress forum boardok, can you change the other one to
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?> <?php $avatar = get_user_meta (bbp_get_reply_author_id(), 'profile-picture' , true) ; echo '<li>herestart'.$avatar.'hereend</li>' ; ?>In reply to: custom post type in bbpress forum boardtry
<?php $neighborhood = get_user_meta (bbp_get_reply_author_id(), 'user-subdivision' , true) ; echo '<li>'.$neighborhood.'</li>' ; ?>come back if that doesn’t work
In reply to: custom post type in bbpress forum boardoops sorry, I’ll correct that
In reply to: Import from Asgaros Forumhmm…just loaded Asgaros to my test site, and it has it’s own tables
wp_forum_forums
wp_forum_topics
wp_forum_postsas well as several others dealing with subscriptions, polls and ads.
the issue with importing would be hooking forum_topics which holds header stuff with forum posts which holds the content, but also the replies.
What size is your current Asgaros forum – eg forums, topics replies?
In reply to: custom post type in bbpress forum boardfor the avatar, I need to know what is stored in the usermeta, so can you try adding this after line 44
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?>to get
<?php bbp_reply_author_link( array( 'show_role' => true ) ); ?> <?php $avatar = get_user_meta (get_current_user_id(), 'profile-picture' , true) ; echo '<li>'.$avatar.'</li>' ; ?>I need to see if this produces a url or link to media item etc.