Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 701 through 725 (of 32,358 total)
  • Author
    Search Results
  • #234436
    wpturk
    Participant

    Sidebar is related to your wordpress theme (template file). Select a full-width theme template file in your forum settings. If you are displaying your forums via shortcode, the shorcode can be placed on full-with pages.

    #234429
    Robin W
    Moderator

    any chance that you could post the code you developed?

    #234428
    crsikes01
    Participant

    I have a site that was experiencing the same exact issue. I wasn’t able to determine the root cause, but I did manage to develop a workaround.

    1. Create a new custom shortcode that captures url search term parameters and sends them to the default bbp-search shortcode’s search parameter.

    2. Create a new page that includes the new shortcode from step 1.

    3. Modify the search form from the template forum-search.php such that the action is now the page created in step 2.

    It is a bit wonky but it seems to work fine, including the search result pagination. It doesn’t address the root cause of the 500 error but at least site users can use the forum search now.

    #234424
    wpturk
    Participant

    Hi Diana,

    you can get this info from mysql DB in case you have access: (ex. via phpmyadmin)

    SELECT user_login FROM wp_users WHERE id not in (SELECT DISTINCT post_author FROM wp_posts) AND id not in (SELECT DISTINCT user_id FROM wp_comments) ORDER BY user_registered ASC;

    You need to change wp_ if you have another prefix for your mysql tables.

    After you’ve checked the list, you can change the sql statement and DELETE.

    I hope this helps.

    #234379
    enkoes
    Participant

    This is the bbpress.php from my theme:

    <?php
    /**
     * Template Name: Magbook Template
     *
     * Displays Magazine template.
     *
     * @package Theme Freesia
     * @subpackage Magbook
     * @since Magbook 1.0
     */
    get_header(); ?>
    <div class="wrap">
    	<?php 	if( is_active_sidebar( 'magbook_primary_fullwidth' ) && class_exists('Magbook_Plus_Features') ){
    		echo '<div class="primary-full-width clearfix">';
    			dynamic_sidebar ('magbook_primary_fullwidth');
    		echo '</div>';
    	} ?>
    	<div id="primary" class="content-area">
    		<main id="main" class="site-main" role="main">
    			<?php 
    			if( is_active_sidebar( 'magbook_template_section' )){
    				dynamic_sidebar( 'magbook_template_section' );
    			}
    
    		the_content(); ?>
    		</main><!-- end #main -->
    	</div> <!-- end #primary -->
    	
    		<?php if( is_active_sidebar( 'magbook_template_sidebar_section' )){ ?>
    		<aside id="secondary" class="widget-area" role="complementary" aria-label="<?php esc_attr_e('Side Sidebar','magbook');?>">
    			<?php dynamic_sidebar( 'magbook_template_sidebar_section' ); ?>
    		</aside> <!-- end #secondary -->
    	<?php	}
    	if( is_active_sidebar( 'magbook_seondary_fullwidth' ) && class_exists('Magbook_Plus_Features') ){
    		echo '<div class="secondary-full-width clearfix">';
    			dynamic_sidebar ('magbook_seondary_fullwidth');
    		echo '</div>';
    	} ?>
    	
    </div><!-- end .wrap -->
    
    <?php get_footer();
    #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

    #234345
    webcreations907
    Participant

    Have you tried setting WP_DEBUG to true in wp-config.php to see if there are any errors?

    #234333
    Robin W
    Moderator

    so can you post the entire code you are using please

    #234324
    lesd1315
    Participant

    I get the following error using the code in my functions.php file

    PHP Warning: strtotime() expects parameter 1 to be string, object given

    the line cited in the above warning is
    $topic_date = strtotime( get_post( $topic_id, 'post_date', true ) );

    #234266
    Robin W
    Moderator
    #234265
    Robin W
    Moderator
    #234252
    Robin W
    Moderator

    I am getting

    Your access to this site has been limited by the site owner
    Your access to this service has been limited. (HTTP response code 503)

    #234196
    Robin W
    Moderator

    simply asking the same question twice will not get you any further, as I have said :

    looks like you are using the cloux theme which claims to be bbpress integrated.

    I suggest you reach out to the theme authors for support

    Step by step guide to setting up a bbPress forum – Part 1

    #234190

    In reply to: forum problem

    Robin W
    Moderator

    EITHER :

    function rew_remove_private_title($title) {
    	return '%s';
    	}
    add_filter('private_title_format', 'rew_remove_private_title');

    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

    OR

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Forum Display and select item 4

    #234189
    Robin W
    Moderator
    #234184
    Robin W
    Moderator

    bbpress works on bbpress roles – blocked, spectator, participant, moderator, keymaster

    see

    bbPress User Roles and Capabilities

    #234179

    In reply to: WP 6.1.1?

    Robin W
    Moderator

    do you have an expectation for release on 5.2.8?

    today or tomorrow ! – known minor issue – just need to write 6 lines of code, test and release !

    #234116
    Robin W
    Moderator

    php 8.1 is a lot more fussy

    try this (untested but should work)

    function private_content_redirect_to_login() {
      global $wp_query,$wpdb;
      if (is_404()) {
        $host = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        $path = dirname($_SERVER['REQUEST_URI']);
        $forums = "forum";
        $location = "https://direitoshumanosangola.org/not-logged-in/";
    		if(strpos( $path, $forums ) !== false){
    		  wp_safe_redirect($location);
    		  exit;
    		}
      }
    }
    #234107
    Félix Martínez
    Participant

    Hi there.
    I’m trying to install bbPress in a WP new enviroment.
    Plugin is activated as usual, but when I create a new forum, topic or debate, all front-end pages associated are blank.
    I have tried to replicate the problem in two different servers and it persists.

    
    ### wp-core ###
    
    version: 6.1.1
    site_language: es_ES
    user_language: es_ES
    timezone: +00:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 1
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /usr/home/almazendesign.com/web/testing
    wordpress_size: 849,97 MB (891255109 bytes)
    uploads_path: /usr/home/almazendesign.com/web/testing/wp-content/uploads
    uploads_size: 110,55 MB (115924400 bytes)
    themes_path: /usr/home/almazendesign.com/web/testing/wp-content/themes
    themes_size: 2,51 MB (2629926 bytes)
    plugins_path: /usr/home/almazendesign.com/web/testing/wp-content/plugins
    plugins_size: 4,73 MB (4962753 bytes)
    database_size: 2,13 MB (2228224 bytes)
    total_size: 969,89 MB (1017000412 bytes)
    
    ### wp-active-theme ###
    
    name: Twenty Twenty-Three (twentytwentythree)
    version: 1.0
    author: el equipo de WordPress
    author_website: https://es.wordpress.org
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor
    theme_path: /usr/home/almazendesign.com/web/testing/wp-content/themes/twentytwentythree
    auto_update: Desactivado
    
    ### wp-plugins-active (2) ###
    
    bbPress: version: 2.6.9, author: The bbPress Contributors, Actualizaciones automáticas desactivadas
    WP Reset: version: 1.97, author: WebFactory Ltd, Actualizaciones automáticas desactivadas
    
    ### wp-plugins-inactive (4) ###
    
    BJA VLE Virtual Learning Enviroment - Bjäland: version: 1.0.0, author: Bjäland, Actualizaciones automáticas desactivadas
    My trades - WordPress Heroes: version: 1.0.0, author: WordPress Heroes - Félix Martínez, Actualizaciones automáticas desactivadas
    WPH Base Plugin - Bjäland: version: 1.0.0, author: Bjäland - Félix Martínez, Actualizaciones automáticas desactivadas
    WPH Chat: version: 1.0.0, author: WordPress Heroes - Félix Martínez, Actualizaciones automáticas desactivadas
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: 1691
    imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
    imagick_version: @PACKAGE_VERSION@
    file_uploads: File uploads is turned off
    post_max_size: 35M
    upload_max_filesize: 35M
    max_effective_size: 35 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: unknown
    
    ### wp-server ###
    
    server_architecture: Linux 5.10.0-19-amd64 x86_64
    httpd_software: Apache
    php_version: 8.2.1 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 10000
    time_limit: 30
    memory_limit: 192M
    max_input_time: 60
    upload_max_filesize: 35M
    php_post_max_size: 35M
    curl_version: 7.74.0 OpenSSL/1.1.1n
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.5.17-MariaDB-1:10.5.17+maria~deb11-log
    client_version: mysqlnd 8.2.1
    max_allowed_packet: 134217728
    max_connections: 500
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /usr/home/almazendesign.com/web/testing/wp-content
    WP_PLUGIN_DIR: /usr/home/almazendesign.com/web/testing/wp-content/plugins
    WP_MEMORY_LIMIT: 192M
    WP_MAX_MEMORY_LIMIT: 192M
    WP_DEBUG: true
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Sin definir
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    
    

    Thanks in advance.

    #234104
    Robin W
    Moderator

    untersted , but should be

    echo '<a " href="' . esc_url( bbp_get_user_profile_url( $user) ).'topics/' . '">' . 'Topics' . '</a>';

    #234099
    anthvale
    Participant

    Looking for a line of code or a post meta field name to retrieve a link for the current user’s topics page. Is this something you can help me with?

    #234081
    Robin W
    Moderator

    so if you remove the code that you had and just use the plugin, does this fix?

    #234055

    In reply to: Help with installation

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

    #234030
    Robin W
    Moderator

    bbp style pack

    lets you style your forums

    you can also use the translations tab of this to change Posts to Replies

    there is also

    bbPress Styling Crib

    which contains styling guides

Viewing 25 results - 701 through 725 (of 32,358 total)
Skip to toolbar