Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 151 through 175 (of 1,687 total)
  • Author
    Search Results
  • #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

    #214920
    Jason
    Participant

    I’m having trouble getting shortcodes for a picture gallery to work in topics. Did some looking around here and it seems I may need a shortcode plug in and also possibly a shortcode whitelist plugin to go with it. I looked at this one bbPress2 shortcode whitelist, but it is a bit old and hasn’t been tested with 5.5.1. I’m running 7.4.10 PHP, LiteSpeed webserver, 2.6.5 bbpress.

    The shortcode for a photo gallery shows up in the post as text but that is all. https://transmissiontuner.com/blog/forums/topic/allison-bellhousing-types/

    I asked for support on this from the photogallery plugin and they said it was a bbpress problem.
    thanks!

    #214869
    Robin W
    Moderator

    um…that’s what shortcodes are for ???

    if you just want the shortcode displayed without bbpress interpreting it, then use the ‘code’

    eg

    [model_viewer ID'...']

    #214829
    graugart
    Participant

    First open this URL to bypass the “coming soon”: https://www.defensivebjj.com/?bypass=turtlez

    Then here is a page that should display the topics index: https://www.defensivebjj.com/members-forum-test/

    These are the shortcodes I am trying (both bbstyle pack and bbpress)

    [bsp-display-topic-index show=”20″ forum =”611″ search=”no” breadcrumb=”no”]

    [bbp-single-forum id="611"]

    #214697
    Robin W
    Moderator

    no, the main forum page would not list the topics for a forum. If you only have one forum, then you can use shortcodes to display just that forum, and your forum will then be a list of topics.

    truth4vahid
    Participant

    Guest can’t use editor to reply or create topic correctly ? When the guest use editor to justify text or etc, after submitting, codes appears without doing their functions.
    Something like this:

    #214170
    neon67
    Participant

    For information. Solution Found = Tag Groups Plugin

    You can create several general pages(shortcodes, widjets…) with different profiles and group to one taxonomy bbpress, blogs, woocommerc… according to many characteristics.

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