Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 76 through 100 (of 1,687 total)
  • Author
    Search Results
  • #232807
    Robin W
    Moderator

    ok, install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>shortcodes

    and you’ll see [bsp-display-topic-index] with lots of options including picking from selected forums – insert this in a text/html/shortcode box – if gutenberg, then a shortcode box.

    #232691
    Robin W
    Moderator

    you can use the shortcodes

    Shortcodes

    #232357
    Tom Ingalls
    Participant

    I’m been exploring different view shortcodes but I can’t make it seems to work.

    I wanted to display both latest topics and most popular topics at the same time in the home page.

    I use [bbp-display-topic-index show=’5′ forum =’10,11,12′] or [bbp-single-view id=’popular’] and [bbp-single-view] but only one view is showing up.

    #232283
    Nowarah
    Participant

    hello, I need to change the css class”bbp-template-notice” of the returned html in the function bbp_template_notices() exist in includes/common/template.php but i dont see any filter in it , how this can be done?

    the function:

    function bbp_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 ); ?></li>
    			</ul>
    		</div>
    
    	<?php endif;
    
    	// ...and messages last
    	if ( ! empty( $messages ) ) : ?>
    
    		<div class="bbp-template-notice">
    			<ul>
    				<li><?php echo implode( "</li>\n<li>", $messages ); ?></li>
    			</ul>
    		</div>
    
    	<?php endif;
    }
    #232038

    In reply to: Order of search result

    samsanatco
    Participant

    Hello
    Can you change the theme codes yourself?

    #231064
    milfuegos
    Participant

    wordpress 6..0.2
    bbpress 2.6.9

    Topic de prueba en CONSULTA DE REGLAS


    Theme Avada
    Hi
    In replies, does not show any bbcodes toolbar as i thought it did.
    Installed gdtools and gd attackment
    How can i offer a toolbar for users?
    for bbcodes or format and embeds
    thanks
    Regards

    #230234
    rinh
    Participant

    My post disappeared and I’m unable to post it again: I’ll try again

    I messed around with the conditions in the theme builder last night and I found working solutions 🙂

    Elementor template for single topic and single forum

    This template will work for single topics (those pages where you read a topic and can reply) and single forum (where you see a list of topics, sometime called boards or category). Both of these act as single posts. Make a Single post template according to your needs and in the container/section where you want bbPress itself put an Archive Posts widget and set the skin to Full Content. It’s going to look like your blog posts in Elementor editor, but it’s normal.

    Save the template with the following conditions:

    Include: All Singular
    Exclude: Posts (unless you want the same template for your posts)
    Exclude: any custom post types you may have
    Exclude: Pages (just to be safe)
    Exclude: you may need to exclude additional things according to your needs.

    Elementor template for forum index

    This template will work for the forum index only. Create and Archive template according to your needs. In the container/section where you want bbPress itself put bbPress forum index shortcode which can be found here: https://codex.bbpress.org/features/shortcodes/

    Save the template with the following conditions:

    Include: Forums Archive

    #230092
    wdseocompany
    Participant

    Hi there,

    Just wondering if anyone would be able to assist with an issue I’m experiencing on a site we’re working on. Unfortunately unable to share a link due to the nature of the project.

    Summary: When clicking on the edit button on the front end of topics as any role it redirects to a page showing all posts, on all forums in date order.

    Setup: The way this information is pulled in to the page is using the shortcodes to pull in the topic information, using PHP to get the id of the page (in turn, the topic), adding it to the shortcode and then executing it.

    This seems to be working well to date aside from the editing of the topic; as the reply function is working nicely. Basically as soon as it pops in the /edit at the end of the URL it doesn’t show the right info.

    Any advice would be fantastic, again I know it is difficult without a URL however any suggestions would be great.

    Kind Regards,
    Matt P

    #229859

    In reply to: Shortcodes and WP 6.0

    Robin W
    Moderator

    🙂 not as far as I know – many thousands of plugins use shortcodes, and WP would create massive issues if they stopped them.

    #229857

    In reply to: Shortcodes and WP 6.0

    Robin W
    Moderator

    So is this one article, or many, is it written by someone with expert knowledge or does it cite some authority?

    reddit is just people chatting, so without anything more substantive, I can’t say, I’ve seen nothing.

    Shortcodes just execute the same code that a block would, just with a different initiation, so hard to see how anyone can say they are slow.

    There’s a flat earth community on reddit as well 🙂

    #229849

    In reply to: Shortcodes and WP 6.0

    neon67
    Participant

    On reddit ))))) Are these rumors?
    Okay, what’s the best way integrate bbpress with Guttenberg’ blocks today?
    Only shortcodes or some other method…

    #229842

    In reply to: Shortcodes and WP 6.0

    Robin W
    Moderator

    However, I read that shortcodes are already outdated and work quite slowly.

    where did you read this?

    #229834
    neon67
    Participant

    I’m inserting a tracker shortcode into the main page.
    However, I read that shortcodes are already outdated and work quite slowly.
    What is the shortcodes alternative ?
    Is there a more modern way to paste Guttenberg blocks?

    Robin W
    Moderator

    🙂 The problem is that I’d have to work out how to do it first !! so lots of code searching.

    So a bit like you wanting some hints on how to solve a crossword clue – until I’ve solved it, I can’t help you and then I might as well give you the answer 🙂

    I’d suspect it is to do with resetting globals

    best offer I can have is download the bbp_style_pack plugin, and navigate to /includes/shortcodes.php

    the bsp-display-topic-index does topics within a page, and line 34 is a link to the query which filters these to the settings.

    so if you copied that function and all it’s sub functions, renamed them all to prevent conflict, and then if you used the guts of bbp_get_user_topic_subscriptions to replace the query, that might get you close.

    Once done for topics, then you could re-write for forums.

    Best I can do

    beachcalsix
    Participant

    Hi, the error codes were found in my files in the back end/ftp. The error email is only sent to me while bbpress is activated. It has been hard to find out what is causing this. I tried deactivating youzify as well as buddypress. So far no more error emails have been received but I’m at a loss as to where it’s coming from exactly and how to correct it. My site needs these 3 plugins to function as well as the bbpress private groups plugin I have. My only theory is that the privacy function is conflicting with the notifications for some reason but like I said, it’s hard to pinpoint. My host is unsure and said to try asking bbpress. Maybe someone has a similar issue? I’ll keep researching and if I find an answer, I’ll post it here.

    Steveorevo
    Participant

    Very nice work with the style pack Robin! I do have one issue with Mega Max menu compatibility. For whatever reason, it doesn’t look like shortcodes are being processed when style pack is activated (which is how MegaMax allows menus to be embedded).

    Otherwise I’d recommend your style pack for bbPress users as this “simply works” to deliver the forum styling to Twenty Twenty Two without having to painfully apply one’s own CSS rules to make it marginally pretty.

    For those willing to go that far, I found that simply adding a basic, default template page as described on WordPress.org will do the trick. Supposedly block editor doesn’t care for/use PHP template pages anymore so it’s otherwise ignored.

    For simplicity, I just replace Twenty Twenty Two’s otherwise empty index.php with the “skinny” template index.php I created here:

    https://gist.github.com/Steveorevo/96d8015bcf353221e1cf0cd6b89bb766

    #228781
    uisneach
    Participant

    Hi,
    I’m using WordPress 5.9.3 and bbPress 2.6.9.
    I have checked the option for “Allow users to subscribe to forums and topics” in the bbPress settings. However, I don’t see the Subscribe/Unsubscribe button/link above a Forum. I do see the option to subscribe to a Topic when replying to a topic. I’ve tried viewing the forum while logged in with different user roles including Administrator but still no joy.

    I have even tried creating my own shortcodes to try and output the subscribe link but it doesn’t output anything. e.g. while in the loop, bbp_forum_subscription_link( array( ‘before’ => ”, ‘subscribe’ => ‘+’, ‘unsubscribe’ => ‘×’ ) )

    Is there something I’m missing?

    #228312
    DeepBlue
    Participant

    Hi Robin

    How can i show unread messages with your plugin ?

    i suppose it is with shortcodes, but i didnt find a shortcode to show unread messages

    i want to show unread messages on a dedicated page, so i would need a shortcode

    thanks 🙂

    #228201
    ollietubb1
    Participant

    Thanks Robin,

    I thought that for some reason I was unable to use shortcodes in my particular situation but the project has been a long build and I have forgotten why! Will have a fresh look.

    Thank you,
    Ollie

    #227958
    ibergstrom
    Participant

    Hello,

    On my staging site, k9fitness1dev.wpengine.com/ for my client, I installed BBPress. The forum page works fine, but when I try to open a topic page, it shows the content from blog posts that were published a super long time ago. I tried unpublishing the blog posts, but it still shows these contents.

    I am using WP version 5.8, bbPress 2.6.9, the enfold theme which is to date, and I believe that this glitch has something to do with the Avia advanced page builder, because the content that is generating shows a bunch of short codes that look like avia shortcodes.

    I tried to repair the forums, under the forum settings, but this did not cause any changes.

    Thanks in advance for your help.

    caitlynn0910
    Participant

    Hi. Nice one! this is also my exact concern, I’m very thankful to see this in the forum. It is also a big help for me, I successfully fixed and corrected my codes. Thanks again.

    #227440
    ollietubb1
    Participant

    I would like to add a title banner to all my forum pages so that it is consistent with the rest of the website.

    This page is an example of what I would like it to look like – wbc1.otiscreative.co.uk/forum-home/ – this is created with Divi though with shortcodes which doesn’t work so this is just for visual representation.

    So, I think I am after a way to inject this title banner into the forum pages, perhaps using the functions.php file, I am not entirely sure but would really appreciate some guidance on how to crack this.

    This is my current forum layout – wbc1.otiscreative.co.uk/forums/

    Thanks so much,
    Ollie

    PS. I am using latest version of WP and bbPress.

    #227439
    #226668
    redelefant
    Participant

    Website: https://jewishwomenofwisdom.org
    wordpress version: 5.8.3
    bb press version: 2.6.9

    I have a WordPress website with Restricted content pro (membership plugin), bbpress and buddy press. There are some forum pages, that are pages with bb press shortcodes and blocked with Restricted content pro and its locked message for logged out users appears(such as https://jewishwomenofwisdom.org/forum/ OR https://jewishwomenofwisdom.org/new-topic/). That is working fine. However, pages generated from the post type such as the archive page https://jewishwomenofwisdom.org/forums/, aren’t blocked and can be accessed (and a list of categories can be seen). Then when a logged OUT user tries to click on a topic to see topic content, it send them to a funny login (not restricted content pro) and then when they click the “log in” button, (whether or not the username and password fields are filled in) in they are redirected to the regular RCP login. That is an extra step. How do I get rid of the middle step?

    (not sure if this info is relevant: Under Restrict – buddypress , I set that “Redirect to page” to a page called “locked content”.)

    Thank you in advance.

    #225855
    Robin W
    Moderator

    your theme/developer has added the ‘no-js’ class to the very top, hence why the other codes are not working.

    can you try this snippet

    add_action( 'wp_footer', 'rew_supports_js' );
    
    function rew_supports_js() {
    	echo '<script>document.documentElement.className = document.documentElement.className.replace(/\bno-js\b/g, '') + " js ";</script>';
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

Viewing 25 results - 76 through 100 (of 1,687 total)
Skip to toolbar