Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 151 through 175 (of 1,693 total)
  • Author
    Search Results
  • #217512
    wpturk
    Participant

    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.

    #217480
    adamisrael
    Participant

    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!

    #217358
    neon67
    Participant

    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

    #216917
    erich199
    Participant

    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.

    #216906
    Robin W
    Moderator

    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

    #216900
    bolhachefe
    Participant

    @erich199

    [bbp-single-topic id=$topic_id]

    More information at: https://codex.bbpress.org/features/shortcodes/#topics

    #216806
    Robin W
    Moderator

    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;
    
    }
    #216777
    Robin W
    Moderator

    so what are you using to login – bbpress login widgets, shortcodes or what?

    herdager
    Participant

    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?

    #216445
    bolhachefe
    Participant

    Hi there!

    Check it out my new BBPress forum site with customs design and codes:

    https://bolhabrasil.org/

    Cheers!

    #216390
    akira010203
    Participant

    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.

    #216375
    archux
    Participant

    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.

    archux
    Participant

    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?

    #216247
    Robin W
    Moderator

    sorry, 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?

    #216160
    Robin W
    Moderator

    Coding 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

    https://moz.com/learn/seo/url

    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.

    #215783
    berry metal
    Participant

    Hi 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:

    https://github.com/bbpress/bbPress/blob/afa6030c3e27c4fe582743074a603d25b5e4de48/src/templates/default/bbpress-functions.php#L151

    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.

    #215470
    Robin W
    Moderator
    truth4vahid
    Participant

    How can I insert short codes under/above each topic page or whole topic and reply page?

    #215457

    In reply to: Customization

    wenlu
    Participant

    Can 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.

    #215163

    In reply to: Log In page

    Robin W
    Moderator

    sorry, 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

    #215160

    In reply to: Log In page

    saigner
    Participant

    Hi @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!

    #215136
    visuallycurious
    Participant

    Hey guys,

    I installed Bbpress on one of my multisites and i have used a plugin to allow users to register tto resgister rather than allowing registrations at the network level.

    I have used the bbpress shortcodes for the registration page and the login page however when i test registering as a new user it redirects me to a local-signup page which i assume is happening due to it being a multisite? Is there any way to have only one form that meeds to be filled in? Do i need a user and registration plugin?

    The main issue i have is that qhen i do complete the registration process thw new user reveives no email…

    I then added a plugin for Smtp, configured it and it works in itself but not diffrrence to the bbpress registration process.

    Not sure how to fix the issue, i also tried allowing users to register at a network level but made no difference?

    Do i need to add somethinking like the Ultimate user registrations plugin or wp forms? Will that make a difference?

    Im ising using latest version of wp and bbpress on my site…

    #215044
    kriskl
    Participant

    I use “bbPress Do Short Codes” plugin

    maybe it will help

    #215000

    In reply to: Log In page

    Robin W
    Moderator

    ok, so I’ve created a shortcode that should do this

    I’ve added this to my bbp-style-pack plugin

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and you’ll see how to add the shortcode there

    #214970
    truth4vahid
    Participant

    How can I insert short codes under topic pages?

    englishteam.ir

Viewing 25 results - 151 through 175 (of 1,693 total)
Skip to toolbar