Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 676 through 700 (of 6,780 total)
  • Author
    Search Results
  • #213284
    fl3xtra
    Participant

    Hi all

    I have two issues. First is that the area
    Allow users to edit their content for xx minutes after posting
    If checked, setting to “0 minutes” allows editing forever.

    I can’t change it to 0. Default keeps going to 5 minutes.

    Secondly if a reply has been edited, I have to manually approve it. Is there a way to disable that so it automatically approves?

    #213263
    lonelydime
    Participant

    It’s been about 10 years since I’ve attempted anything WordPress or PHP for that matter, but while this works it feels like it’s going to break in an update.

    add_filter( 'bbp_default_styles', 'rew_dequeue_bbpress_css' );
    
    function rew_dequeue_bbpress_css ($defaults ){
    	fixed_bbp_enqueue_style("bbp-default", "css/bbpress.css", array(), bbp_get_version());
    	unset ($defaults['bbp-default']) ;
    	return $defaults ;
    }
    
    function fixed_bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
    	$located = str_replace('/bitnami/wordpress', '', $located);
    		
            // Enqueue if located
            if ( ! empty( $located ) ) {
    
                    // Make sure there is always a version
                    if ( empty( $ver ) ) {
                            $ver = bbp_get_version();
                    }
    
                    // Make path to file relative to site URL
                    $located = bbp_urlize_enqueueable( $located );
    
                    // Register the style
                    wp_register_style( $handle, $located, $deps, $ver, $media );
    
                    // Enqueue the style
                    wp_enqueue_style( $handle );
            }
    
            return $located;
    }

    From what I can tell your snippet does, it just clears out the default css object so the loop to bbp_enqueue_style skips including it and then I can inject my own function. The scripts function seem more complicated because there are many more includes than one file and they’re based on pages from what I can tell. Is what I’ve done what you were referring to?

    #213181
    lonelydime
    Participant

    Hello,

    I’m running a fresh install of WordPress from the bitnami helm chart using persistent storage on an NFS share. The path used by the containers is /bitnami/wordpress/wp-content/ to pull in plugins/etc. When I install bbPress, all of the css files and js files use the wrong path to include the assets.

    Here’s an example:

    <link rel='stylesheet' id='bbp-default-css' href='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/css/bbpress.min.css'>
    
    <script type='text/javascript' src='https://example.com/bitnami/wordpress/wp-content/plugins/bbpress/templates/default/js/editor.min.js?ver=2.6.5'>

    I haven’t had any issues with other plugins thus far, but for some reason bbPress is wanting to use the full installation path instead of the web root. Is there a way of fixing this with some WP constant that I’m not setting? The installation of wordpress is in /opt/bitnami/wordpress and wp-content/ and wp-config.php are symlink’d to /bitnami/wordpress/wp-content and /bitnami/wordpress/wp-config.php.

    I have a temporary fix right now which will be wiped out when bbPress updates.

    File: wp-content/plugins/bbpress/includes/core/template-functions.php

    function bbp_enqueue_style( $handle = '', $file = '', $deps = array(), $ver = false, $media = 'all' ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
            //Ghetto fix
            $located = str_replace('/bitnami/wordpress', '', $located);
    function bbp_enqueue_script( $handle = '', $file = '', $deps = array(), $ver = false, $in_footer = false ) {
            // Attempt to locate an enqueueable
            $located = bbp_locate_enqueueable( $file );
            //Ghetto fix
            $located = str_replace('/bitnami/wordpress', '', $located);
    #213173
    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

    #213153
    Robin W
    Moderator

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

    transfer this to your pc and edit

    you’ll see

    		<?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>

    change this to

    <?php if ( ! bbp_is_forum_category() && bbp_has_topics() ) : ?>
    		
    
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    			
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    			<?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    			
    
    		<?php elseif ( ! bbp_is_forum_category() ) : ?>
    		
    			<?php bbp_get_template_part( 'form',       'topic'     ); ?>
    
    			<?php bbp_get_template_part( 'feedback',   'no-topics' ); ?>

    and save

    then 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-single-forum.php

    bbPress will now use this template instead of the original, and the topic form will now appear before the forums

    #213133
    Ahmad Karim
    Participant

    I want the same structure for my forum topics to be like this:

    http://domain.com/forums/forum-slug/topic-slug/

    I don’t want it to look like this, which is currently how it is showing by default:

    http://domain.com/forums/topic/topic-slug/

    If I have same topics in two different forums the topic will be messed up

    Neither I want it to look like this

    http:/domain.com/forums/forum/forum-slug/

    This is so redundant. Shouldn’t it look like this? http:/domain.com/forums/forum-slug/

    Can someone help here please?

    PvK2020
    Participant

    Hi,

    I’m using Buddypress together with BBpress. I’ve an issue and I’m hoping someone can help me with it.

    When I (or someone else) create a new Buddypress-group on my website, I always choose to make a new group-forum. These forums have no ‘sub/child-forums’ by default. If you want there to be ‘sub/child-forums’ you should make them all by hand. I’ve around 60 groups (and counting), so you understand it’s a LOT of work if you want all the group-forums to have the same (same names, different private forums) sub-forums. Plus, I want my moderators to have the possibility to create groups (with a standard forum) and I can’t be there all the time to immidiatly make the sub-forums (including the right subtext and forum-image).

    So, is there an option to make some ‘default sub forums’ (with image and subtext) that ALWAYS automatically ‘ll be created when you make a new group with forum? So for example: the default forums are ‘pregnancy’, ‘birthdays’ and ‘animals’. I make a new group called ‘Group 1’ and I choose ‘Yes, I want to create a forum for this group’. Then I open the brand new group-forum, and hooray! It has 3 brandnew subforums: ‘pregnancy’, ‘birthdays’ and ‘animals’. Only viewable for the group-members.

    After that, I create a second group, called ‘Group 2’ and I choose ‘Yes, I want to create a forum for this group’. Then I open the brand new group-forum, and hooray again! It had 3 brandnew subforums (so, not the same forums you see in the group 1 forum), only viewable for group 2-members.

    Can someone help me with this? 🙂

    #213023
    kevvyb
    Participant

    Just me being dumb. I sort of got frightened byt eh exhortaions I have seen to change the default login url for security reasons and was extrapolating that this needed to be kept relatively secure! But I take your point!

    So the main thing is that it is changed. Making me wonder if I should change it to something that is more recognisable as a login but still pretty unique?

    I take it that the login url(s) on this site are database generated? Or will WordPress doa similar thing for our site?

    #213010
    kevvyb
    Participant

    Thanks for the very quick reply Robin. And for the tips. Not sure I have been very clear. As you say I have changed my admin login from the default for security reasons. When I received the registration email though (presumably from WordPress?) is showed a link to confirm registration that inlcuded my altered wp login url; I don’t really want to be publicising that to everyone who registers for the forum. Is it possibel to avoid this?

    Maybe that I am missing soemthing obvious been at it a while today and need to take a break.

    #213006
    Robin W
    Moderator

    bbpress just uses WordPress registration and login.

    bbpress then just assigns the default role on first login that is set in Dashboard>settings>forum>roles if you have that ticked, or you can manually assign if you wish.

    Therefore you can ignore anything bbpressy on registration and login, and just use anything that WordPress does instead.

    This gives you the ability to utilise plugins such as ‘theme my login’ to give yourself a nice registration and login (there are plenty of other good login plugins, just search around).

    It looks like you have already changed the default wp urls – which is great and good security practise, so suggest you just don’t use bbpress login shortcodes or widgets, and let wordpress do your registration and login.

    Do come back if you need further help

    #213004
    kevvyb
    Participant

    Hi

    I have just installed bbPress on my site. I craeted a test user to see how it works. I was horrified to see that the email included a url for registration that is the admin url I use. I have changed this from the default for reasons of security and do not realy want to be sending out my wp admin login url to everyone who registers on the site. Is there a way around this or is it a wordpress thing?

    #212970
    Robin W
    Moderator

    yes, find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

    transfer this to your pc and edit

    you’ll see

    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>

    change that to take out the first line 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-single-forum.php

    bbPress will now use this template instead of the original

    #212964
    kriskl
    Participant

    yes,

    I have disabled all plugins but BBpress. and changed to WordPress default theme.
    with your code
    this is what it looks like:

    1 2 … 2,843 →
    it still shows the last page: 2,843

    https://opendev.leetdns.com/forums/

    #212955
    Robin W
    Moderator

    ok, you say you have admin rights, but what forum role do you have ?

    Participants are not by default allowed to delete or close.

    Your theme (or another plugin) is only letting you see any admin links when you focus on the content. This is I am pretty sure preventing you clicking the link to edit.

    #212941
    proversion88
    Participant

    I want to separate wordpress and bbpress..wordpress is on my main domain and I want to setup bbpress on a subdomain like forum.mydomain.com

    I tried with adding bbpress, but it really mess up everything on the membership side as it is already setup with custom themes and plugins and lot of modifications through code. I also need to use separate theme for forum as the default is not integrated well with my current theme..For these reasons, I want to install wp and bbpress on a subdomain as separate installation and keep it private and closed for registrations..

    I checked the link you posted, and it was talking about using same database for both wp installations..But in that case, their worpdress installation is identical..Mine has too nuch complicated structure in one and the forum installation will just need bbpress only..

    #212862
    p3t3rr
    Participant

    Hi,

    I am using the Enfold theme which seems to disable the bbpress default breadcrumbs. I re-enabled them for better user navigation with the following code in child theme functions.php

    //show bbpress forum breadcrumbs
    add_action('after_setup_theme', function() {
    	 remove_filter('bbp_get_breadcrumb','avia_fetch_bb_trail',10,3);
    }, 9999);

    Breadcumbs are displayed as seen for example here: https://hatopia.de/community-forum/thema/ich-erstelle-auch-ein-thema-weil-ich-was-zu-sagen-habe/.

    I want to change the default breadcumbs a bit in order to have better UX.
    First, I want to change the text of ‘Startseite’ to ‘Home’. Second, I want to change the name of ‘Foren’ to ‘Community’ and change the link of ‘Foren’ to another link (‘…/community’).

    Can this be achieved and if so how?

    Thank you for the support and best regards, Peter

    #212837
    Milan Petrovic
    Participant

    CSS styling for the select field is most likely limited by the theme in length (bbPress default styling does it also), so you need to change the width for that element to 100%.

    #212836

    In reply to: Remove /topic from url

    Milan Petrovic
    Participant

    That is very hard to do because the rule would conflict with default WordPress rules. It is possible, but there is no plugin that can do something like that as far as I know. For my purpose (not forum related, but similar), I had to create custom rules and override and intercept default rules to make it work. And, it can highly depend on other rewrite rules added by other plugins. I never managed to find universal solution that will just work.

    #212786

    In reply to: Taxonomies for Topics

    Robin W
    Moderator

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

    transfer this to your pc and edit as needed

    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-topic.php

    bbPress will now use this template instead of the original

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

    #212717

    In reply to: Need Help Please

    Robin W
    Moderator

    great 🙂

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

    transfer this to your pc and edit

    change this from line 27

    <p>
    			<label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" size="40" maxlength="100" name="bbp_anonymous_email" />
    		</p>

    to

    <input type="hidden" id="bbp_anonymous_email" value="anon@anon.com" name="bbp_anonymous_email" />

    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-anonymous.php

    bbPress will now use this template instead of the original, and the email address will then not be asked for.

    #212666
    Robin W
    Moderator

    you’d need to amend

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

    These instructions show what is needed

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

    transfer this to your pc and edit

    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-edit.php

    bbPress will now use this template instead of the original

    #212664
    Robin W
    Moderator

    you’d need to amend

    \bbpress\templates\default\bbpress\form-anonymous.php

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

    #212656
    rithvik2109
    Participant

    Some users on my bbpress site are facing ” ERROR: Duplicate topic detected; it looks as though you’ve already said that.” when they are trying to create a new topic. Issue persistent even when different terms are used, and crosschecked that a topic with the same name doesn’t exist.

    bbpress version: 2.6.5
    Wordpress Version: 5.4.2
    Website link: https://nalsar.ac.in/forums

    I am using the default Twenty Twenty theme.

Viewing 25 results - 676 through 700 (of 6,780 total)
Skip to toolbar