Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress"'

Viewing 25 results - 4,301 through 4,325 (of 26,835 total)
  • Author
    Search Results
  • pandraka
    Participant

    WordPress 4.8
    PHP 7
    bbpress 2.5.12
    buddypress 2.8.2

    I’m using group types on my bbpress/buddypress site. I’ve had to get creative when it comes to breadcrumbs. There was one minor changes to the bbp_get_breadcrumb function that I had to make to make the breadcrumbs work. I copied the function into my functions.php and added a filter. I’m getting an error/notice:
    Notice: Use of undefined constant mod_bbp_get_breadcrumb – assumed ‘mod_bbp_get_breadcrumb’

    The function is doing exactly what I want it to do. but this error is showing up. The functions is originally located in bbpress/includes/common/template.php file

    here’s the code:

    <?php
    function mod_bbp_get_breadcrumb( $args = array() ) {

    // Turn off breadcrumbs
    if ( apply_filters( ‘bbp_no_breadcrumb’, is_front_page() ) )
    return;

    // Define variables
    $front_id = $root_id = 0;
    $ancestors = $crumbs = $tag_data = array();
    $pre_root_text = $pre_front_text = $pre_current_text = ”;
    $pre_include_root = $pre_include_home = $pre_include_current = true;

    /** Home Text *********************************************************/

    // No custom home text
    if ( empty( $args[‘home_text’] ) ) {

    $front_id = get_option( ‘page_on_front’ );

    // Set home text to page title
    if ( !empty( $front_id ) ) {
    $pre_front_text = get_the_title( $front_id );

    // Default to ‘Home’
    } else {
    $pre_front_text = __( ‘Home’, ‘bbpress’ );
    }
    }

    /** Root Text *********************************************************/

    // No custom root text
    if ( empty( $args[‘root_text’] ) ) {
    $page = bbp_get_page_by_path( bbp_get_root_slug() );
    if ( !empty( $page ) ) {
    $root_id = $page->ID;
    }
    $pre_root_text = bbp_get_forum_archive_title();
    }

    /** Includes **********************************************************/

    // Root slug is also the front page
    if ( !empty( $front_id ) && ( $front_id === $root_id ) ) {
    $pre_include_root = false;
    }

    // Don’t show root if viewing forum archive
    if ( bbp_is_forum_archive() ) {
    $pre_include_root = false;
    }

    // Don’t show root if viewing page in place of forum archive
    if ( !empty( $root_id ) && ( ( is_single() || is_page() ) && ( $root_id === get_the_ID() ) ) ) {
    $pre_include_root = false;
    }

    /** Current Text ******************************************************/

    // Search page
    if ( bbp_is_search() ) {
    $pre_current_text = bbp_get_search_title();

    // Forum archive
    } elseif ( bbp_is_forum_archive() ) {
    $pre_current_text = bbp_get_forum_archive_title();

    // Topic archive
    } elseif ( bbp_is_topic_archive() ) {
    $pre_current_text = bbp_get_topic_archive_title();

    // View
    } elseif ( bbp_is_single_view() ) {
    $pre_current_text = bbp_get_view_title();

    // Single Forum
    } elseif ( bbp_is_single_forum() ) {
    $pre_current_text = bbp_get_forum_title();

    // Single Topic
    } elseif ( bbp_is_single_topic() ) {
    $pre_current_text = bbp_get_topic_title();

    // Single Topic
    } elseif ( bbp_is_single_reply() ) {
    $pre_current_text = bbp_get_reply_title();

    // Topic Tag (or theme compat topic tag)
    } elseif ( bbp_is_topic_tag() || ( get_query_var( ‘bbp_topic_tag’ ) && !bbp_is_topic_tag_edit() ) ) {

    // Always include the tag name
    $tag_data[] = bbp_get_topic_tag_name();

    // If capable, include a link to edit the tag
    if ( current_user_can( ‘manage_topic_tags’ ) ) {
    $tag_data[] = ‘‘ . esc_html__( ‘(Edit)’, ‘bbpress’ ) . ‘‘;
    }

    // Implode the results of the tag data
    $pre_current_text = sprintf( __( ‘Topic Tag: %s’, ‘bbpress’ ), implode( ‘ ‘, $tag_data ) );

    // Edit Topic Tag
    } elseif ( bbp_is_topic_tag_edit() ) {
    $pre_current_text = __( ‘Edit’, ‘bbpress’ );

    // Single
    } else {
    $pre_current_text = get_the_title();
    }

    /** Parse Args ********************************************************/

    // Parse args
    $r = bbp_parse_args( $args, array(

    // HTML
    ‘before’ => ‘<div class=”bbp-breadcrumb”><p>’,
    ‘after’ => ‘</p></div>’,

    // Separator
    ‘sep’ => is_rtl() ? __( ‘‹’, ‘bbpress’ ) : __( ‘›’, ‘bbpress’ ),
    ‘pad_sep’ => 1,
    ‘sep_before’ => ‘<span class=”bbp-breadcrumb-sep”>’,
    ‘sep_after’ => ‘</span>’,

    // Crumbs
    ‘crumb_before’ => ”,
    ‘crumb_after’ => ”,

    // Home
    ‘include_home’ => $pre_include_home,
    ‘home_text’ => $pre_front_text,

    // Forum root
    ‘include_root’ => $pre_include_root,
    ‘root_text’ => $pre_root_text,

    // Current
    ‘include_current’ => $pre_include_current,
    ‘current_text’ => $pre_current_text,
    ‘current_before’ => ‘<span class=”bbp-breadcrumb-current”>’,
    ‘current_after’ => ‘</span>’,
    ), ‘get_breadcrumb’ );

    /** Ancestors *********************************************************/

    // Get post ancestors
    if ( is_singular() || bbp_is_forum_edit() || bbp_is_topic_edit() || bbp_is_reply_edit() ) {
    $ancestors = array_reverse( (array) get_post_ancestors( get_the_ID() ) );
    }

    // Do we want to include a link to home?
    if ( !empty( $r[‘include_home’] ) || empty( $r[‘home_text’] ) ) {
    $crumbs[] = ‘‘ . $r[‘home_text’] . ‘‘;
    }

    // Do we want to include a link to the forum root?
    if ( !empty( $r[‘include_root’] ) || empty( $r[‘root_text’] ) ) {

    // Page exists at root slug path, so use its permalink
    $page = bbp_get_page_by_path( bbp_get_root_slug() );
    if ( !empty( $page ) ) {
    $root_url = get_permalink( $page->ID );

    // Use the root slug
    } else {
    $root_url = get_post_type_archive_link( bbp_get_forum_post_type() );
    }

    // Add the breadcrumb
    $crumbs[] = ‘‘ . $r[‘root_text’] . ‘‘;
    }

    // Ancestors exist
    if ( !empty( $ancestors ) ) {

    // Loop through parents
    foreach ( (array) $ancestors as $parent_id ) {

    // Parents
    $parent = get_post( $parent_id );

    // Skip parent if empty or error
    if ( empty( $parent ) || is_wp_error( $parent ) )
    continue;

    // Switch through post_type to ensure correct filters are applied
    switch ( $parent->post_type ) {

    // Forum
    case bbp_get_forum_post_type() :
    // PAA – modified
    //echo ‘forum title’. bbp_get_forum_title( $parent->ID) ;
    $test_title = bbp_get_forum_title( $parent->ID) ;
    if ($test_title == ‘Group Forums’){
    $base_url = bp_get_root_domain();
    $crumbs[] = ‘Groups‘;}
    else
    {$crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-forum”>’ . bbp_get_forum_title( $parent->ID ) . ‘‘; };

    break;

    // Topic
    case bbp_get_topic_post_type() :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-topic”>’ . bbp_get_topic_title( $parent->ID ) . ‘‘;
    break;

    // Reply (Note: not in most themes)
    case bbp_get_reply_post_type() :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-reply”>’ . bbp_get_reply_title( $parent->ID ) . ‘‘;
    break;

    // WordPress Post/Page/Other
    default :
    $crumbs[] = ‘ID ) ) . ‘” class=”bbp-breadcrumb-item”>’ . get_the_title( $parent->ID ) . ‘‘;
    break;
    }
    }

    // Edit topic tag
    } elseif ( bbp_is_topic_tag_edit() ) {
    $crumbs[] = ‘‘ . sprintf( __( ‘Topic Tag: %s’, ‘bbpress’ ), bbp_get_topic_tag_name() ) . ‘‘;

    // Search
    } elseif ( bbp_is_search() && bbp_get_search_terms() ) {
    $crumbs[] = ‘‘ . esc_html__( ‘Search’, ‘bbpress’ ) . ‘‘;
    }

    /** Current ***********************************************************/

    // Add current page to breadcrumb
    if ( !empty( $r[‘include_current’] ) || empty( $r[‘current_text’] ) ) {
    $crumbs[] = $r[‘current_before’] . $r[‘current_text’] . $r[‘current_after’];
    }

    /** Separator *********************************************************/

    // Wrap the separator in before/after before padding and filter
    if ( ! empty( $r[‘sep’] ) ) {
    $sep = $r[‘sep_before’] . $r[‘sep’] . $r[‘sep_after’];
    }

    // Pad the separator
    if ( !empty( $r[‘pad_sep’] ) ) {
    if ( function_exists( ‘mb_strlen’ ) ) {
    $sep = str_pad( $sep, mb_strlen( $sep ) + ( (int) $r[‘pad_sep’] * 2 ), ‘ ‘, STR_PAD_BOTH );
    } else {
    $sep = str_pad( $sep, strlen( $sep ) + ( (int) $r[‘pad_sep’] * 2 ), ‘ ‘, STR_PAD_BOTH );
    }
    }

    /** Finish Up *********************************************************/

    // Filter the separator and breadcrumb
    $sep = apply_filters( ‘bbp_breadcrumb_separator’, $sep );
    $crumbs = apply_filters( ‘bbp_breadcrumbs’, $crumbs );

    // Build the trail
    $trail = !empty( $crumbs ) ? ( $r[‘before’] . $r[‘crumb_before’] . implode( $sep . $r[‘crumb_after’] . $r[‘crumb_before’] , $crumbs ) . $r[‘crumb_after’] . $r[‘after’] ) : ”;

    return apply_filters( ‘mod_bbp_get_breadcrumb’, $trail, $crumbs, $r );
    }

    add_filter( ‘bbp_get_breadcrumb’,mod_bbp_get_breadcrumb, 98, 2);
    ?>

    At this point I’m not sure what else to do or if it’s ok to ignore the warning

    deserthighway
    Participant

    I get the following error when trying to import an existing smf forum using the import tool in the forums.

    WordPress database error: [Unknown character set: ‘utf8mb4’]
    SELECT convert(topics.id_topic USING “utf8mb4”) AS id_topic,convert(topics.num_replies USING “utf8mb4”) AS num_replies,convert(topics.id_board USING “utf8mb4”) AS id_board,convert(topics.id_member_started USING “utf8mb4”) AS id_member_started,convert(messages.poster_ip USING “utf8mb4”) AS poster_ip,convert(messages.body USING “utf8mb4”) AS body,convert(messages.subject USING “utf8mb4”) AS subject,convert(topics.locked USING “utf8mb4”) AS locked,convert(topics.is_sticky USING “utf8mb4”) AS is_sticky,convert(messages.poster_time USING “utf8mb4”) AS poster_time FROM smf_topics AS topics LEFT JOIN smf_messages AS messages ON topics.id_first_msg = messages.id_msg LIMIT 0, 100

    How do I get past this?

    WP Version 4.8
    bbpress version 2.5.12
    http://hbmm-national.org/HBMM-National-2017-Forum/
    (Site is just being started to build forum before going live as a subdomain)

    Thanks in advance for any help you can offer.

    R. Duane Gryder
    HonorBound Motorcycle Ministry

    #185623
    Robin W
    Moderator

    interesting question

    I think bbpress just uses the wordpress pretty permalinks, so might be worth trying this plugin to see if you can change the default

    Edit Author Slug

    I’ve only read the page above, not tried it !

    Please do report back if it works (or if it doesn’t)

    #185621
    Robin W
    Moderator

    Firstly, when a user registers,

    bbpress just uses wordpress, so it should work if qordpress is working.

    Can you try using http://www.mysite.com/wp-login and see if that works.

    Also, when a user logs in, in the login bbpress widget, it still shows the username and password login boxes, but if I go into a sub forum, the widget then shows the users details.

    not sure what you mean here. On what page or post do you have this first widget?

    #185619
    andrew55
    Participant

    Sorry for all the confusion. I was guessing this was a bbPress issue. After digging and digging, I discovered the issue is actually from this plugin:

    You Have a New (BuddyPress) Message

    It appears to be creating the paragraph and break, even when there is no message notice present. This is what’s causing the spacing issue. I really like plugin, so I will experiment to see how I can make it work.

    Also, did you get my email earlier? Just checking!

    #185616
    andrew55
    Participant

    Correct. I checked the page again though, and there is no paragraph or break below [bbp-forum-index]

    But of course, I can’t guarantee WordPress isn’t creating something there.

    #185613

    In reply to: Members only forum

    lesan
    Participant

    For anyone with the same problem, this works for me:

    bbP Members Only

    #185607
    andrew55
    Participant

    I found this plugin which seems to do the job:

    Real-Time Find and Replace

    #185602
    Robin W
    Moderator

    ok, for bbpress roles, then my style pack plugin will let you change role names (and a whole lot more)

    bbp style pack

    go to settings>bbp style pack>forum roles

    #185601
    andrew55
    Participant

    Ok, I see now.

    Yes, it’s a role we are trying to change. We are doing some whacky things with roles. On frontend of bbPress, sometimes we display bbPress roles and sometimes standard WordPress roles.

    I was looking for a method to change how roles are displayed on frontend, without changing the actual name of the role in the database.

    For example, instead of “Participant,” is shows as “New Member”

    Or, instead of “Subscriber,” is shows as “Student”

    Maybe there are different methods to accomplish this for standard WordPress roles and bbPress roles?

    Thanks for any suggestions.

    #185600
    Robin W
    Moderator

    Subscriber is normally a wordpress role and probably isn’t viewed as ‘text’, it will be taken from a function.

    are yours showing on the forum pages?

    #185578

    In reply to: New update

    rideshareguides
    Participant

    The site looked fine until we updated to WP 4.8. Topics became cramped under forum and received an error message when trying to create a topic or reply to a topic at front end. Same error when trying to access forums at back end. Topics at back end show no topics.

    Deleted the plugin, reinstalled and started fresh with a new theme. Still see the same old content and get the same error. This is the error message:

    Fatal error: Uncaught Error: [] operator not supported for strings in /home/rsgtoday/public_html/forum/wp-content/plugins/bbpress/includes/forums/functions.php:1800 Stack trace: #0 /home/rsgtoday/public_html/forum/wp-includes/class-wp-hook.php(298): bbp_pre_get_posts_normalize_forum_visibility(Object(WP_Query)) #1 /home/rsgtoday/public_html/forum/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #2 /home/rsgtoday/public_html/forum/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #3 /home/rsgtoday/public_html/forum/wp-includes/class-wp-query.php(1683): do_action_ref_array(‘pre_get_posts’, Array) #4 /home/rsgtoday/public_html/forum/wp-includes/class-wp-query.php(3248): WP_Query->get_posts() #5 /home/rsgtoday/public_html/forum/wp-includes/class-wp.php(617): WP_Query->query(Array) #6 /home/rsgtoday/public_html/forum/wp-includes/class-wp.php(735): WP->query_posts() #7 /home/rsgtoday/public_html/forum/wp-includes/functions.php(955): WP->main(Array) #8 /home/rsgtoday/public_html/forum/wp-admin/includes/ in /home/rsgtoday/public_html/forum/wp-content/plugins/bbpress/includes/forums/functions.php on line 1800

    At this point, we would like to get rid of the content that is on the site now and rebuild the forum. The forum site is to be part of a multi-site network of three WordPress sites, so it is critical to get it working. Have read your documentation and will need the right sidebar on the forum.

    #185576
    Robin W
    Moderator

    If you know when a user does this then if you install

    bbP Toolkit

    you can go to users>user>subscriptions and unassign them from all forums and topics with a couple of clicks

    danatupserve
    Participant

    When users link to our posts within a topic or reply, wordpress is embedding the post within the reply via an iFrame. (As in, you can see a preview of the post.

    How do we prevent internal links from being embedded while still allowing YouTube etc to be embedded.

    Thanks,
    Dan

    #185565
    Robin W
    Moderator

    bbpress uses the worpress login, so that should all work, Just make sure you set the default role to participant in the settings>forums

    and to clarify from the WSL documentation

    WSL will take the user in a short journey to the selected social network to ask for his permission to access his profile. If he does, and if everything goes as expected, WSL will create a new account for the user if he doesn’t have one already, authenticate him within WordPress, then redirect him back to where he come from.

    so it should work.

    The user should be allocated the participant role on first login

    Just yelling back at me like I am some dumbass that you don’t want something doesn’t get us any further forward.

    Now if this isn’t working and you have checked my original suggestion then do please come back with a polite response and I will be delighted to help further.

    #185561
    andrew55
    Participant

    We use a membership script integrated with WP and BBP. When users unsubscribe from emails in script, they still get email notifications from bbp (topic replies, etc). This is bad.

    It’s easy for us to mass-assign these members to a custom role. Is there a way to prevent bbp from sending emails to these users who have this custom role?

    I see here that you can create functions for creating new capabilities (for User Role Editor plugin):

    User Role Editor WordPress plugin – Change roles easily

    Is there a function, or another method I can use to prevent bbp from sending of all emails for users who have specific custom role?

    Thanks for any suggestions!

    #185544
    Berrie Pelser
    Participant

    Hi there,

    Is it possible to have all “Topics” (so NOT the “Reaction Posts”) made by “Participants” approved (by a bbPress “Moderater”) before they are published?.

    I read some post about this and see this plugin: /wordpress.org/plugins/bbpressmoderation/ –> BUT this is 4 years old! I would normaly NEVER use this old versions on a large commercial website. Plus it seems that this plugin let me also approve the reaction posts and this is not workable for us.

    I am running WordPress 3.7.5 with bbPress 2.6-rc-3 on PHP 7.1.x With > 200 Forums

    Thx in advance for helping me out.

    p.s. is this maybe a nice feature for a nex bbPress version say 2.6-rc-4 πŸ˜‰

    best regards,
    Berrie Pelser – Ber|Art

    #185537
    #185514

    In reply to: Iimprovements

    Robin W
    Moderator

    2) Shows the total topics, replies and total count under the avatar on each topic/reply view in bbpress
    Because this plugin https://wordpress.org/plugins/bbp-topic-count/ not tested up to : WordPress 4.8

    is tested to 4.8 – it says so and I wrote it !!

    can’t help with 1 – It should work, try it on your test site

    #185513

    In reply to: Iimprovements

    netixel
    Participant

    1) Button to allow users to report a message to the moderator
    because this plugin https://en-gb.wordpress.org/plugins/bbpress-report-content/ tested up to : WordPress 4.0.18 and now the wordpress version is 4.8…

    2) Shows the total topics, replies and total count under the avatar on each topic/reply view in bbpress
    Because this plugin https://wordpress.org/plugins/bbp-topic-count/ not tested up to : WordPress 4.8

    windwardoaks
    Participant

    windwardoaksontherez.website/ I have created a homeowner’s website with both blog posts and forums. When I activate the bbPress, the blog feed grays out on the home screen and the news link on the menu opens a blank page. Users who login can see the blogs but the public view is missing. I don’t have anything setup restricting the post pages or the forums.

    If I deactivate the plugin, then both the logged in members and the public can see the blog posts, but then, of course, I don’t have forums. Any idea what is causing this to happen?

    WordPress 4.8, bbPress 2.5.12,

    Stephen Edgar
    Keymaster

    I see you found the correct forum for the bbp-messages plugin πŸ™‚

    So, yeah, not a bbPress issue πŸ™‚

    https://wordpress.org/support/topic/fatal-error-using-this-when-not-in-object-context-in-3/

    juliettem
    Participant

    Hi there,

    I am currently using the below versions of WordPress and BBPress:
    BBPress version 2.5.12
    Image Upload for BBPress Plugin version 1.1.14
    WP version 4.8

    My website is myfertilityfocus.com (the forum is for members only).

    When I originally installed the ‘Image Upload for BBPress’ plugin, there was an option for setting the dimensions of the image that was being uploaded to a post. Now this seems to have disappeared. If a member wants to post an image, there is no way for them to set the dimensions. Do you know what has happened here? Images are ending up way too big on members’ posts!

    cheranime
    Participant

    Hello!
    Thank you for this bbPress Messages plugin.

    Upon activation of the plugin and trying to send a private message, an error message β€œFatal error: Using $this when not in object context in /home/web/japarang/public_html/wp-content/plugins/bbp-messages/Inc/Lib/wp-messages/src/wp-messages.php on line 1952

    Will like to seek your help in resolving this error. Thanks

    My Forum: http://www.japarang.com/forums/
    Wordpress Version: 4.8

    #185479
    marcomedia2017
    Participant

    Hi there. I am new to WordPress and this plug in. Setting up up site and there is two different user types that will be logging in, and I want one set of users to be able to see certain forums and the other not as it is private to one set of users, is this possible? Any help would be awesome.

Viewing 25 results - 4,301 through 4,325 (of 26,835 total)
Skip to toolbar