Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 6,951 through 6,975 (of 32,585 total)
  • Author
    Search Results
  • #171883
    Stephen Edgar
    Keymaster

    You can also use bbp_create_initial_content() with some bbp_parse_args() to generate your content, bbPress uses this to crate some sample/initial content when installing on multisite installs.

    https://bbpress.trac.wordpress.org/browser/branches/2.5/includes/core/update.php#L174

    ying-sun
    Participant

    hi. i want new topics and replies to show up in the activity stream, but right now they are not.

    i added this to bp-custom.php:

    add_post_type_support( 'topic', 'buddypress-activity' );

    which works, but with a generic “UserName wrote a new item.” it seems like there must be a better, easier way to tie the two together. looking at the bbpress files, i see this:

    public function register_activity_actions() {
    
    // Sitewide activity stream items
    bp_activity_set_action( $this->component, $this->topic_create, esc_html__( 'New forum topic', 'bbpress' ) );
    bp_activity_set_action( $this->component, $this->reply_create, esc_html__( 'New forum reply', 'bbpress' ) );
    }

    i don’t know if they’re not getting called or they’re conflicting with something or what, but they aren’t doing what it seems like they should be doing. is there a setting i’m missing to activate this feature?

    little help?

    #171875
    Robin W
    Moderator

    no, core functions in bbpress cannot be put in other folders.

    Generally it is not recommended that you change bbpress itself. Rather almost all bbpress functionality can be filtered, so that the plugin remains complete and changes are put in your theme’s functions file using wordpress filering capability.

    What changes did you make? If small, let me know which lines in which file, and post the changes here, and I’ll try to help you with what you should put in your functions file.

    You should also make those changes (and the template files you copied ) in a child theme, so that theme updates donlt overwrite these

    https://codex.bbpress.org/functions-files-and-child-themes-explained/

    #171873
    Robin W
    Moderator

    can you tell me what you are putting as the shortcode?

    #171872
    Robin W
    Moderator

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

    should answer your questions, but do come back if you need further help !

    #171867
    cookavich
    Participant

    That sounds workable, however, after installing the plugin the display topic shortcode doesn’t seem to be functional. The display newest users shortcode is working, odd.

    #171865
    Pascal Casier
    Moderator

    Hi,

    Is this want you are looking for : http://www.rewweb.co.uk/bbpress-additional-shortcodes/ from @robin-w

    It’s INcluding, not EXcluding …

    Pascal.

    #171861

    In reply to: Where to register?

    Pascal Casier
    Moderator
    #171835
    Adri Oosterwijk
    Participant

    Hi all,
    I think I got it worked out together with Otto and Tia over at WPML.
    You can have a look at it at those two topics:

    https://wpml.org/forums/topic/multiple-site-languages-but-just-a-bbpress-forum-in-english/
    https://wpml.org/forums/topic/bbpress-breadcrumbs-how-to-localize-and-point-to-the-right-page/

    BTW I hide the language switcher(s) on the topics pages by adding this piece of code in my header file

    <?php if (!is_bbpress()) {
    do_action('icl_language_selector'); 
    } ?>

    and this in my footer.php

    <?php if (!is_bbpress()) {
    do_action(‘wpml_footer_language_selector’);
    } ?>

    I hope it helps you as well.

    Regards,

    Adri

    #171834
    Pascal Casier
    Moderator

    Hi,
    I suppose you mean that you want to change the default page that you get when going on /forums ?
    If so, just create a page in WordPress and change the slug to ‘forums’, then put anything you want in that page.

    The standard page shown when going on /forums is content-archive-forum.php.

    You can customize all templates if you want, just read some pages of the bbPress Codex: https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    Pascal.

    #171825
    pazzaglia
    Participant

    How can I vary this code to include a default image for topics? I post new forum topics to facebook and at the moment they’re showing a TERRIBLE giant picture – when there are no profile pics or attachments to display. I don’t even know where it’s being pulled from.

    http://www.hippressurecooking.com/forum/

    pressure cooker forums

    Thanks!
    L

    #171812
    Robin W
    Moderator

    The problem is that wordpress was designed to work with templates that were different for each type eg template for page with sidebar, another template for page without sidebar.

    The trouble is that theme authors are getting too clever ,and nowadays write a single big page template that bbpress cannot easily react with.

    So your theme displays one template for the main page, but then bbpress can’t work with it for the other sub pages, as it doesn’t know how the theme is using the template.

    Ok, so that’s the explanation, but probably doesn’t help you at all.

    If you know some wp stuff then this might help

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

    #171811
    stewmills
    Participant

    Sorry if this is a duplicate…seemed to get an odd behavior when attempting to submit previously.

    Facts:
    – WordPress 4.2.2
    – bbPress 2.5.8
    – Theme – Karma 3.0.3

    I have created the following forum on my site (currently hidden from the top menu but accessible via links provided): http://www.cytoviva.com/forum/

    In the above link I get the forum login and other options in the right sidebar as I prefer.

    However, when you get one layer deeper into the forums, topics, posts, etc. the sidebar is not visible as seen here: http://www.cytoviva.com/forums/forum/registration-instructions-and-forum-guidelines/

    I want the sidebar to be visible on all pages/posts/etc. so someone reading a post can login from that page or request new access from that page and as well logged in users will always have the sidebar details and option to logout from any page within the forum.

    Initially the sidebar was not visible at all and I finally realized that my forum page (using the shortcode [bbp-forum-index] on my “forum” page to display the forum) was using the right template and when I changed it to ‘Right Sidebar’ and selected the option at the bottom to display my newly created sidebar (User Forum Login Sidebar) I started seeing what I wanted to see on the main forums page.

    However, when I go to my individual forums in the WP control panel and make sure they are also set under the ‘Right Sidebar’ page template and as well have the option checked to display my sidebar, it seems to do nothing.

    I have read a host of other posts here today and it seems that the answers to getting the sidebar to display as I want vary per person/situation hence my additional post. I don’t want to have to create a new .css file as currently I don’t have access to our host and FTP to create new files so I was hoping to find a solution that is simple as me not having a button checked somewhere or something trivial.

    I am somewhat new to WP and bbPress so the more fundamental the advice the better. My goal is to try and solve this with a little troubleshooting versus new child .php pages, etc.

    Thanks in advance!

    #171808
    Pascal Casier
    Moderator

    To remove the ‘Forums’ title, you could do some CSS:

    .forum-archive h1 {
        display: none;
    }

    Pascal.

    #171806
    Pascal Casier
    Moderator

    Hi,

    Forum moderation is being reviewed and improved a lot for future versions of bbPress. For now there is standard moderation and blacklisting as described here: https://codex.bbpress.org/moderation-and-blacklisting/

    The above mentioned plugin is the only one that I found when I looked at it in the last months. Please note that it has a small bug with saving topic subscriptions from user before their post is approved, so the user might have to re-subscribe from the checkbox during the reply.

    Pascal.

    #171791
    Pascal Casier
    Moderator

    As Robin indicated, this is somewhere a conflict with a plugin or a theme.

    But I see your forums: http://www.finalfantasyrpg.com.br/forums/
    So I suppose that you found /wp-admin/edit.php?post_type=forum ?

    Pascal.

    #171790
    Pascal Casier
    Moderator

    Okay, maybe this then:

    CSS:

    .bbp-search-form {
     display:none !important;
     }

    Also check the option called ‘Search’ in your dashboard: ‘Settings > Forums > Forum Features’

    Pascal.

    #171780
    Pascal Casier
    Moderator

    Hi,
    Never edit bbpress templates directly in the bbpress folder, otherwise you will loose your changes when bbPress updates.
    There are several ways that I know of, but the most easy one would probably be by installing my ‘bbP Toolkit’ plugin.

    Or you play with CSS yourself:

    .bbp-template-notice {
    	display: none;
    }
    
    .bbp-template-notice.info,
    .bbp-template-notice.error,
    .bbp-template-notice.important,
    .bbp-template-notice.warning {
    	display: block;
    }

    Not that also other similar messages will disappear with the above.

    And if you want to modify bbPress files, please check the codex (https://codex.bbpress.org/themes/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/) and/or create a child theme
    Pascal.

    Jeff McNeill
    Participant

    Hahaha tags “sleeping pill store” tag should be a signal that someone is asleep at the tiller. Really folks, this place is asleep, and all Robin W. does is state that it is free software and you should be durned grateful, and not try and wake anybody up.

    Development is tediously slow, regardless of some $50k that was raised a few years ago. 2.6 should supposedly fix the issue with not being able to replace posts with forum discussions. Surely that is also why the plugin that actual does that hasn’t been updated in two years. And 2.6 was 4 months late in May 2014. So when will it ever be released?

    This is simply too long! Obviously this project is coasting on the coattails of integration (and requirement of use) in BuddyPress and that it is an anointed project of WordPress.org. Anything less would have near zero users already.

    So much functionality is needed to be reasonable. There appears to be a single active developer committing to the code: https://www.openhub.net/p/bbpress/commits/summary

    But really, this was a complaint over a year and a half ago, and it ain’t changed. Very sad as the potential is quite big. How else do you explain 16,000+ downloads of that plugin that has been abandoned: https://wordpress.org/plugins/bbpress-post-topics/

    #171760
    tech55541
    Participant

    Hello,
    Would it be possible to take the code that adds this functionality in with BuddyPress, create a separate plugin, and then make it work for BBPress? I can’t believe a forum software does not have this built in.

    Thanks 🙂

    #171748

    In reply to: PHP in Topics

    rbarron
    Participant

    <?php bbp_user_profile_url(bbp_get_current_user_id());?>">Complete your profile</a> and upload a profile photo.

    #171747

    Topic: PHP in Topics

    in forum Troubleshooting
    rbarron
    Participant

    How do I create a link in a topic to allow users to edit their profile? Something like:

    Thank you.

    #171739
    _az_
    Participant

    There is a function: bbp_get_super_stickies() which is used inside the function bbp_has_topics(). This function basically returns a list of Post IDs from the wp_options table from a row with the key: “_bbp_super_sticky_topics” or “_bbp_sticky_topics”

    So one approach could be: override default args

    bbp_has_topics(array('show_stickies' => false);

    Extra loop for stickys (not tested, just a sketch)

    $query = new WP_Query(array('inlucde' => bbp_get_super_stickies());

    Though i recommend looking into the function bbp_has_topics to be aware of all possible cases.

    #171728
    Erik Molenaar
    Participant

    Hallo Manuel,

    Just to let you know, I ended up with removing the functionality of a public profile page for my bbpress users by:

    1. Removing the author links (so Google won’t find them anymore):

    
    /*-----------------------------------------------------------------------------------*/
    /* Remove all author links from bbpress pages
    /*-----------------------------------------------------------------------------------*/
    
    add_filter( 'bbp_get_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_reply_author_link', 'remove_author_links', 10, 2);
    add_filter( 'bbp_get_topic_author_link', 'remove_author_links', 10, 2);
    
    function remove_author_links($author_link, $args) {
    $author_link = preg_replace(array('{<a[^>]*>}','{}'), array(" "), $author_link);
    return $author_link;
    }

    2. Placing a noindex meta tag in my bbpress user templates (so the already indexed profile links will disappear from Google):

    <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW" />

    Thanks again for your prompt replies and I hope this is of use to you 🙂

    #171726
    Pascal Casier
    Moderator

    On your dashboard, go to ‘Tools > bbP Toolkit’
    Under the ‘bbPress Information’ button you can tick
    Do not show the counters next to the subforums on the forum index page (v1.0.5)
    And then put the
    Change the separator between the subforums on the forum index page to:
    to ‘newline’

    Pascal.

Viewing 25 results - 6,951 through 6,975 (of 32,585 total)
Skip to toolbar