Search Results for 'codes'
-
AuthorSearch Results
-
January 26, 2021 at 1:57 pm #217845
In reply to: [bsp-profile] not Working for me
uksentinel
ParticipantSorry
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’]
January 26, 2021 at 1:46 pm #217843In reply to: [bsp-profile] not Working for me
Robin W
Moderatorthere are 6 shortcodes in style pack, can you clarify which 2 you mean?
Image didn’t help me 🙁
January 26, 2021 at 1:41 pm #217842In reply to: [bsp-profile] not Working for me
uksentinel
ParticipantNo 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?
[Profile label=’Edit My Profile’ edit=’y’]
January 22, 2021 at 9:33 am #217770In reply to: register file is not update
smith512
ParticipantYes. 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" />
January 13, 2021 at 4:27 pm #217512In reply to: Shortcodes not working (wp-poll)
wpturk
ParticipantShortcodes 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.
January 12, 2021 at 10:09 pm #217480Topic: Shortcodes not working (wp-poll)
in forum Troubleshootingadamisrael
ParticipantWe’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!
January 7, 2021 at 2:23 pm #217358In reply to: Acess default WP user page
neon67
ParticipantThis 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
December 23, 2020 at 2:39 pm #216917In reply to: First Post of Forum Topic On Page
erich199
ParticipantSorry 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.
December 22, 2020 at 2:50 pm #216906In reply to: First Post of Forum Topic On Page
Robin W
ModeratorI think my style pack plugin might do what you want
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
December 22, 2020 at 10:33 am #216900In reply to: First Post of Forum Topic On Page
bolhachefe
Participant[bbp-single-topic id=$topic_id]
More information at: https://codex.bbpress.org/features/shortcodes/#topics
December 18, 2020 at 2:58 pm #216806In reply to: Error messages are out of sight
Robin W
Moderatorthis 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; }
December 17, 2020 at 12:18 pm #216777In reply to: developing login re-direct issues
Robin W
Moderatorso what are you using to login – bbpress login widgets, shortcodes or what?
December 14, 2020 at 11:48 am #216690herdager
ParticipantHello, 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?
December 7, 2020 at 9:15 am #216445Topic: My new BBPress forum site
in forum Showcasebolhachefe
ParticipantHi there!
Check it out my new BBPress forum site with customs design and codes:
Cheers!
December 3, 2020 at 8:57 am #216390In reply to: How to add a custom button
akira010203
ParticipantHello, 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.
December 2, 2020 at 5:09 pm #216375In reply to: Any shortcodes in footer breaks on pages of bbpress
archux
ParticipantThank 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.
December 1, 2020 at 2:13 pm #216305Topic: Any shortcodes in footer breaks on pages of bbpress
in forum Troubleshootingarchux
ParticipantHi
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?
November 29, 2020 at 1:17 pm #216247In reply to: Topics browser not working
Robin W
Moderatorsorry, working across many things and missed that.
so that page is made up of ‘all topics’ and ‘recent topics’ – are these shortcodes on a page, or how is this page content created?
November 24, 2020 at 8:40 am #216160In reply to: Format of the bbPress topic links
Robin W
ModeratorCoding to do ID’s is possible I suspect, but I have no idea how to do that 🙂
This article suggests that urls are used for seo ranking
and says
A well-crafted URL provides both humans and search engines an easy-to-understand indication of what the destination page will be about.
Although URLs can include ID numbers and codes, the best practice is to use words that people can comprehend.
Just a thought.
November 9, 2020 at 5:09 pm #215783In reply to: Can AJAX be enabled for bbPress?
berry metal
ParticipantHi again,
I added this code:
if ( function_exists( 'bbp_enqueue_script' ) && function_exists( 'bbp_get_version' ) ) { bbp_enqueue_script( 'bbpress-engagements', 'js/engagements.js', array( 'jquery' ), bbp_get_version(), true ); }
so now it looks like this:
add_shortcode( 'bbpresscomments', function() { $output = ''; $current_id = function_exists( 'vcex_get_the_ID' ) ? vcex_get_the_ID() : get_the_ID(); $topics = new WP_Query( array( 'post_type' => 'topic', 'posts_per_page' => -1, 'fields' => 'ids', ) ); if ( $topics->have_posts() ) { // enqueue scripts on this next line... if ( function_exists( 'bbp_enqueue_script' ) && function_exists( 'bbp_get_version' ) ) { bbp_enqueue_script( 'bbpress-engagements', 'js/engagements.js', array( 'jquery' ), bbp_get_version(), true ); } foreach( $topics->posts as $topic ) { if ( get_the_title( $topic ) == get_the_title( $current_id ) ) { $output .= do_shortcode( '[bbp-single-topic id="' . intval( $topic ) . '"]' ); } } } return $output; } );
because I can see that code that enables all functionality including AJAX, is only enqueued for bbPress pages:
And it’s not enabled for bbPress shortcodes.
Is this right?
Could you please tell me what is wrong with my code, and why cannot I enqueue the scripts that will enable AJAX for the shortcodes?
Instead of proper enqueuing, my code makes the buttons not work at all, when I click on them, nothing happens.
October 27, 2020 at 5:04 am #215470Robin W
ModeratorOctober 27, 2020 at 4:26 am #215468Topic: How can I insert short codes under/above topic pages?
in forum Troubleshootingtruth4vahid
ParticipantHow can I insert short codes under/above each topic page or whole topic and reply page?
October 26, 2020 at 6:37 am #215457In reply to: Customization
wenlu
ParticipantCan I fix the problem by changing its codes in the specific files ?
If yes, due to I’m a new to WordPress, I don’t even know where should I edit the code.October 12, 2020 at 10:39 am #215163In reply to: Log In page
Robin W
Moderatorsorry, one of the many annoying thing now that WordPress has blocks is that it doesn’t like shortcodes unless written in a special way – I’ll release a new version shortly, but yes you add it as a shortcode block in a page, and that is your forums page
October 12, 2020 at 9:22 am #215160In reply to: Log In page
saigner
ParticipantHi @robin-w, just jumping on this thread as it is the same topic.
I installed your bbpress style back a few days ago and it is up on my website. However, I can’t seem to figure out where to put the shortcodes to make them work. Do I need to put them in the files themselves or can I put them on in the page content? When I have tried to use the shortcode to force login on the forum index page for non-members (by putting it in the page content section), I get an error message that the “response received is not a valid JSON file.”
Many thanks for all your hard work on this!
-
AuthorSearch Results