Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 7,876 through 7,900 (of 32,677 total)
  • Author
    Search Results
  • #243620
    Henry Wright
    Moderator

    You’d need to use Ajax. Take a look at the Ajax in Plugins article for more info.

    #243619
    Henry Wright
    Moderator

    How are you linking your style sheet? Make sure you’re using wp_enqueue_style().

    Ref: https://codex.wordpress.org/Function_Reference/wp_enqueue_style

    #243618
    danbp
    Participant

    @dayan89,

    could it be that you created your Top menu, by adding a new menu without having two different menu location in your theme ? This can explain why you see always your item, what ever menu you choose. This happen because you try to assign 2 different menus to a same place.

    Following snippets where successfully tested with Twenty Twelve.

    This fires the profile link on the menu tab.

    function profile_button_menu_item ( $items, $args ) {
       
    // menu name. Primary is default main menu location in Twenty themes
        if ( $args->theme_location == 'primary') {
            $items .= '<li><a href="' . bp_loggedin_user_domain() . 'profile/public/">' . __('My Profile') . '</a></li>';
        }
        return $items;
    }
    add_filter( 'wp_nav_menu_items', 'profile_button_menu_item', 10, 2 );

    The following explains how it works with 2012.

    In 2012’s header.php, there is only one menu, located line 45
    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) );?>

    To use 2 menus, I added below that line another location
    <?php wp_nav_menu( array( 'theme_location' => 'top', 'menu_class' => 'nav-menu' ) );?>

    In child-theme’s functions.php, i added

    
    function register_my_menu() {
      register_nav_menus(
        array(
          'top' => 'Top'   
        )
      );
    }
    add_action( 'init', 'register_my_menu' );

    Under Menu Settings (wp-admin/nav-menus.php) i have now 2 theme locations.
    Primary Menu and Top
    Understand here that 2 locations are different of having only 2 menus. Location is a unique place for ONE menu.

    Of course, I have 2 different menus. One is assigned to Primary Menu location, the other one to Top location.

    And i can now move my profile item from one to other menu, by simply changing the location (primary ⇔ top) in profile_button_menu_item function.

    Codex reference: https://codex.wordpress.org/Navigation_Menus

    #243612
    danbp
    Participant

    Hi @djsteveb,
    I don’t have that tab under menus on my other bp install Really ? Have you activated buddypress in screen options ? Just in case of… πŸ˜‰

    BuddyPress Links in WordPress Menus

    dayan89
    Participant

    Hi,

    I have two menu areas on my website: main and top. I would like to add user profile link to top menu only.

    I found this example, which was were useful: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#8-add-edit-profile-to-a-wordpress-menu But it adds link to both menus, top and main. I would like to add user profile link only to top menu, without adding it to main menu.

    Can you help me please?

    #243582
    shaunik
    Participant

    I have existing site with 500 plus users and already have WP profile fields created a while ago with simple fields like address, city, state and Zip and custom fields like year joined and speciality.
    I am planning on deploying Buddypress to add functionality to the site. How can sync all these fields with XProfiles fields
    I know https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ help you create Xprofile fields and https://wordpress.org/plugins/bp-xprofile-wp-user-sync/ help you sync first and last name.
    How about all other fields. I need members to be able to message each other, create events, map each other by location and events by location and finally create groups. Do I need BuddyPress or alternate that work with WP Profiles will work.

    Thanks/Shaunik

    #243576
    danbp
    Participant

    @xrossgg,

    read some advice here.

    #243574
    danbp
    Participant

    @creationp,

    once you have identified the correct element id or class, you add !important to the new rule you want for it.
    In a child-theme style.css preferably, something like:

    h1.entry-title {
     color: #DDD!important;
    }

    Note that this example will we applied to ALL page title.

    #243572

    In reply to: PHP 7.0 compatibility

    danbp
    Participant

    @vinzen, wait a little or accept yes and no ;-). PHP 7.0.0 RC 1 is out since 2015/08/21…. RC version should not be used on production sites.

    WordPress and BP are both guaranted to work only on the latest stable release of anything needed to get them to work. But you can test at your own risk, RC’s and trunk version are avaible for that.

    php7 has a projected release date of November 2015. Next WP release is scheduled in december 2015. And BP around october…

    WP devs are already using php7 for unit test. More from here (WP) and here (BP).

    #243569
    XrossGG
    Participant

    Thanks Henry, Maybe you have just opened up a new world to me. I’ve been working with Salesforce in the past to store a lot of personal information, now it’s a different CRM/online marketing system. I was never aware that WordPress could be used as a CRM system. I would need something advanced though, something like Salesforce and then also an online marketing tool included. Quite honestly, I would love to keep everything inside WordPress, but I’m not sure that something like that exists. Would there be any (eventually paid) specific solutions that you could advise?

    What I need is at least the following (and much more…):
    * store all details from visitors (personal details, mailing preferences, interests, etc), with advanced search and selection functionalities
    * send an automated email to members that weren’t active for the past x months
    * Send an automated thank you email to people who joined an event
    * Track email, login, site activity
    * Etc etc.

    #243568
    Henry Wright
    Moderator

    You could use WordPress as your CRM. There are quite a few plugins in the repo for that purpose. My advice is to set up a test install, try them out and see which one works best for you.

    #243566
    danbp
    Participant
    shanebp
    Moderator

    Custom notifications in non-components is tough.

    Have you try hooking bp_notifications_get_notifications_for_user with a higher priority than what bbPress uses? Something like 8 instead of 10?

    You may want to submit a ticket to bbPress about the orphaned return in their function.

    Marc
    Participant

    Hi everyone,

    I’am currently try to add custom notification from a non BuddyPress component. I’m using this hooks:
    bp_notifications_get_registered_components
    bp_notifications_get_notifications_for_user
    and this function:
    bp_notifications_add_notification

    Everything works well except the hook bp_notifications_get_notifications_for_user. My problem is in my installation there is the bbPress plugin. It is also using this hooks. So this hooks is call twice, and the $action argument is empty or contain the rendered notification content. So I’m not allowed to do the right things on the second call.

    I must add this to this file in bbPress plugin :
    /wp-content/plugins/bbpress/includes/extend/buddypress/notifications.php on line 78 (at the end of the function return $action):

    
    /**
     * Format the BuddyBar/Toolbar notifications
     *
     * @since bbPress (r5155)
     *
     * @package bbPress
     *
     * @param string $action The kind of notification being rendered
     * @param int $item_id The primary item id
     * @param int $secondary_item_id The secondary item id
     * @param int $total_items The total number of messaging-related notifications waiting for the user
     * @param string $format 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar
     */
    function bbp_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	// New reply notifications
    	if ( 'bbp_new_reply' === $action ) {
    		$topic_id    = bbp_get_reply_topic_id( $item_id );
    		$topic_title = bbp_get_topic_title( $topic_id );
    		$topic_link  = wp_nonce_url( add_query_arg( array( 'action' => 'bbp_mark_read', 'topic_id' => $topic_id ), bbp_get_reply_url( $item_id ) ), 'bbp_mark_topic_' . $topic_id );
    		$title_attr  = __( 'Topic Replies', 'bbpress' );
    
    		if ( (int) $total_items > 1 ) {
    			$text   = sprintf( __( 'You have %d new replies', 'bbpress' ), (int) $total_items );
    			$filter = 'bbp_multiple_new_subscription_notification';
    		} else {
    			if ( !empty( $secondary_item_id ) ) {
    				$text = sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), (int) $total_items, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) );
    			} else {
    				$text = sprintf( __( 'You have %d new reply to %s',             'bbpress' ), (int) $total_items, $topic_title );
    			}
    			$filter = 'bbp_single_new_subscription_notification';
    		}
    
    		// WordPress Toolbar
    		if ( 'string' === $format ) {
    			$return = apply_filters( $filter, '<a href="' . esc_url( $topic_link ) . '" title="' . esc_attr( $title_attr ) . '">' . esc_html( $text ) . '</a>', (int) $total_items, $text, $topic_link );
    
    		// Deprecated BuddyBar
    		} else {
    			$return = apply_filters( $filter, array(
    				'text' => $text,
    				'link' => $topic_link
    			), $topic_link, (int) $total_items, $text, $topic_title );
    		}
    
    		do_action( 'bbp_format_buddypress_notifications', $action, $item_id, $secondary_item_id, $total_items );
    
    		return $return;
    	}
    	return $action;
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );

    And i have to do the same thing for my custom notification rendering.

    So my question is quite simple: Is this a bug? A bug from bbPress? A bug from BuddyPress? Or I am not using the hook properly?

    Please advice me, and I create a ticket if it is necessary.

    Thanks in advance.

    #243554
    Killa_
    Participant

    Hey. Is there a way to output permanent steam links in profiles using WordPress Social Login?
    It can output a permanent ID in “provider user identifier” field of WSL which can be linked to any custom buddypress field, but how do I convert it to something like this: steamcommunity.com/profiles/<provider_id> ?

    #243545
    danbp
    Participant
    #243544
    danbp
    Participant

    Test admin bar (called Toolbar since WP 3.3) removal with one of Twenty’s theme.
    It shows always on admin when logged-in, and depending the theme you use, on front-end.

    WP reference: https://codex.wordpress.org/Function_Reference/show_admin_bar

    Which theme do you use ?

    #243531
    danbp
    Participant
    1. Search Engine Visibility should stay unchecked. See your-site/wp-admin/options-reading.php
    2. Allow people to post comments on new articles: should be checked
      (These settings may be overridden for individual articles.) -> could be set to of by default on some themes. Posts directory > Choose Post > Quick edit > Allow comments. See your-site/wp-admin/options-discussion.php
    3. Site Tracking should be checked. BP Settings > components
    4. Blog & Forum Comments should be checked. BP Settings > settings

    If you’re testing a fresh BP install, add some content so you’ll see how it’s displayed. BP Default Data plugin is ideal for this.

    #243529
    Bezuhov
    Participant

    Just tested with new install of only wordpress and buddypress, all latest versions. Posts and posts comments do not appear in activity stream, sadly.

    It seems there is some inherent bug in the buddypress or something.

    #243526
    Bezuhov
    Participant

    Just tested the snippet provided by @danbp, doesn’t work for me, as nothing shows in the activity stream.

    Will do a clean install, with fresh DB, and only wordpress with buddypress, to see if there is something wrong with my current configuration.

    Will post updates, as i am willing to come to the bottom of this issue for the whole community. πŸ™‚

    #243520
    danbp
    Participant
    Bezuhov
    Participant

    Hi all,

    I just started working on a production site, with latest wordpress and buddypress installed, but can’t quite figure out why post comments do not appear in activity stream. I have search indexing and allow activity stream commenting on blog and forum posts enabled, but nothing happens. Well, everything else works just beautifuly, except that minor or major issue, lol. πŸ™‚

    Any ideas?

    wordpress: 4.2.4
    buddypress: 2.3.2.1
    theme: mesocolumn
    site: beta.karierist.si

    Your help would be much appreciated, thanks. πŸ™‚

    #243491
    danbp
    Participant

    Please read here.

    #243489
    danbp
    Participant

    You’re welcome !

    To all readers, Codex reminder when getting 404, missing BP pages, not found errors after setup or upgrade ! πŸ˜‰

    Settings β†’ BuddyPress β†’ Pages

    Pages are automatically generated for the BuddyPress components you enabled in the components settings using the default slugs based on the name of each component activated. Make sure that activated components have corresponding pages assigned to each in this panel.

    Directories
    Associate a WordPress Page with each BuddyPress component directory.

    • Activity Streams (if activated)
    • User Groups (if activated)
    • Members > this is core and can’t be removed/modified

    Registration

    Associate WordPress Pages with the following BuddyPress Registration pages.

    • Register
    • Activate

    Note: registration is not a BuddyPress component but part of WP core.
    When you allow user registration, you have to add manually these pages.

    danbp
    Participant

    To all readers, Codex reminder when getting 404, missing BP pages, not found errors after setup or upgrade ! πŸ˜‰

    Settings β†’ BuddyPress β†’ Pages

    Pages are automatically generated for the BuddyPress components you enabled in the components settings using the default slugs based on the name of each component activated. Make sure that activated components have corresponding pages assigned to each in this panel.

    Directories
    Associate a WordPress Page with each BuddyPress component directory.

    • Activity Streams (if activated)
    • User Groups (if activated)
    • Members > this is core and can’t be removed/modified

    Registration

    Associate WordPress Pages with the following BuddyPress Registration pages.

    • Register
    • Activate

    Note: registration is not a BuddyPress component but part of WP core.
    When you allow user registration, you have to add manually these pages.

Viewing 25 results - 7,876 through 7,900 (of 32,677 total)
Skip to toolbar