Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 701 through 725 (of 6,780 total)
  • Author
    Search Results
  • #212652
    franpeppe
    Participant

    Not yet because its not safe to turn back to the default WP Theme.
    Thank you anyway for your support.

    #212651
    Chuckie
    Participant

    I have not really sure how to solve your issue. Have you tried with a default WordPress theme?

    Chuckie
    Participant

    So the warning raised was:

    > Undefined index: latest-user

    The code flagged was:

    "%LATEST_USER%" => $this->stats["latest-user"]

    I did a bit more research and stumbled upon:

    `
    if( $this->parent->option[‘last_user’] === “on” ) {
    $HTMLOutput[“last_user”] = $this->section_latestuser();
    }
    `

    At first I thought that latest-user needed to be changed to last_user, or vice-versa. But I continued the research of the code and arrived here:

    `
    array(
    ‘id’ => ‘last_user’,
    ‘label’ => __( ‘Latest Registered user’, ‘bbpress-improved-statistics-users-online’ ),
    ‘description’ => __( ‘Display the latest user to register to the site?’, ‘bbpress-improved-statistics-users-online’ ),
    ‘type’ => ‘checkbox’,
    ‘default’ => $this->defaults[‘last_user’],
    ‘class’ => ”
    ),
    `

    I decided to have a look at my bbPress Advanced Statistics settings and this was actually unset. I have now switched it on:

    View post on imgur.com

    Now the warning does not display. Also, it then occured to me that the code has this line:

    $this->stats = $this->stats_extra( $activity );

    That function does this:

    `
    private function stats_extra( $activity ) {

    if( $this->parent->option[“bbpress_statistics”] == “on” ) {
    // Add the bbPress Statistics
    $activity[“bbpress”] = $this->get_formatted_statistics();
    }

    if( $this->parent->option[“last_user”] == “on” ) {
    // Get the HTML latest usser
    $activity[“latest-user”] = $this->get_latestuser( true );
    }

    if( $this->parent->option[“most_users_online”] == “on” ) {
    // Get/set the most users ever online, users the active online users
    $activity[“most-users”] = $this->get_mostusers( $activity[“count”][“active”] );
    }

    return $activity;
    }
    `

    Therein is the problem. This function is conditionally populating the stats array based on user options. Makes sense, but, this function, makes assumptions:

    `
    private function allowed_tags() {
    // Store all of the strings currently replace
    $this->_tags = array(
    “%MINS%” => $this->parent->option[‘user_inactivity_time’],
    “%COUNT_ACTIVE_USERS%” => $this->stats[“count”][“active”],
    “%HOURS%” => $this->parent->option[‘user_activity_time’],
    “%COUNT_ALL_USERS%” => $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”],
    “%COUNT_ALL_GUSERS%” => $this->stats[“count”][“guests”],
    “%COUNT_ACTIVE_GUSERS%” => $this->stats[“count”][“guestsa”],
    “%USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“active”], ‘bbpress-improved-statistics-users-online’),
    “%GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guestsa”], ‘bbpress-improved-statistics-users-online’),
    “%ALL_USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
    “%ALL_GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
    “%USER_RECORD%” => $this->most_users( “record” ),
    “%USER_RECORD_DATE%” => $this->most_users( “date” ),
    “%USER_RECORD_TIME%” => $this->most_users( “time” ),
    “%LATEST_USER%” => $this->stats[“latest-user”]
    );

    // Apply any filters that may have been applied to the list of existing tags
    if( has_filter(‘bbpas_replacement_tags’) ) {
    $this->_tags = apply_filters( ‘bbpas_replacement_tags’, $this->_tags );
    }
    }
    `

    I will be upfront here – I don’t know how to adjust the code so that it will not raise a warning when the Last Registered User setting it not checked. As a result I switched it on.

    I just thought i would throw my findings out here as someone might be able to provide the tweak to make it correct.

    have a good day!

    #212532
    Milan Petrovic
    Participant

    @delta5 How the stats block looks like is visible to logged in users on my forums, but that can be controlled via settings, here is the demo forum with the feature enabled for the visitors: https://xscape.info/quantum-default/forums/. If you want to test the plugin on our demo website (full admin test), you can request demo here: https://www.dev4press.com/request-demo/.

    #212406
    Robin W
    Moderator

    bbpress is not particularly Xampp friendly, and without being able to see your site of ocurse it’s hard to start to problem find.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #212311
    Chuckie
    Participant

    My theme has settings to change layout for certain page types.

    For the “Blog / Archives” type I set it to show just the left side bar:

    https://www.publictalksoftware.co.uk/support-forums/

    But when you drill down to a forum, eg:

    Frequently Asked Questions

    It has two side bars again (2 bars is the site default).

    It does has a setting for “single page posts” but I was reluctant to tick that since we have the profile page, various login pages, search page etc.

    So how can we identify that this is a “forum view” or a “topic view” page and only show the one bar?

    #212296
    Milan Petrovic
    Participant

    By default, bbPress doesn’t make any AJAX calls with the exception of subscribe/favorite actions. You should determine what is making the calls (there should be ‘action’ argument sent with each AJAX request).

    #212210
    Robin W
    Moderator

    ok, you’ll need to edit a bbpress template using FTP

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    transfer this to your pc and edit

    you’ll need to remove the line that says

    <?php bbp_breadcrumb(); ?>

    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/content-archive-forum.php

    bbPress will now use this template instead of the original

    #212105
    Robin W
    Moderator

    ok, you would be better to have a child theme to your paid theme, so maybe consider that going forward

    Functions files and child themes – explained !

    but what you will need to do is

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

    transfer this to your pc and edit it to remove everything EXCEPT

    <?php

    /**
     * User Login Form
     *
     * @package bbPress
     * @subpackage Theme
     */
    
    // Exit if accessed directly
    defined( 'ABSPATH' ) || exit;
    
    ?>

    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, and not show the login

    If you do this in your paid theme, you will need to repeat it on every theme upgrade as that will wipe your changes out, but as long as you know that, you can place the file in your paid theme, just remember what you did ! a child theme maintains these changes.

    #212096
    #211980

    Topic: bbpress Feller at

    in forum Plugins
    pmanuel
    Participant

    Warning: Creating default object from empty value in /var/www/schlauti/wp-content/plugins/bbpress/.bbpress.php on line 1635

    cryptoking
    Participant

    I am a newbie on BBPress and just installed it and I’m in the process of setting it up. The problem is that the body columns are not aligning with the topic headings.

    I did some testing and this is the default layout which is not aligning.

    Forum: Imagination Room

    However if I create a new Page and insert the shortcode the alignment is perfect, so I’m not sure what’s happening, but I don’t want to create several dozen pages and insert shortcodes, so I’d like to figure out why it’s not aligning.

    test

    I’ve tried messing with some of the css but I couldn’t figure it out. Any help would be greatly appreciated.

    #211897
    robertherold
    Participant

    Hello,

    I use the Better Notifications for WP plugin to override the default WP emails.
    However, the email change confirmation email cannot be overwritten by the BNFW plugin.
    This is what they wrote:

    bbPress is overriding BNFW and has a higher priority when sending out notifications. This would be something that would have to be changed in bbPress in order to be compatible.

    If I deactivate bbPress and change the password on the WP profile page, the BNFW confirmation email will be sent.

    So the bug is in bbPress anyway, as it doesn’t allow to overwrite the confirmation email.

    How can this error be fixed?

    I appreciate any ideas!

    #211885
    Mike Witt
    Participant

    I’m trying to clarify for myself the situation regarding “freshness” and I have several questions about that. There’s been a lot of discussion about this and there are a number of tickets, but I’m having trouble putting it all together. I apologize for rehashing old ground.

    (1) Freshness vs Last Post

    Sometime in the last few releases things changed so that (at least by default) the top level forum shows “Last Post” where it used to show “Freshness.” Is this (1) A temporary measure until freshness is fixed, (2) A change in philosophy, or (3) Simply a change in the “default” of something that can be configured?

    (2) Freshness tickets

    When I search on trac for open tickets which mention freshness, I come up with: 1925, 2659, 2876, 3310, 3356. I’ve seen it mentioned in the forums a number of times that freshness is a known problem, but I don’t see that any of these tickets is (I’m not sure how to say it but) the “main ticket” for the underlying problem. Can anyone help me out with this?

    (3) bbp style pack

    In many of the conversations about freshness (and other problems like threading and indentation) bbp style pack is the only thing mentioned as a solution. I’m almost getting the impression that this plugin is considered kind of a necessary part of bbPress, in order for things to work properly. Comments?

    I’m still learning about bbPress and if anyone wants to point me to any “background” information or documentation that I *should* have already looked at, that would be appreciated.

    #211849
    Robin W
    Moderator

    you only need to set restrictions on the forums you wish to restrict, if you don’t set a forum to a group or groups, then it is public/private just as now. So you would only need to set this up for 5 forums.

    then you would go to dashboard>settings>bbp private groups>assign groups to roles
    and as students would get the ‘subscriber’ role, you’d set that a ‘students’ and tick the add group on first login.

    You then manually change the groups just for teachers.

    new users would be subscribers by default so get the student role.

    Do teachers have the subscriber role or do they get different?

    If you went down a template route, you would still need some way of differentiating teachers from students.

    crebspark
    Participant

    I need a Register button besides the Login button because the default bbpress settings only show the Login button. How can I add a Register button maam?

    crebspark
    Participant

    Hi,

    Can you help me figure out how to add a Register button beside the login button? I’m not talking about a rightside bar widget.

    I’m talking about the default view when someone tries to view a forum and is not logged in.

    Thanks

    Robin W
    Moderator

    bbpress just uses WordPress accounts.

    so if you want your existing users to use bbpress, then set the default role in dashboard>forums and the next time they log in, they will get this access.

    #211798
    Pete
    Participant

    Hi,

    I’m trying to add some detail to search results associated with replies to topics. By default, it would seem that if a search finds a hit in a particular topic post, it includes the name of the topic and the relevant forum in the header for the particular search result:
    Default Topic Result Header
    In contrast, a hit on a reply to a particular topic does not include any topic or forum information: Default Reply Result Header

    I thought I might be able to solve my problem by modifying the loop-search-reply.php template to include what looked like it might be the relevant code from the loop-search-topic.php template:

    
    <div class="bbp-topic-title-meta">
    
    	<?php if ( function_exists( 'bbp_is_forum_group_forum' ) && bbp_is_forum_group_forum( bbp_get_topic_forum_id() ) ) : ?>
    
    		<?php esc_html_e( 'in group forum ', 'bbpress' ); ?>
    
    	<?php else : ?>
    
    		<?php esc_html_e( 'in forum ', 'bbpress' ); ?>
    
    	<?php endif; ?>
    
    	<a>"><?php bbp_forum_title( bbp_get_topic_forum_id() ); ?></a>
    
    </div><!-- .bbp-topic-title-meta -->
    
    <?php do_action( 'bbp_theme_after_topic_title' ); ?>
    

    but it seems that was a little naive of me. This block of code certainly includes what could be the required information:Modified Reply Result Header but what I thought would be inserted as the forum name turns out to be the topic name.

    Looking at the above code, I can see why this might be—the relevant text, ‘bbpress’, in the code block above appears to be just some placeholder text, and is the same placeholder text used to reference the topic name. I had thought that the text replacement might be a little more context sensitive than it appears to be.

    So my question is, can anyone tell me how that text (‘bbpress’ in the above code segment, which is taken directly from the default loop-search-topic.php template) gets replaced, or more specifically I guess, can anyone tell me where to inject a function or the like to set this or some other piece of placeholder text (I appreciate that it may need to be different to the placeholder text being used for the topic name) to the relevant forum name?

    Thanks

    #211788

    Topic views are not standard in bbPress.

    By default, the problem with Views is they trigger database writes on pages that should only be performing database reads.

    We’ve considered ways of circumventing this, but have never seriously attempted to build it.

    Is there a simple fix for a non-programmer type guy?

    You could try installing: https://wordpress.org/plugins/gd-bbpress-tools/

    I forget if it offers it, but it does so much other stuff that maybe it will tide you over? 😁

    #211779
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    jensksa
    Participant

    I am experiencing a similar problem.

    I get the exact same error message, although the forum does render (ie. no blank page).

    As far as I understand, it appears to be because bbp_remove_adjacent_posts does not get called, and it tries to fetch adjacent posts with a default post_date of 0.

    #211727
    Robin W
    Moderator

    Just had a chance to dig further into this – bbpress will only let a keymaster set another keymaster, so if you’re not a keymaster yourself then by default you can’t do this.

    However this code should allow any admin to set a keymaster

    add_filter( 'bbp_is_user_keymaster', 'rew_allow_keymaster', 10 , 3 );
    
    function rew_allow_keymaster ($retval, $_user_id, $user_id) {
    	if (current_user_can( 'manage_options' )) $retval = true ;
    return $retval ;
    }

    Put this in your child theme’s function file – or use

    Code Snippets

    BUT THEN TAKE IT OUT AFTER you have set up another – as it makes all admins in effect keymasters.

    #211688

    In reply to: Database broken?

    Robin W
    Moderator

    I’m just a bbpress user who helps out here.

    I did not respond to allow and other community members to respond if they wished.

    I appreciated that you are frustrated, but you are using free software, and with that comes volunteer support. I’m not sure why you feel entitled to get someone to fix your problems for free and at a weekend.

    There are 300,000 bbpress sites, and I have been offering support on this forum for 6 years, and have seen most issues that bbpress has had over the years.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    #211687
    Robin W
    Moderator

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

Viewing 25 results - 701 through 725 (of 6,780 total)
Skip to toolbar