Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 376 through 400 (of 3,787 total)
  • @danbp

    Participant

    Check from here(experimental – uncomplete) or here(stable – complete)

    @danbp

    Participant

    I assume you correctly setup the BP pages and that you enabled permalinks with another option than “default”. Double-check they exist and have no template or model associated.

    Another issue might be the server setings.

    i’m a bit unsure, but WAMPP works better in win32 version (even with windows10). The win64 version is a dev version and is not recommended for a “normal” usage, so far i remember. But i could be wrong.

    Did you updated wampp or have you always used that version ? Do you have other sites on this server working without issues ?

    That said, when a local site is not found, first thing is to check the windows HOST file (windows/system32/drivers/etc/HOST) that you correctly declared the localhost name resolution.
    You should have manually added something like this in that file:

    127.0.0.1	localhost
    ::1 localhost
    
    127.0.0.1	your site
    ::1 your site

    @danbp

    Participant

    @bigkahunaburger,

    Allow admin: current_user_can( 'manage_options' )

    Allow the profile owner: bp_loggedin_user_id() == bp_displayed_user_id()

    You might use it like this:

    if ( current_user_can( 'manage_options' ) || bp_loggedin_user_id() == bp_displayed_user_id() ) {
       //do something
    }

    It is also best practice to check that the component is active to avoid errors on update or when BP is deactivated. In this case, xprofile.

    if ( bp_is_active( 'xprofile' ) )

    In reply to: Profile Cover Image

    @danbp

    Participant

    Afaik that you have to ask the theme author if you wouldn’t change it. It’s a premium theme and we can’t help you, as we have no access to his code.

    FYI, when you make customization, do it always in a child-theme. This not only save your work when a theme update comes up, but it let you also use another theme at any moment.

    @danbp

    Participant

    You have to adjust the CSS to get the title in black. Title is showing on register page, but white on white !

    The code for this is

    <div class="col-sm-12">
    <h2>Create an Account<span class="span-dot">.</span></h2>
    </div><!--/.col-sm-12-->

    In the CSS you add
    .col-sm-12 h2 { color: #000; }

    And if you want to change the dot color too (actually yellow), you use
    .col-sm-12 .span-dot { color: #000; }

    In reply to: Profile Cover Image

    @danbp

    Participant

    @cyanthaiger Which BP version do you use ?
    Please give also your plugin list and theme name.

    @danbp

    Participant

    Hi guys,

    you don’t need a plugin to get a contextual sidebar. You can do that with a few conditionnals and a function. Let’s take 2016 as example.

    Copy sidebar.php file of your theme to child-theme.
    Add an action hook to the template. Ie. xtra_sidebar
    Almost done !

    In Twenty Sixteen, it looks like this:

    <aside id="secondary" class="sidebar widget-area" role="complementary">
    
    	<?php do_action( 'xtra_sidebar' ); ?>
    	<?php dynamic_sidebar( 'sidebar-1' ); ?>
    
    </aside>

    Into bp-custom.php or child theme functions.php you add following function(s)

    If you want different custom sidebar content for different groups:

    function xtra_group_sidebar() {
       if ( bp_is_active( 'groups' ) ) {
    
          // conditionnal for group name (slug format)
          if ( bp_is_groups_component() && 'kill-bill' == bp_current_item() ):
    
    	 // your content
    	 echo '<section id="categories-2222" class="widget widget_categories">';
    	 echo '<h2 class="widget-title">what time is it Bill ? </h2>';
    	 $my_date = date('H:i'); echo $my_date; 
             echo '</section>';
          endif;
    		
          if ( bp_is_groups_component() && 'terminator' == bp_current_item() ):
    	 echo '<h3 style="color:red">WHO KNOWS ?</h3>';
          endif;
    		
          if ( bp_is_groups_component() && 'harry-poter' == bp_current_item() ):
             echo 'Hou ouh...';
          endif;
       }
    }
    add_action( 'xtra_sidebar', 'xtra_group_sidebar' );

    If you want a custom sidebar for profiles only, you use:

    function xtra_profile_sidebar() {
    
    	if ( bp_is_active('xprofile' ) && bp_is_user() ) {
    		?><section id="categories-1111" class="widget widget_categories">
    		<h2 class="widget-title">My profile sidebar</h2>
    		My sidebar content</section>
    <?php
    	}
    
    }
    add_action( 'xtra_sidebar', 'xtra_profile_sidebar' );
    function xtra_directory_sidebar() {
    
       if ( bp_is_active('xprofile' ) && bp_is_user() ) { 
    ?>
          <section id="categories-1111" class="widget widget_categories">
          <h2 class="widget-title">My directory sidebar</h2>
          My directory content</section>
    <?php
    	}
    }
    add_action( 'xtra_sidebar', 'xtra_directory_sidebar' );

    You can of course use the same technique for all other BP components.
    For profiles, you can even add a user_id check so you can personalize the sidebar for a given user.
    Or create a sidebar for visitors and another one for logged_in members… Sky is the limit ! 😉

    Note that the div and css names are theme dependant. The example use those of 2016 but you have to adjust that to fit your theme.

    Note also that most sidebars use listed content (ul/li). Try to respect that or you might break your theme. Check how it’s done and use the same. If you find ID numbers, use a very high number ! I use 1111, because i will never have 1111 widgets in my sidebar ! 😉

    Another way to do that would be to add conditionnals into the sidebar template. For example:

    if ( !this_component() ) {
       show the original sidebar
    } else {
       show my xtra sidebar
    }

    Hope it helps and happy templating ! 🙂

    @danbp

    Participant

    @danbp

    Participant

    Delete htaccess
    Go to permalinks and save. This will generate a new htaccess content. Copy/paste it to a new htaccess file (in case it is not made automatically).

    Also which local config do you use ? OS name, Apache, php, mysql version and software name and version (wamp, etc)
    Check the log error files and see if you have other errors as “site not found”.

    @danbp

    Participant

    Did you removed define('BP_DEFAULT_COMPONENT', 'profile' ); ?
    When it is removed you should have “activity” as default tab.

    If it still doesn’t work, use define('BP_DEFAULT_COMPONENT', 'activity' );

    @danbp

    Participant

    Hi,

    as BuddyPress doesn’t use a post tab, you might ask this on the plugin support who use that feature.

    @danbp

    Participant

    Hi @davidself1001,

    i think BP Profile Tabs is a plugin to create “nice looking tabs using the jQuery UI”, it is not the xprofile component !

    xprofile fileds and field groups (the tabs) management is located at
    dashboard > users > profile fields. What you see on that screen is normally what you have in the DB.
    Once you created fields and field groups in xprofile, you will see the group tabs in the plugin.

    @danbp

    Participant

    Hi @bcanr2d2,

    i would say 2 days. See wp-includes/ms-functions.php:410

    @danbp

    Participant

    You misunderstood me.

    Remove any define’profile’ and it each time you visit a profile the default activity screen will show up.

    But this may not work in your configuration as anything related to, at least, BuddyPress is going through site/activity/something/. You have to check for this as it is wrong.

    Perhaps in Dashboard > settings > general. What is WordPress URL and site URL ? Or have you added activity in a plugin or even in htaccess ?

    @danbp

    Participant

    Hi,

    you’re using a one page theme, which is not the easiest to start with for a beginner.

    I would recommand that you read first your theme documentation.

    One of the first line of the documentation contains:
    This WordPress theme can be entirely configured via WordPress Theme Customizer […].

    I encourage you to use that feature, before adding custom code.

    I tested the theme. Downloaded and activated. I didn’t upload the bunch of additionnal plugins recommanded by the author. At a first glance, all seems to work correctly. And my register page has a header.

    Out of the box, the theme comes with a header image. You can change it via the customizer.
    Dashboard > Apparence > Header

    As it is a one page, you have no (easy)possibility to assign different headers to different pages, like what you apparently try to do. The BP register page runs with the same header as the site.

    To change the CSS or BP templates, you need a child-theme. This let you make customization without loosing your changes after a theme, a BP or WP update.

    In the style.css of the child theme, you add this rule for the new header color:

    #header .bottom-header h2 {
        color: #000;
    }

    You can, for test purpose, add it to /illdy/style.css (which is empty). But be aware that it will certainly be overwritten at next update.

    Any other question related to your theme should be asked on theme support (you already asked there for the same as here).

    https://codex.wordpress.org/Child_Themes

    In reply to: menu link member list

    @danbp

    Participant

    No details = no ideas… Which menu ? A default WP menu ? A BP menu ? A custom menu ?

    Usually, you can use a conditionnal like this

    if (is_user_logged_in() ) {
       // do something
    }

    @danbp

    Participant

    BP is a WP plugin, don’t be confused by what i wrote. By same level i was meaning this :
    BuddyPress does not work on installations where you give WordPress its own directory. (install guide::Required)

    Glad you got it back to normal.

    @danbp

    Participant

    Hi,

    you need a function to do that.

    Here’s one who will show the user id on profile header and on members directory.
    Add it to bp-custom.php or child theme functions.php

    function razman_user_id_display() {
    	if ( bp_is_user() ) {
    		$user_id = bp_displayed_user_id();	
    	} else {
    		$user_id = bp_get_member_user_id();
    	}
    		
    	echo '<div class="myuser-id">My user ID: '. $user_id .'</div>';
    	
    }
    add_action( 'bp_before_member_header_meta', 'razman_user_id_display' );
    add_action( 'bp_directory_members_item', 'razman_user_id_display' );

    @danbp

    Participant

    Ensure you have a page for each active BP component. That the page is unique (no same page in trash or sub page) and that no template or model is assigned to them.

    Set up pretty permalinks to whatever but default and save.

    Go to dashboard > tools > buddypress and use the repair tool.

    And read the install guide ! 😉

    @danbp

    Participant

    Hi,

    it seems that you have a lot of pages on the site and that you use weird settings.

    I would do the following:
    – remove any redirect settings and other done via plugins.
    – deactivate all plugins except buddypress.
    – activate 2016, and not a child theme.
    – ensure that each active BP component has a page assigned and that this page is unique, without any template or model assigned. Just a title and nothing else.
    Actually, you have links like “…/americannexus.net/activity/members/” (found in the Who’s on widget). Or the link to Archangel’s profile indicates “../americannexus.net/activity/members/archangel/”

    That’s unusual and cannot work properly, except if your WP is in a directory called “activity”. And it is not the case ! Note also that BP should be at the same level as WP.

    – set up pretty permalinks (what ever but default option) and save.

    – and read attentively the install guide.

    Other dysfunctionning points:
    The toolbar has a Register button who link to ../americannexus.net/join/ (this works correctly)
    but the homepage shows ../americannexus.net/register/. If you want visitors to register, send them to /join/ page and not to an empty page.

    …and of course, this link doesn’t work too (at least for a not logged visitor) : ../americannexus.net/activity/groups/create/

    Here the list of correct slugs of a default BP install:
    – your-site.net
    – your-site.net/register/
    – your-site.net/activity -> BP site activity page (active by default)
    – your-site.net/members/ -> BP members directory (mandatory)
    – your-site.net/groups/ -> BP groups directory (if group component is active)

    These BP pages are dynamic and depending the context, you can have ie:
    your-site.net/members/USERNAME -> goes to a profile
    your-site.net/members/USERNAME/friends -> goes to the friends screen of the specified user

    It works the same for groups.

    Once BP and WP are working correctly together, you can reactivate the child theme and your plugins.

    @danbp

    Participant

    Hi,

    xprofile use 4 tables: _xprofile_data, _wprofile_fields, _xprofile_groups and _xprofile_meta

    But your description is unclear. Which settings are you talking about ? The one on dashboard or the one on profile, on front-end ?

    Can you give an example of your profile settings and tell what do you think is missing in regard of the DB content.

    @danbp

    Participant

    You assume well ! 😉

    @danbp

    Participant

    Can’t say more! The site is not public, you use S2 members, pages are redirected, and you use a premium theme. And apparently you’re unable to provisory revert to a standart install without undoing a lot of settings. If you couldn’t test, how could we do ?

    I presume there is a little js conflict somewhere – which could explain the jumping page phenomenom.
    Afaik you have to ask on the theme support how to adjust the layout while using BuddyPress.

    @danbp

    Participant

    I guess you don’t understand how it works.

    The seventhqueen example you mention show the default landing tab when you visit a profile. This default tab is “activity”.

    On your site it is exactly what happens actually:
    ../members/admin/ -> the defined landing tab

    On the demo, default is “activity” and the url is
    ../members/kleoadmin/ -> the default landing tab

    The profile slug is always: /members/USERNAME
    The default URL of a profile is always: /members/USERNAME
    The default content is profile’s activity which use the default URL/slug
    When you navigate inside a profile, from activity to profile to groups, forums or media.
    In your case and the actual setting, when you go to activity you will have /members/USERNAME/activity
    When you go to profile, you will have /members/USERNAME(defined as default component), when you go to groups, you will see /members/USERNAME/groups and so on.

    To resume, when you modify the default profile component, in favor of profile view or groups or whatever, you modify only the content showed by default. But this doesn’t modify the default slug which stays the same: /members/USERNAME

    In so far, it works like you wanted and i don’t understand what you want now.

    @danbp

    Participant

    Hi,

    you shouldn’t define the default component twice.
    Remove define from wp-config and use it from within bp-custom. If it doesn’t work, remove it from bp-custom and add it to wp-config.

    For code consistancy, i recommand that you use single quotes, accordingly to the example given on Codex: define('BP_DEFAULT_COMPONENT', 'profile' ); The define you use in wp-config use double quotes.

    Btw. i visited your site and profiles are all opening on the defined “profile” screen. Seems you solved the issue ?

Viewing 25 replies - 376 through 400 (of 3,787 total)
Skip to toolbar