Thank you Robin 😊
About the notes. Would you recommend a excel file logging everything I do with any code; for example which files (path) and which line/lines etc?
I have done some changes when reading some easy codes that I understood how to add etc. But dont remember them by now 😅
in the menu (after installing bbpress) Nothing will appear – you must create and customize the menu yourself.
Or use bbpress shortcodes for home page.
I have you eminent plug in and love it already 🙂 And already checked the shortcodes there. However there is only a shortcode to add a button/text to press that links to the profile. I would love a shortcode as the [bbp-forum-index] but for example [bbp-forum-profile]. Cant find any but maybe there is non?
bbp style pack
once activated go to
dashboard>settings>bbp style pack>shortcodes
How come I cant find a shortcode for the bbpress user profile?
This is the plugin for using shortcodes in menu – hope this helps ?
Shortcode in Menus
Found it. Download the plugin: bbpress do shortcodes
But where can you enable shortcodes? I also have this problem with the polls.
Sorry
The two shortcodes are, I assume they can work independently so does not need to work in conjunction with[bsp-profile] ?
[Profile label=’This is the label’]
[Profile label=’This is the label’]
there are 6 shortcodes in style pack, can you clarify which 2 you mean?
Image didn’t help me 🙁
No problem and any time you spend with this is great news for us all.
The [bsp-profile] now works perfectly for both single names and double spaced names and for myself, job done.
I did try the other two shortcodes and alas for myself they do not work at all, when either is placed in the menu or onto a page as a shortcode, then the shortcode is shown in menu, not the result of the shortcode,
please see image link for clarity and I assumed the remaining two shortcodes would work the same as [bsp-profile] i.e, just add and it works?
forum layout
[Profile label=’Edit My Profile’ edit=’y’]
Yes. I copied bbpress’s template to my child theme, and not I put my original template but I add codes to bbpress’s templates.
For example,
before “form-user-register.php”
<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" />
after “form-user-register.php”
<input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" maxlength="100" autocomplete="off" placeholder="half-width characters" />
Shortcodes are not allowed in bbpress post as default. You need to check your code/plugin which allows shortcodes in bbpress posts, there might be the problem.
We’ve been using wp-poll to insert polls into topics, but after moving web hosts and upgrading to bbPress 2.6.6 and WordPress 5.5 the shortcodes don’t appear to be working.
If I create a topic and put in the shortcode ‘[poll id=”93″]’, the post simply shows that shortcode. It doesn’t look like the shortcodes being rendered.
Has anyone seen this before, or have ideas on what I can try to get polls working again?
Thanks!
This is more a question to the author of the theme you are using. Start with this.
If the theme is not intended for bbpress, you can make a separate page (item in the menu) – for example, using shortcodes – to create page user profile.
The bbpress shortcodes are in the bbpress codex.
If this is still difficult, there are special plugins
Sorry I might not have explained what I’m trying to accomplish properly.
The shortcode I’m currently using on my live site is this:
[bbp-single-topic id=4657]
Just the normal bbpress shortcode to show the content of the actual topic. I used some CSS code to remove the post form and any replies. So it shows only the first post in a topic which is what I want to display as news on my front page from different forums. The shortcode you listed does show the stickies but just the actual forum topic and not the content of the first post of that forum topic.
I wasn’t sure if there was a shortcode that displays the content of the first post from “x” amount of topics from a specific forum.
So on my page I have three codes that are pulling a single topic from 3 different forums.
I think my style pack plugin might do what you want
bbp style pack
then use
[bsp-display-topic-index show=’1′ forum =’10’ template = ‘short’ show_stickies=’true’ noreply=’true’]
see
dashboard>settings>bbp style pack>shortcodes for how to use
this is what I might out in style pack
add_action ('bbp_template_before_single_forum' , 'bsp_template_notices') ;
add_action ('bbp_template_before_single_topic' , 'bsp_template_notices') ;
function bsp_template_notices() {
// Bail if no notices or errors
if ( ! bbp_has_errors() ) {
return;
}
// Define local variable(s)
$errors = $messages = array();
// Get bbPress
$bbp = bbpress();
// Loop through notices
foreach ( $bbp->errors->get_error_codes() as $code ) {
// Get notice severity
$severity = $bbp->errors->get_error_data( $code );
// Loop through notices and separate errors from messages
foreach ( $bbp->errors->get_error_messages( $code ) as $error ) {
if ( 'message' === $severity ) {
$messages[] = $error;
} else {
$errors[] = $error;
}
}
}
// Display errors first...
if ( ! empty( $errors ) ) : ?>
<div class="bbp-template-notice error" role="alert" tabindex="-1">
<ul>
<li>
<?php echo implode( "</li>\n<li>", $errors ); ?>
<a href="#new-post">
<?php _e('Click here to correct', 'bbp-style-pack') ; ?>
</a>
</li>
</ul>
</div>
<?php endif;
}
so what are you using to login – bbpress login widgets, shortcodes or what?
Hello, I use a widget bbpress that allow the option to display “members online” but I can’t separate the normal members and the admin members
Can I use shortcodes or a custom html to insert that options on my homepage? using elementor builder?
Hi there!
Check it out my new BBPress forum site with customs design and codes:
https://bolhabrasil.org/
Cheers!
Hello, my skills are too limited to do that. I’ve simply moved it carefully to be visible for all.
Can you please remove all our posts previous posts to clean the topic ?
TO CONCLUDE :
function rew () {
if ( is_user_logged_in() ) {
echo '<p><a href="http://your_url/new-posts"><div class="newposts">Show new posts</div></a></p>' ;
}
else
echo '<p><a href="http://your_url/new-posts"><div class="newposts">Show new posts</div></a></p>' ;
}
Put this into function.php of your child theme
.newposts {
float: left;
background-color:#DD9933;
padding: 5px 6px;
margin:5px 5px 2em 0;
}
.newposts a {
color:#f2f2f2 !important;
border:none;
border-radius:0;
box-shadow: none;
color:#ffffff;
font-size:13px;
}
And put that into your custom style.css. If your button doesnt appear while your loggued or while you’re not, take care of the margin and the padding of the CSS!
You will have to create a new page “new-posts”. Add [bbp-topic-index] to this page to display your topics in order (most recent ones). If you need a more customizable list, install BBP-Style Pack and go to the Shortcodes section.
Thank you for input
I found what caused issue.
the call for visual composer footer in a shortcode was:
apply_filters( ‘the_content’, $the_post->post_content );
The apply of do_shortcode to $the_post->post_content before echo fixed the text format output of shortcodes and footer now works.
Thank you.
Hi
This is a major issue with bbpress and I could not find a resolution to it. I found couple of similar requests but no one have full resolution.
Basically, if page can be recognized as is_bbpress() true than the footer shortcodes breaks.
How to fix that? Is there some patch?