Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'codes'

Viewing 25 results - 51 through 75 (of 1,676 total)
  • Author
    Search Results
  • #234376
    enkoes
    Participant

    Hi, after struggling some time trying to make profile page full width, I give up.

    The theme I’m using is Magbook. I found that there is only one theme template page that has no sidebar, ie, magbook-template.php. I copied this file to my child theme root directory, and rename it as bbpress.php. However it doesn’t make any changes to the profile page.

    I have read some other similar topics, I guess we need to “inject” custom php codes into the bbpress.php. If this is correct, can you provide me the relevant php codes for bbpress.php that make it works?

    One more thing I have doubt is that, let say bbpress finally adopted bbpress.php as default template, all other forum & topic pages will turn out no sidebar altogether, I presumed, which is against my wish. What I want is profile page FULL WIDTH, forum/topic page WITH SIDEBAR.

    Pls guide me.
    Regards

    #234053
    enkoes
    Participant

    Hi Robin, after spent some time trying to understand the codes, I tried and finally got the results that I wanted.

    For loop-topics.php,
    I change:

    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
    				? esc_html_e( 'Replies', 'bbpress' )
    				: esc_html_e( 'Posts',   'bbpress' );
    			?></li>

    to:
    <li class="bbp-topic-reply-count"><?php esc_html_e( 'Replies', 'bbpress' ); ?></li>

    and for loop-single-topic.php,
    I change:
    <li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
    to:
    <li class="bbp-topic-reply-count"><?php bbp_topic_reply_count(); ?></li>

    Since I don’t have any knowledge about PHP codes, I’m not sure what I did is correct or not, anyway at least work on my browser.

    Regards

    #233827
    Robin W
    Moderator

    ok, based on that I have no idea what you mean by embedding.

    bbpress does not have a ‘login page’ it has shortcodes and widgets.

    the template used by bbpress for login is

    bbpress\templates\default\bbpress\form-user-login.php

    to customise :

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-user-login.php

    transfer this to your pc and edit as desired

    and save

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress

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

    Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-user-login.php

    bbPress will now use this template instead of the original

    #233683
    enkoes
    Participant

    Hi, I’m thinking of hiding some items in forum & topic page as follows:

    Forum page:
    1) to hide forum information
    2) to hide topic viewing information
    see screenshot: https://paste.pics/KS7KD

    Topic page:
    1) to hide topic information
    2) to hide post viewing information
    3) to hide topic header (author & posts)
    see screenshot: https://paste.pics/KS7MF

    Are there any CSS codes that can achieve that?

    enkoes
    Participant

    Hi Robin, where do I specify the FORUM ID in the codes given?

    #233450
    Mauricevdh
    Participant

    Hello,

    I would like to have an area under the topic and above the first reply. This area can be used for html or shortcodes. Best should be able to give the input per topic.

    Is there a plugin available (did extended search without results) or can somebody program this for me?

    http://www.zwembadforum.eu

    #233446
    dasword
    Blocked

    Thanks, how about see only author function (specific user reply filter), my blog subscribers very like to create long story(novel) in the forum under a topic, but they will split those stories into many chapters as update, for example, one of them post one chapter once a week, when he posted a chapter, there are many comments. I would like a function that can filter specific user reply under a topic, so reader can see the full story more clearly. Is there anywhere to add these this function to bbpress forum? Either Plugin or filter hook code or other codes, cherish your replies.

    #233441
    dasword
    Blocked

    I’m here for looking 2 functionalities for bbpress. First of them is quote, it is quite common function I think, if you click the quote function under the reply, it will copy the whole thing of the reply and paste in your textarea, this make people easy to deal with complicated answer sometimes. Second is see only author function, my blog subscribers very like to create long story(novel) in the forum under a topic, but they will split those stories into many chapters as update, for example, one of them post one chapter once a week, when he posted a chapter, there are many comments. I would like a function that can filter specific user reply under a topic, so reader can see the full story more clearly. Is there anywhere to add these 2 functions to bbpress forum? Either Plugin or filter hook code or other codes, thx for helping.

    #233319
    Asiqur Rahman
    Participant

    Hope this helps. put these codes into your theme functions.php file.

    
    add_filter( 'bbp_get_reply_author_url', 'lp_member_profile_links' );
    add_filter( 'bbp_get_topic_author_url', 'lp_member_profile_links' );
    add_filter( 'bbp_get_author_url', 'lp_member_profile_links' );
    function lp_member_profile_links( $url ) {
    	if ( ! empty( $url ) ) {
    		return $url . 'profile';
    	}
    	
    	return $url;
    }
    
    #233152
    bobjgarrett
    Participant

    I am using WordPress 6.1.1 and bbPress 2.6.9.
    I have a forum where if I use the standard forum page e.g. mysite.com/forum/members-forum there are no problems and pagination of the large number of topics works correctly producing a URL of say mysite.com/forum/members-forum/page/3/
    However, I wish to have a page with some other content at the to so are using a short-code to list the forum topics. The URL for that page is mysite.com/members-forum. However, on this page pagination does not work. The URL for the third page is mysite.com/members-forum/page/3/ but this produces an error 404.
    I have tried various solutions found from others having a similar problem including: using a standard theme, resaving the permalink setting, adding a bp-custom.php file with some code in it etc. but it still fails.
    Can anyone suggest a solution?

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

Viewing 25 results - 51 through 75 (of 1,676 total)
Skip to toolbar