Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,801 through 5,825 (of 32,518 total)
  • Author
    Search Results
  • #179080
    Jochen Gererstorfer
    Participant

    Hello,
    there is a problem with bbpress, that prevents SEO Plugins to do there job.

    The problem exists only for the forum index page. Also if you use a standard page an paste the [bbp-forum-index] shortcode.

    * That page is not handled anymore as a page, so it gets a noindex tag by the SEO plugins.
    * It’s also not possible to add a custom title, description or other meta tags.

    The bbpress forum index is completely ignoring all of that settings.
    The result is a noindex forum index without a reasonable title and description.

    Example:
    Forum index

    Screenshot of the ignored settings:

    I talked with the codes a the German WPseo plugin.
    They told me, that bbpress is using so crude things for that index and doesn’t use wordpress standards.

    I also found here in the forum and on Google, that Yoast and All in one SEO Pack have the same problems with bbpress.

    Is there a way to get that fixed?

    A forum index with nofollow makes no sense at all.

    thanks
    Jochen

    #179131
    JoeCec
    Participant

    Has anyone been able to inject googles captcha widget into the login prompt? If so, do you mind pointing me to the source code?

    #179126
    Anonymous User
    Inactive

    You’re welcome all. Happy to be able to help 🙂


    @wasanajones
    You can use get_the_excerpt( $se_post ) or just post_excerpt property of the WP_Post object:

    Edit the last callback from previous code to go as this:

    add_filter('bbp_get_form_topic_content', function( $body ) {
    	global $se_post;
    	if( $se_post ) {
    		return $se_post->post_excerpt;
    	}
    	return $body;
    });

    I did not test this but I am sure it should work.

    Best,
    Samuel

    #179114
    idpokute
    Participant

    Hi gurus,

    I’m wonder how I can display topics under specific category.
    Here is example;
    Game News (category)
    – PC (forum)
    – Mobile (forum)
    Local Community (category)
    – Toronto (forum)
    – Tokyo (forum)

    I want to show PC and Mobile game news, when users access ‘News’ page.
    Did I miss the shortcode that I need to write on ‘News’ page?

    Thank you in advance.

    #179111
    gbbgadmin
    Participant

    Update. Today we did the following:

    1. Deactivated all BuddyPress and bbPress plugins. Uninstalled all BuddyPress and bbPress plugins. Removed all BuddyPress and bbPress data from the database, but kept a backup copy of the data and tables.
    2. Installed fresh WordPress on fresh server. Installed new, fresh plugins.
    3. Site worked.
    4. Replaced data from backup.
    5. Entire site works, EXCEPT there is a 503 error when people try to post a reply on a forum, and a 503 error when we try to go to the “replies” page from the wp-admin.

    So, maybe something in the data? Could someone have posted a reply that has some content that is breaking the php code when trying to see the Admin panel “replies” page or when people try to post a reply?

    We have learned another thing. When people post a reply, the reply DOES go into the db and it is visible to other members on the forum. HOWEVER, the person posting the reply gets a 503 error during the process and has to come back to the site fresh to see the forum, including their post.

    Something is causing a 503 error ONLY when replying OR when we try to access the Admin “Replies” page as admin. It is very very strange.

    #179096
    Robin W
    Moderator

    It is the shortcode, but I think that you probably need to pay someone to do this – different theme work in different ways and clearly this is not within your current skillset

    http://jobs.wordpress.net/

    #179092

    In reply to: bbp-messages

    u_Oi
    Participant

    bbPress Messages works fine… maybe there is something wrong with WAMP.

    Try to buy the pro version to get faster support and better features! bbPress Messages Pro

    Regards,

    #179073
    u_Oi
    Participant

    Hi Buddies!

    I checked out the “Layout and functionality” page, and I found that I can add Social Media Fields to bbPress through this function:

    function add_extra_contactmethod( $contactmethods ) {
    // Add new ones
    $contactmethods['twitter'] = 'Twitter';
    $contactmethods['facebook'] = 'Facebook';
    $contactmethods['googleplus'] = 'Google Plus';
    $contactmethods['youtube'] = 'Youtube';
      
    // remove unwanted
    unset($contactmethods['aim']);
    unset($contactmethods['jabber']);
    unset($contactmethods['yim']);
      
    return $contactmethods;
    }
    add_filter('user_contactmethods', 'add_extra_contactmethod');

    I wonder if there is a way to make them visible. I mean if I add my Facebook account could bbPress show it on the public profile with a Facebook Icon?

    And also show them in users topics and replies posted?

    Any advice, thanks!

    Anonymous User
    Inactive

    @treeflips

    Hi contemplate,

    Can you make a skimmed down version of your solution for people who have ONLY bbpress?

    /**
     * Hooked into the new reply function, this notification action is responsible
     * for notifying topic and hierarchical reply authors of topic replies.
     * Fixed: https://bbpress.org/forums/topic/new-reply-notification-link-to-the-reply/
     */
    function bbp_buddypress_add_notification_custom( $reply_id = 0, $topic_id = 0, $forum_id = 0, $anonymous_data = false, $author_id = 0, $is_edit = false, $reply_to = 0 ) {
    
    	// Bail if somehow this is hooked to an edit action
    	if ( !empty( $is_edit ) ) {
    		return;
    	}
    
    	// Get autohr information
    	$topic_author_id   = bbp_get_topic_author_id( $topic_id );
    	$secondary_item_id = $author_id;
    
    	// Hierarchical replies
    	if ( !empty( $reply_to ) ) {
    		$reply_to_item_id = bbp_get_topic_author_id( $reply_to );
    	}
    
    	// Get some reply information
    	$args = array(
    		'user_id'          => $topic_author_id,
    		'item_id'          => $reply_id,
    		'component_name'   => bbp_get_component_name(),
    		'component_action' => 'bbp_new_reply',
    		'date_notified'    => get_post( $reply_id )->post_date,
    	);
    
     	// Notify the topic author if not the current reply author
     	if ( $author_id !== $topic_author_id ) {
    		$args['secondary_item_id'] = $secondary_item_id ;
    
    		bp_notifications_add_notification( $args );
     	}
     
     	// Notify the immediate reply author if not the current reply author
     	if ( !empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) {
    		$args['secondary_item_id'] = $reply_to_item_id ;
    
    		bp_notifications_add_notification( $args );
     	}
    }
    remove_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10 );
    add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification_custom', 10, 7 );
    #179068
    Anonymous User
    Inactive

    Can you point me to the function that converts @mentions to links. I feel like I can figure this out but I can’t find where it’s being converted.

    It is called bbp_make_mentions_clickable and located line:424 of \includes\common\formatting.php. The function is hooked in \includes\core\filters.php:248

    #179064
    johnskennedy
    Participant

    Thanks for the reply, unfortunately it did not work for me, but off a hunch I cut some code from the .php file, saved it, and then replaced the code and now it seems to work again. Still not sure why but hope this helps someone.

    #179037
    Robin W
    Moderator

    would need bespoke code.

    You can get close by having forums per team and using

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

    but without further code it wouldn’t restrict them to their own topics

    #179028
    Robin W
    Moderator
    #179025
    Robin W
    Moderator
    #179001
    imthinking
    Participant

    I’m a solid 7.5 out of 10 on WP but 100% new to BBpress.

    I plan on having about 15 categories with some 50 forums for each category on my site. The current default display isn’t easy to follow so I’m attempting to find a way to easily change the layout on the forum index display page.

    However, I don’t want to show all of the forums as some are private to groups etc.

    I’m looking to achieve this look on this page: http://theme-sphere.com/smart-mag/forums/

    I understand CSS is involved here but I’m looking for a get me going fix.

    How can I list multiple forum titles on one page. When I use the code [bbp-single-forum id=2733] and then use it again to show a different forum it will only show the first one.

    Is this not possible with shortcode?

    Could I create a graphic bar and separate groups of forum titles like in the page I linked to?

    Thank you for whoever guides in the path of rest as I have exhausted these forums in an attempt to answer these questions.

    🙂

    #178987
    Robin W
    Moderator

    depends what you mean by top menu, I suspect primary, in which case

    add_filter( 'wp_nav_menu_items', 'rkk_add_auth_links', 10 , 2 );
    function rkk_add_auth_links( $items, $args ) {
    if (is_user_logged_in() && $args->theme_location == 'primary') {
     $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>';
     }
     elseif ( !is_user_logged_in() ) {
     $items .= '<li><a href="'. site_url('wp-login.php') .'">Log In</a></li>';
     $items .= '<li><a href="'. site_url('wp-login.php?action=register') .'">Register</a></li>';
     $items .= '<li><a href="'. site_url('wp-login.php?action=lostpassword') .'">Lost Password</a></li>';
     }
     return $items;
    }
    #178975
    goviajero
    Participant

    Hello, I’m using this function from bbpress codex to add login/logout to the menu.

    I want to show the login/logout on the top menu only, not on the header. Any way to do this? Hope its just a simple tweak. Thanks

    add_filter( ‘wp_nav_menu_items’, ‘rkk_add_auth_links’, 10 , 2 );
    function rkk_add_auth_links( $items, $args ) {
    if ( is_user_logged_in() ) {
    $items

    #178974
    goviajero
    Participant

    Hello, I’m using this function from bbpress codex to add login/logout to the menu.

    I want to show the login/logout on the top menu only, not on the header. Any way to do this? Hope its just a simple tweak. Thanks

    add_filter( ‘wp_nav_menu_items’, ‘rkk_add_auth_links’, 10 , 2 );
    function rkk_add_auth_links( $items, $args ) {
    if ( is_user_logged_in() ) {
    $items

    _______________________________________________________________________________________

    #178944
    Thomas_k
    Participant

    Hello everyone,

    I have a lot BBpress related questions that i can’t find a good answer to. Is there someone that has some good experience in customizing and setting up BBpress who has Skype and is willing to help me trough Skype?

    The answers i am looking for are related to these subjects.

    *When user account is created, user logs in but when button log in is clicked, page refreshes and doesn’t show logged in account information. The same screen as when not logged in.

    *When the user finally gets logged in there is a wordpress menu on top, how to delete this? (atleast on mobile we’ve seen it)

    *We want a different page for the user that already has an account or for the new users that aren’t already logged in (forum page).

    *BBpress sidebar is not showing up, tried many different things. Adding code manually, installed plugins etc. Only the main theme sidebar is showing.

    *Breadcrumb path is displaying forums twice. We did some php code to hide the homepage but don’t know how to hide these double words.

    Help would be really appreciated. If there is no way around i am willing to pay a small fee.

    Thomas

    #178940
    parker012
    Participant

    Thank You, Where do I put the shortcode or how do I add the shortcode, Many thanks

    #178939
    ferdsnp
    Participant

    Solved, and very simple
    Create new page example forum option (no-sidebar)
    Then insert the following code [bbp-forum-index]

    #178929
    oris6791
    Participant

    I have tried so many codes on my child theme css to add custom codes. I can’t seem to get it done.

    my website is: theceoafrica.com
    theme: tdMacro theme

    Can anyone PLEASE help me figure out how to:

    1. To remove the blue link colour after mouse click on each menu item
    2. To add a white border on current/active menu item
    3. Please i also need to adjust the width of my website. It doesn’t fit into the window.

    I would really appreciate your help. Thank You.

    #178926
    Robin W
    Moderator

    for main page then use the forum shortcode in the main page

    [bbp-topic-index]

    or use on of the other shortcodes

    Shortcodes

    #178925

    In reply to: Roles and limits

    Robin W
    Moderator

    you can add roles and/or change their names – see

    Custom Capabilities

    The following in an example that both adds new roles and changes the names of existing.

    /* bbPress Custom Roles */
    function add_custom_role( $bbp_roles ) {
     
    
    $bbp_roles['my_custom_role2'] = array(
    'name' => 'Craftsman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['my_custom_role3'] = array(
    'name' => 'Journeyman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['my_custom_role4'] = array(
    'name' => 'Adept',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    $bbp_roles['my_custom_role5'] = array(
    'name' => 'Artisan',
    'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as keymaster
    );
    $moderator = bbp_get_moderator_role() ;
    $bbp_roles[$moderator] = array(
    'name' => 'Councilman',
    'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() ) // the same capabilities as moderator);
    $keymaster = bbp_get_keymaster_role() ;
    $bbp_roles[$keymaster] = array(
    'name' => 'Advisor',
    'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() ) // the same capabilities as keymaster
    );
    $apprentice = bbp_get_participant_role() ;
    $bbp_roles[$apprentice] = array(
    'name' => 'Apprentice',
    'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // the same capabilities as participants
    );
    return $bbp_roles;
    }
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );

    you can limit access to forums byh changing their visibility

    Public – Anyone can see these forums
    Private – Only logged in registered users with a forum role can see these forums
    Hidden: Only Moderators/keymasters can see these forums

    or if you want more control by using :
    https://wordpress.org/plugins/bbp-private-groups/

    Thomas_k
    Participant

    Hi guys,

    I made a redirect php code the the main forum page but i want to display a custom message for each action that is made. So i the user doesn’t enter a password or a username i want to display a message like, you did enter the wrong password or username, please try again.

    How do i add this in the php code?

    This is the php code i got from the internet for redirecting to the forum page if…. .

    add_filter( ‘login_redirect’, ‘login_redirect’, 10, 3 );

    add_action(‘login_redirect’, ‘redirect_login’, 10, 3);
    function redirect_login($redirect_to, $url, $user) {
    if($user->errors[’empty_password’]){
    wp_redirect(get_bloginfo(‘url’).’/forum/’);
    }
    else if($user->errors[’empty_username’]){
    wp_redirect(get_bloginfo(‘url’).’/forum/’);
    }
    else if($user->errors[‘invalid_username’]){
    wp_redirect(get_bloginfo(‘url’).’/forum/’);
    }
    else if($user->errors[‘incorrect_password’]){
    wp_redirect(get_bloginfo(‘url’).’/forum/’);
    }
    else{
    wp_redirect(get_bloginfo(‘url’).’/forum/’);
    $a = “Hello “;
    }
    exit;
    }

    Thanks in advance,

    Jottem15

Viewing 25 results - 5,801 through 5,825 (of 32,518 total)
Skip to toolbar