Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 2,651 through 2,675 (of 32,492 total)
  • Author
    Search Results
  • #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

    #212204
    sblwp
    Participant

    Hello,
    I’m looking for the same customization as @spicynodes 8 years ago !
    I have created a page with 2 shortcodes :
    [bbp-topic-index]
    [bbp-topic-form]

    But the breadcrumb displays twice, above each one.
    Is there a simple way to display it for the [bbp-topic-form] or do I necessarily need to do something in the function page (I’d prefer not too !)

    Thanks for your help !

    #212179
    Babak Fakhamzadeh
    Participant

    Shoutout for plugin bbPress2 shortcode whitelist.

    Robin W
    Moderator

    so is this

    [bbp-forum-index]

    within a WordPress page ?

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

    #212104
    Anonymous User 14145219
    Inactive

    I’m using a paid wordpress theme. I can modify code if that is needed. I haven’t changed any bbPress theme thus far. Thanks for your help.

    #212103
    timmy321
    Participant

    Hi Chook,

    Thanks for the suggestion, but to be honest I was hoping to find out what the issue is & how to fix it as it’s only one page on the site. I’m trying to stay away from purchasing plugins for the time being as I am very early on in making the website & like to learn how it all works.

    I’ve looked into this a lot however & don’t think I have the skills to find out what is wrong.

    I was hoping someone might be able to understand the issue & suggest a fix.

    Does anyone have any other suggestions? Robin, could the placement of short code be causing an issue as you asked in your reply?

    Many thanks in advance,

    Tim

    JohnRDOrazio
    Participant

    After having disabled the ”bbPress Do Shortcodes” plugin I am seeing that shortcodes are now actually being interpreted in Topics without the plugin. I’m guessing that came with the recent updates to bbPress? I am seeing however that when using double brackets, which usually escapes shortcodes so that they’re not interpreted, they still seem to be partially interpreted in bbPress topics creating an error. If I use html entities instead of double brackets I am able to post a shortcode literally without it being interpreted.

    #212088

    Some functionality similar to this is planned for bbPress 2.7.

    It is plausible that plugin will be used for inspiration, though the final code will likely end up being completely rewritten/modernized/debugged.

    #212071
    timmy321
    Participant

    Hi Robin,

    Thank you very much for replying!

    Ah yes, so it’s the ‘forum index’ page that is displaying a different style to all the other pages.

    I’ve used the short code: [bbp-forum-index] on the forum index page that I made in the WordPress ‘Add New’ page.

    I’ve then linked the url: http://findgyms.co.uk/forums/ to the ‘Forums’ button in my header.

    I hope this answers what you were asking?

    In regards to the explanation in the linked item 8.. Well, that was a learning curve! I didn’t even know how to access the WordPress database but now I do!

    If I’ve understand it correctly, this header issue is possible as the ‘topics’ pages in the forum posts have the correct header styling but the ‘index’ does not – from the description this says it could be due to the index page using the ‘about’ page style instead of the topics using the ‘posts’ style.

    After looking in the database I think that the forum index page is using the correct ‘Astra’ theme, but not showing the correct css for my header that all my other pages are (even the ‘About’ page).

    So I don’t think I would need to copy and rename the page.php file to bbpress.php (unless I wanted bbpress theme to be different to the astra theme – I think I’ve got that correct, if not apologies!)

    I really appreciate any further help with this as this is becoming quite confusing for my extremely novice brain 🙂

    Thanks,

    Tim

    #212068
    Robin W
    Moderator

    hmm, I took a look, and yes it’s another theme that is lazy and does it’s css using inline, which makes it a real pain to debug or override.

    but I can’t see what is wrong to cause it.

    do you have a forums’s page using a shortcode or are just using a url to go to forums?

    see item 8 in this to understand what I mean

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

    #212061
    timmy321
    Participant

    I would also add..

    Could there be some inline code overriding my css on this page?

    I don’t fully understand what I’m looking at when I right click and press ‘inspect’ on the header.. but when I unlick things in the right bottom css part it does appear to have an affect on the header styling. If so, I have no idea how to override it.

    This is the css that appears to work for all my other pages:

    a, .page-title {
    font-family: a-love-of-thunder;
    }

    .ast-theme-transparent-header .site-title a, .ast-theme-transparent-header .site-title a:focus, .ast-theme-transparent-header .site-title a:hover, .ast-theme-transparent-header .site-title a:visited {
    font-family: a-love-of-thunder;
    }

    .ast-theme-transparent-header .site-header .site-description {
    font-family: a-love-of-thunder;
    }

    .ast-theme-transparent-header .site-title a, .ast-theme-transparent-header .site-title a:focus, .ast-theme-transparent-header .site-title a:hover, .ast-theme-transparent-header .site-title a:visited {
    font-weight: normal;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.3);
    }

    .ast-theme-transparent-header .site-header .site-description {
    font-weight: normal;
    text-shadow: 0px 0px 0px rgba(0,0,0,0.3);
    }

    #212051

    In reply to: Login Form not working

    nybbles
    Participant

    After playing around for a while… I figured out how to disable the calling of the login form…. which for my purposes is perfectly fine…

    Though, I’m guessing that when there are updates to bbPress, I’ll have to do that change manually each time… not a big deal… It’s literally just a few lines of code, which I find hard to believe will ever change….

    Robin W
    Moderator

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Subscription Emails

    and you can set up emails in HTML

    if you are technical, then the code is in that plugins includes/functions_emails.php

    bricktram
    Participant

    I have copied this across from the WordPress support site on the suggestion of someone on there due to the problem only developing after trying to install bbPress on the website I manage.

    “I have recently been adding a members only area to a website that I manage and have so far not had any problems until I tried adding a forum. I don’t know if it is plugin related for the problem to come about, but disabling the plugins to see if one of them is causing the problem doesn’t seem to fix it.

    When I try to edit some pages or posts that have already been published, I sometimes get a ‘403 Forbidden, Access to this resource on the server is denied!’ error when I click on the ‘Preview Changes’ or ‘Update’ button. I only get this with certain posts or pages. I have tried to re-create the same pages that get the error from scratch, and have found that the error only happens when I include a link that opens in a new tab.

    The existing version of the posts and pages are working fine, and I can edit everything okay. I just can’t preview or publish any post or page that includes a link that opens in a new tab.

    I use the ‘Classic Editor’ plugin for editing posts and pages. I also have the ‘s2Member Framework’ plugin for the members only areas. This problem seems to have come about today after installing the ‘bbPress’ plugin to add a forum to the site.

    The last time a post was successfully published with a link that opens in a new tab was on the 31st May and the only change I have made since then is installing the ‘bbPress’ plugin this morning (13th June).

    I’ve tried looking at various troubleshooting suggestions, but none of them seem to fix it.

    Edit: Since posting the above, I’ve been looking at some of the other posts and pages and it seems I can no longer see a pattern to which ones I can edit and which I can’t. I had thought it was something to do with the code for opening links in new tabs or windows due what I mentioned above. Now I can’t see any obvious similarity between which ones I can and which I can’t edit.

    Thanks in advance for any help.”

    #212004
    Robin W
    Moderator

    best I can suggest is to look at item 8

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

    #212000
    Robin W
    Moderator

    ok, bbpress looks at

    the WordPress block list
    no. links

    in that part of the code, so maybe worth asking paid memberships if they do any checking.

    Otherwise without site access, I can only guess that another plugin is doing something.

    #211968
    Robin W
    Moderator

    this works on my test site

    add_filter( 'bbp_default_styles', 'rew_dequeue_bbpress_css' ) ;
    
    function rew_dequeue_bbpress_css ($defaults ){
    unset ($defaults['bbp-default']) ;
    return $defaults ;
    }
    kikismedia
    Participant

    Here is the code they assisted me with on buddydev

    /**
    * Modify activity args
    *
    * @param array $r Activity args.
    *
    * @return bool
    */
    function buddydev_modify_record_activity_args( $r ) {

    if ( $r[‘type’] && in_array( $r[‘type’], array( ‘bbp_reply_create’, ‘bbp_reply_edit’ ) ) ) {
    $r = false;
    }

    return $r;
    }
    add_filter( ‘bbp_after_record_activity_parse_args’, ‘buddydev_modify_record_activity_args’ );

    And it’s worked

    #211965
    Robin W
    Moderator

    might be better as this to ensure it fires after bbpress has loaded

    add_action ('plugins_loaded' , 'rew_dequeue_bbpress_css' ) ;
    
    function rew_dequeue_bbpress_css () {
    	wp_dequeue_script ('bbp-default') ;
    }
    #211964
    Robin W
    Moderator

    wp_dequeue_script ('bbp-default') ;

    should do it

    JohnRDOrazio
    Participant

    I can confirm that the problem is in bbpress do shortcodes, I will leave it deactivated for the time being and will open a ticket on the plugin support forum.

    #211922
    robertherold
    Participant

    Thank you for your answer!

    email_change_email for the ‘User Email Changed – For User’ notification.

    new_user_email_content for the ‘User Email Changed Confirmation – For User’ notification.

    I think I only need the last one because it sends the ‘User Email Changed – For User’ notification.

Viewing 25 results - 2,651 through 2,675 (of 32,492 total)
Skip to toolbar