Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 2,758 total)
  • Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @nnyorker,

    Try this plugin: BuddyPress profile tabs

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi,

    You said you made some custom work. Review your work and search for WP_Widget occurence, there is probably a little error somewhere and the reason of the php notice. Culprit seems to come from your custom work. You have to debug ! ๐Ÿ˜‰

    Difficult to say exactly what’s going on and where. It could be a call to widget from within your theme, or a custom function you added or a plugin you use. That call is using an old method, or some old php coding. It can also be a JS conflict, which could explain why you don’t receive group activities or even a missing BP class or ID name.

    Read here, perhaps you can get an idea.

    And don’t panic, a php notice is not a hot security alert, just a tech message. You can live with it or try to repair (which would be better).

    Hello @nanettedp,

    don’t be sorry, we all started a day from 0.
    You exposed (very clearly) your problem, that’s great ! The next step is to learn how to do that.

    If you ask for aid on a support forum like this one, this implies in principle you already did something (who may not work as expected for ex.) In this case, you should show us what you’ve done, so somebody can help you.

    As yo ask for a doc like a how-to, you can search on this forum or google a bit to find one. They’re plenty topics here about this, with more or less explanation and comments.

    But you say you’re a newbie. It’s not like i don’t want to help you, but i can’t teach you this. You need some tech level, even a low one and i ignore which one you already have. It’s also time consuming and as mod i have other things to do here as teaching you. Hope you understand. ๐Ÿ˜‰

    As you didn’t really understand the function i indicate you, i assume you’re not familiar with php and how to use it. So you’re like i was a few years back: a newbie.

    The only thing to do is to learn. You have to experiment, to read documentation, topics and what ever related to code, WP and BP… That’s how we all acquire experience !

    Or i’m completely wrong and you meaned by i need a bit more help give me the solution. In other words, make the work for me so i can add it to my site.
    If so, you can hire a developper from here.

    Your first topic started with Is there a way that I can create a custom URL.

    Yes there is a way. It’s you! Now it’s your turn to play: create and just do it!

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @pulseorth,

    do you see php messages when you enable wp_debug in wp-config while using the custom a la facebook install/theme ?

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi @eutopia007,

    you say nothing about the theme, which could be the culprit. Activate one of the default WordPress Twenty theme and see if the error remain.

    In any case, a page named #gf_2 is not part of BuddyPress or WordPress. Check all your pages and their permalinks. If you find one using that, delete it. You should also clear your trash definetly as it could be you have that page in it.

    WordPress use page which should be unique and have unique names.

    For more information, read here.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    There is nothing to debug, it is how it works. BP is usually activated on the main site, and stays on the mainsite, whatever you build around with multisite or multinetwork or both.

    Read some explanation about multisite, multinetwork and how BP is displayed and working on such installs:

    BP menu on wp multisite

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    So the mainsite BP menu is not complete on subsite!

    That’s right, because on a subsite, you’re on a blog.
    BP is only active on the mainsite, as it’s where it is activated. On mainsite you see whole members fonctionnalities (friends, groups, messages and son on). On a blog, aka subsite, you’re like a user of a WP site whithout BP.

    That’s also the reason why enabling multiblog is deactivated by default and not usefull in most of case. This warning is given on the codex page i indicated you previously.

    Deactivate multiblog and revert to initial default configuration.

    On the toolbar, in top left corner, you have the usermenu with all BP items. This menu is accessible to logedin user, wherever he is. Mainsite or subsite. And that’s default behave !

    For a bit more understanding, in case you want insist to remove that menu to get it on the main nav (beside About, Home etc), please take a look to this topic.

    Cheers ! ๐Ÿ˜‰

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Disques is intended for WordPress (read plugin description), not BuddyPress, which use his own comment system through essentialy the site activities.

    You’re incorrect. See Trac to have an idea of what improvements are part of.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    You should never hack core files, as you already said ,you will have to redo your customization after each update !

    1) https://codex.buddypress.org/themes/

    2) BP will be updated, and your custom work will remain intact, as long as you use a child-theme and bp-custom.php Child theme and bp-custom have priority when BP is loaded. Anything which is not in them will then be taken directly from BP or theme. Read about template hierarchy on codex.

    All this is detailled on codex. If questions, seacch the forum, they’re many topics around this.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Most of bp files are in php, so i can’t answer for YOUR php file.

    I you modify the register page, where xprofile fields are showing at first, the template file i’m talking about is in bp-templates/bp-legacy/buddypress/members/register.php.

    If you don’t know about template overload, read here first.

    Or if you use a custom function to fire your work via an action hook, perhaps you could try to use bp-custom.php

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    I see the members list (http://www.hostinggeeks.net/members/) !
    I see the site activity (http://www.hostinggeeks.net/activity/) !

    You have to debug your site.

    Use a Twenty theme while debuging and activate wp-debug in wp-config.php

    The k-elements plugin is throwing many warnings. Deactivate it and ask evtl. for help on it’s support forum.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Still same answer as for your previous topic in 2015.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Do you try to create a button via a profile field ? Huh… Preferably do that via a template.

    If you want to enter some html, you could try to remove the one or other filter.

    This snipet (untested) handles the description field. Modify the filter to your nedd. Check bp-xprofile-filters.php to get the name.
    Not that i added some conditionnals for field and user.

    Try:

    function my_field_remove_html_filter() {
    
    if ( bp_is_active( 'xprofile' ) )
    
    $bp_this_field_name = bp_get_the_profile_field_name();
       
       if( 'is_super_admin' ) {
    	// field name (case sensitive)
    	if( $bp_this_field_name == 'FIELD_NAME' ) {	  
    	remove_filter( 'bp_get_the_profile_field_description', 'wp_filter_kses' );
          }
       }
    }
    add_action( 'bp_init', 'my_field_remove_html_filter' );

    Add it to bp-custom.php.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    See https://wordpress.org/plugins/bp-auto-group-join/

    Or do you mean create a group for each new user ? So if you have 100 registration, you would have 100 groups ? Huh…

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Do you mean a sub-group ? There is a plugin for that: https://wordpress.org/support/topic/warnings-with-bp25 (not updated, but is still working) – see the support if you have an issue.

    Or read on codex about Group API and how to add them a new page…

    Group Extension API

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    > could this cause the problem?

    Most probably. The page for group should not be associated with anything. Give just a title. If you need a specific template, see how to overload templates on codex.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    In my previous answer, i corrected the snippet.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Sorry, missed a semi-colon… Snippet is corrected.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Oh, copy/pasting is out of scope today ? ๐Ÿ˜‰ Your code, corrected.

    <?php $email = bp_displayed_user_email(); ?>
    <?php if ( ! empty( $fonction ) ) { ?>
    <span class=โ€thrive-member-roleโ€>
    <?php echo '<a href="mailto:'. bp_displayed_user_email(); .'">'. bp_displayed_user_email(); .'</a>'; ?>
    </span>
    <?php } ?>
    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Hi,

    no idea on how to conditionnaly combine 2 xprofile field.

    Here how you can show a msg if a field was not filed, even if it is not exactly what you asked for.

    if ( bp_is_active( 'xprofile' ) || bp_is_profile_component() || bp_is_user()  )
     	
    	if ( !$data = bp_get_profile_field_data( 'field=Service' ) ) : // use field name
    		echo '<br>Your profile is not complete. Please fill in field: Service<br>'; 				
    	endif;
    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Have you set up the permalinks to another option than default ?

    Navigation Links Return 404 Errors

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    If your code was working, you change only the echo who fires the mailto link.

    Profile photo of danbp
    danbp
    Moderator

    @danbp

    Afaik you have to code something yourself. BP use only display_name for activities and @ mentions and bbPress, if active, also.

    See all existing _display_name related fn here.

    How WP get display_name is related in this topic.

Viewing 25 replies - 1 through 25 (of 2,758 total)
Skip to toolbar