Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,451 through 9,475 (of 32,519 total)
  • Author
    Search Results
  • #158644

    In reply to: profile page links??

    Robin W
    Moderator

    no, sorry but the site uses a database and php to call the code

    if you know html, then getting into php is not so bad, but maybe do some training first, this is a good intro

    http://www.w3schools.com/php/

    #158636

    In reply to: change forum sidebar

    Robin W
    Moderator

    the try widget logic

    Download “widget logic”

    https://wordpress.org/plugins/widget-logic/

    This plugin lets you specify conditions for when widget items are displayed.

    You would then put all the widgets for both the blog page and the forum page in one sidebar

    Against each of these you then specify whether you want it to appear on the forum page, on any page with a sidebar that is not the forum (eg your blog), or on both forum and other sidebar pages.

    you do this by putting the following code in the widget logic box that you will see appears against each widget

    For a forum sidebar you put : is_bbpress() ie is this page a forum page
    For any other sidebar you put : !is_bbpress() ie is this page NOT a forum page
    For any item to appear on both, simply leave the logic blank.

    Give that a try and come back and let us know how it works

    #158635
    –Q–Shadows
    Participant

    Hey,

    Nice plugin. Reduces allot of the headache when it comes to customizing bbpress looks 🙂

    One thing I cant get to work around thou is the Forum Template Extras that comes with it. I followed the instructions provided, copied the code from loop-forums.php to my bbpress folder but for some reason the I cant see any effect of it on my forums :(.

    #158632

    In reply to: change forum sidebar

    mhairilongmuir
    Participant

    I am having the same problem – I have followed the instructions in the codex, and added WP Tweaks, but my custom sidebar for the forum page is not showing. When I go in and edit bbpress.php manually via the editor, the changes show in the sidebar. But when I try to do it via the widgetized area, the bbpress sidebar doesn’t show.

    I also tried Robin W’s fix – moving the widgets out of the area and switching off the plugin etc, but that also didn’t work.

    I am using a child theme of Canvas, and have also implemented the ‘Fix for BBPress and Canvas (5.2 and higher)’ Fix for BBPress and Canvas (5.2 and higher) –

    #158626

    In reply to: profile page links??

    Robin W
    Moderator

    yes but you’ll need to do some coding

    see

    http://generatewp.com/shortcodes/

    the code would go in your functions file

    Functions files and child themes – explained !

    and the code you’ll be seeking to shortcode is in

    wp-content/plugins/bbpress/templates/default/bbpress/

    in particular

    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    #158624
    Seo45
    Participant

    Hello everyone, I’m having a problem. I am using something called uerpro, and I integrated it into bbpress, but it now makes it where the profile links to the userpro profiles. This is what I want, but I was wondering if the things like: New posts, replies, signature and everything that was in the bbpress profile page can be put into the userpro profile page. It uses a single page as the template, so if there are shortcodes or something, that would be perfect. Thank you for any help!

    #158615

    In reply to: Account in Tool Bar

    Robkk
    Moderator

    i think its custom code that bbpress.org has, but basically its a customized WordPress Admin bar

    #158611
    krazen
    Participant

    Hello!

    I’ve stumbled across that problem today. Let’s say I make a forum of ID 65 private in bbPress’ settings.

    Then, somewhere in my template I’m using get_posts to pull some custom post type content which has nothing to do with the forums. When there is no user with sufficient privileges logged in, bbPress adds following SQL to my query:
    ... INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) ...
    and

    ... AND ( 
      ( wp_postmeta.meta_key = '_bbp_forum_id' AND CAST(wp_postmeta.meta_value AS SIGNED) != '65' )
    ) ... 

    which always ends up breaking my query, since the posts I’m querying for do not have meta_key entries of ‘_bbp_forum_id’.

    I’ve switched the plugin off temporarily, but that doesn’t solve the problem for good.

    #158610
    Robin W
    Moderator

    something like

    function rew_max_shown ($args) {
    $args['max_num_pages'] = 2 ;
    return $args ;
    }
    
    add_filter ('bbp_before_has_topics_parse_args', 'rew_max_shown') ; 

    in your functions file

    Functions files and child themes – explained !

    Robkk
    Moderator

    use the shortcodes

    here is the one for the new topic form

    [bbp-topic-form]

    https://codex.bbpress.org/shortcodes/

    #158606
    Robkk
    Moderator

    give me your theme name

    I have tried using all of the bolded .php page options as well as copying the single.php into the bbpress plug in php page.

    to me this sounds like your not doing it right

    follow this guide

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    and this too

    https://codex.bbpress.org/theme-compatibility/

    it could also be a theme or plugin issue.

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    #158603
    Robkk
    Moderator

    i think it might be content-single-user.php in the bbPress templates …im not sure how customizing this file will translate into the BuddyPress menus though.

    #158602
    Robkk
    Moderator

    when theme developers say their theme is “bbPress ready”

    it usually means they followed this guide https://codex.bbpress.org/theme-compatibility/

    Are there special features included in bbPress ready themes, if so what are the features called?

    There could showing post count below the author avatar but you can easily do that by installing Robins plugin https://wordpress.org/plugins/bbp-topic-count/.

    I have seen some themes have applied styling to some unread posts plugin , but really nothing too crazy that you cant get with free plugins and doing it manually without causing a hard time developing.

    #158601
    Robkk
    Moderator

    @jmeyer2485

    bbpress.org adds that background color around the forum name using this CSS code.

    #bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a {
    background-color: #328C00;
    }

    of course you can only see it on super-sticky topics and also when your forum root is showing topics by freshness

    #158595
    WilRC
    Participant

    Any news on this?
    using several shortcodes breaks the paginationfunction! I have these shortcodes:

    [bbp-forum-index]
    [tabs type="horizontal"] [tabs_head] [tab_title]Recente Topics[/tab_title] [tab_title]Ongelezen Topics[/tab_title] [tab_title]Zoeken[/tab_title] [/tabs_head] [tab][bbp-topic-index][/tab] [tab][bbp-single-view id="no-replies"][/tab] [tab][bbp-search-form][/tab] [/tabs]

    Clicking on page2 gives a no resultpage!

    #158574

    In reply to: Sidebar Issue

    Robin W
    Moderator

    try

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

    come back if you need further help

    Robin W
    Moderator

    ok, I’ve looked ta the page

    your style.css has

    .row .col img {
        height: auto;
        margin-bottom: 15px;
        max-width: 100%;
        width: auto;
    }
    

    around line 1929

    The width: auto;
    is causing the issue, remove that and the image reverts to 14 – but around 30 looks good !

    adding

    margin-left: auto;
    margin-right: auto
    

    will also center the image

    so you end up with

    .row .col img {
        height: auto;
        margin-bottom: 15px;
        max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    }
    

    If just for bbpress then

    #bbpress-forums .row .col img {
        height: auto;
        margin-bottom: 15px;
        max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    }
    
    #158562
    Robin W
    Moderator

    ok, it’s your theme that’s causing the issue, some theme authors are too clever with their coding, and bbpress uses a category of archive, hence why it is displaying this sidebar. Also I suspect the theme won’t be allowing dynamic sidebars, hence why tweaks isn’t working.

    So onto plan b !

    install a plugin called ‘widget logic’

    https://wordpress.org/plugins/widget-logic/

    Then against each widget in your archive/post/search sidebar, you’ll see an extra field called widget logic

    If you want that widget only in bbpress forums put

    is_bbpress()
    

    in to that line

    if you don’t want that widget in bbpress, but do want it in other pages that use the archive/post/search sidebar the put

    !is_bbpress()
    

    in the widget logic area

    If you want in both, then leave widget logic blank.

    Robin W
    Moderator

    It does worry me a bit though, that if this is the end-all solution then we’re left relying on a small one-man plugin

    As author of 6 one-man plugins, I know that this can cause worry, but actually the large team plugins tend to get abandoned as often as team strategy goes in another direction, with no-one feeling ownership !

    But the code is open source, so someone else can pick it up, and with over 12,000 users, I suspect that this one would find a new developer.

    #158556
    BrendenW
    Participant

    Back at last! It was just the .php memory. When they ‘increased’ it, they just didn’t do a good enough job of it which was why I was still having problems. It’s now currently all back up and working. I have followed your directions re: deactivating, removing and then reactivating with no effect.

    I’m not sure if/what good any of this information might be to you but:
    * the page I have set for the forum is “default template” and the sidebar is set as “Default sidebar” BUT no matter which page template I select, nothing changes, even if I select full width template I am still shown as having a side bar. Further, despite it showing the default sidebar as being selected, it is actually a different sidebar (called archive/post/search sidebar) which is being displayed. This is the sidebar that displays for “Category”, but not for subcategories. I can’t however find anywhere outside of .php files that set the category sidebar. So I don’t know if there is perhaps code messing up in there somewhere.

    Also, should I be creating a bbPress.php file to add to the theme? I can do this, it’s a mess around as I have to get the website people to upload it for me, but if it’s going to help I can do that.

    Thanks for your help Robin, sorry for the delay, but at least we’re back in to it now!

    #158549
    supremor
    Participant

    I added the code to the style.css of the child theme and it didn’t work, the registration button is still too close to the email input box. And on FireFox the email text is to the left of the email input box instead of on top.

    mw360
    Participant

    Using Genesis – installed bbpress – and following the instructions I created an initial forum / topic and when I look at those specific pages everything looks fine, i.e. mysite.com/forums/forum/general-discussion. However, when I try to go to mysite.com/forums, all I see is this at the top (all just text, no links):

    Search for: Home › Forums Forum Topics Posts Freshness General Discussion General discussion about us 1 1 53 minutes ago Admin01 […]

    That’s it, a blob of text.

    To be sure, I did set up a Page, called it ‘Forums’, added it to the menu, applied the shortcode

    [bbp-forum-index]

    and published it. Also reset Permalinks (note, we’re using /%category%/%postname%/ there, so used option 2 in the setup – if that matters). Absolutely no effect.

    It seems odd that everything else runs and looks great except this one root page, and I don’t see any posts here that discuss this particular effect. Hoping someone else has seen this and can comment on it…??

    Thanks

    #158544
    Matthias
    Participant

    My bbpress forum text editor is different from the editor in this forum.
    1. When someone inserts a link, he can see all last blog posts below. How can I hide them?
    2. When someone inserts a link and does not know html he produces invisible links.
    <a href="url"></a>
    Is there a workaround to force users to click the link button for the close tag as here in the forum?

    Thanks
    Matthias

    #158524
    Matthias
    Participant

    Found the solution.
    You have to add this code to themes function.php to set up lead_topic

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
    #158517
    Robin W
    Moderator

    hmm…this is a buddypress issue I think

    see

    Group Settings and Roles

    Don’t think there is anyway to alter these.

    you could try

    https://wordpress.org/support/plugin/bbp-private-groups

    and see if you can integrate this into buddypress.

Viewing 25 results - 9,451 through 9,475 (of 32,519 total)
Skip to toolbar