Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 526 through 550 (of 3,787 total)
  • In reply to: Who’s Online Widget

    @danbp

    Participant

    Yes it’s different and ?
    And this is how to use what i already suggested

    function users_last_activity() {
    $user_id = bp_displayed_user_id();
    //$activity = bp_get_user_last_activity( $user_id ); // raw date/time
    $activity = bp_core_get_last_activity( bp_get_user_last_activity( $user_id ), __('active %s', 'buddypress') ); // ago format like on members directory
    
    	if( bp_is_active( 'activity' ) ) {
    	 echo $activity;
    	}
    }
    
    // testing the result on profile header
    add_action( 'bp_profile_header_meta', 'users_last_activity' );

    @danbp

    Participant

    Hi,

    all details here:

    Participate and Contribute

    The fastest way to get in touch with the devs is to use the BudddyPress chanel on Slack.

    In reply to: Who’s Online Widget

    @danbp

    Participant

    It is wrong as it search for an activity and not site access…

    Try this

    @danbp

    Participant

    Hi @renaisens,

    anything is eaten by a Pokemon !
    /\︿╱\
    \0_ 0 /╱\╱
    \▁︹_/

    Seriously all user related datas are deleted too.

    @danbp

    Participant

    Open the file i indicated and read through. BP code is documented and WP and BP codex can be searched. I can’t do that at your place, sorry.

    In reply to: Who’s Online Widget

    @danbp

    Participant

    Clients requiring many things ! Some can be done, some not. It’s to you to explain them that it’s not possible. Or only with a very huge additionnal budget. This argument is mostly the best to opposite to an obtuse “i want this feature”. Diplomacy, diplomacy… 👿

    1) You count the number of avatars on the widget ! Or something like this. 😉
    2) who’s online refreshes after 5 mn. See https://buddypress.trac.wordpress.org/ticket/3590
    3) try with bp_get_user_last_activity()

    Also wp-content\plugins\buddypress\bp-members\classes\class-bp-core-whos-online-widget.php

    @danbp

    Participant

    I have nothing to add to what i wrote previously.
    Study wp_kses function and see bp_activity_filters.php and try to deactivate the one or other filter.
    You may also read through bp-xprofiles-filters.php to see how wp_editor is handled for xprofile fields using rich edit.

    All this at your own risk, you have to know what you do by removing those filters, as it will open a big security hole in your site.

    In reply to: Who’s Online Widget

    @danbp

    Participant

    I have no real idea for this. You have to code that as nothing ready to use exist. Similar question here.
    Note also that BP pages are dynamic, so what ever you can built won’t, imo never, be exact.

    Ie. user A is on a profile activity and another is on members directory. What would you get ? At best, only the /members/ page… that is a bit vague, no ? And who cares, outside evtl. you ?

    Note also that the nav history is browser territory, and that each client has different settings, even deactivated history, so you can’t really trust user’s history…

    My recommandation would be: don’t loose your time trying to do this. BP let members know about there activities, focus on this and encourage it, instead of tracking there navigation. 😉

    @danbp

    Participant

    Hi @dphelun,

    – 1) no idea ! It depends of what you know about WP and BP, coding and templating
    – 2) see 1…
    – 3) in theorie yes. In real life… check the forum… and point 1.

    Don’t buy a theme before you tested your project with all plugins and fonctionalities correctly working on a WP+BP default install. Use one of WP’s default theme, ie. Twenty Sixteen or Fifteen. Or even all coming with WP

    This tests should be done on a test site (locally or online, but not on a production site)
    Default install, because it’s the only waranty for you and the project to work properly in a respecfull environment of WP standarts. Once ok you can jump to a premium theme if you estimate it is worth. That said many free themes are just ideal too.
    I would just warn you to avoid frameworks and page builders- specially because BP doesn’t use WP pages like WP does. Focus on the theme itself, and not on plethoric theme functionnalities. Theme is for layout. Plugin is for functionnality.

    About Themes
    you will find a lot of themes on the net. Most with nice pictures and impressive list of functionnalities and prices. Problem is that this marketing arguments rarely fit with a project. And if you’re unable to customize it, you go towards weird issues and will be lost in no time.

    About plugins
    Like for themes and of course your technical level.

    From what you tell, i would consider WP Job Manager and his (premium) add-on for BuddyPress.
    Messaging is included in BuddyPress, even if it is not exactly meant as instant messaging.

    But test the message component first as is before going further. And keep in mind that less is more.

    In reply to: Who’s Online Widget

    @danbp

    Participant

    ???, you haven’t answered to my question! What do you mean by browsing page ?

    Bp’s widget let you access to the online user profile by clicking on the user avatar showed in the widget. What do you expect more or different ?

    @danbp

    Participant

    – I know nothing about Loco translate as i never used it. And i can’t read chinese, so i can’t help you with this specific translation.

    – I never seen a error 500 after modifying a translation.

    – The only thing i’m sure (because of the error messages) is that it is Loco who doesn’t find a file or can’t access to it properly.

    – Re-check Loco Settings and try another path option… Or maybe use a custom path called MyTranslation and use the plugin only to translate. Once done, deactivate Loco and move the mo file manually to the right folder. By doing this you eliminate the eventual plugin issue and still have a mo file you can use (hopefully).

    – Ensure your BP’s po/mo files have correct file extension and use the correct path to file:

    /wp-content/languages/plugins/buddypress-zh_CN.mo & buddypress-zh_CN.po

    Personnaly, i use poEdit and only on my computer and never directly on a site.

    @danbp

    Participant

    Hi,

    you are on the BuddyPress support.
    bbpress questions should be asked on bbpress support.
    And as you use Loco Translate plugin, and apparently have an issue with it, you have to ask on the LT plugin support.

    To get more about chinese translation, help and much more, please read the Polyglots blog.

    @danbp

    Participant

    Hi,

    all you have to do is to use a custom translation for BuddyPress !
    This can be done with help of this plugin.

    Actually, WP uploads automatically all available translation for itself and any of his dependencies: themes and plugins(when exist) accordingly to the site language. Ie. brazilian portugue (pt_BR.mo)

    In your case, while using the plugin, WP will remain in portuguese and as you will use buddypress-en_US.mo or buddypress_en_GB.mo as custom translation, anything related to BP will be in english.

    Of course, this behave will always be used even AFTER an update of WP or BP and both updated to portuguese.

    The avantage of the plugin is that you haven’t to struggle with complicated domain settings and hacks, because he does it for you by using a different path for any custom translation (in your case, BP’s english version). The file is stored in /uploads/wpt-custom-mo-file/buddypress-what_EVER.mo

    You simply need to remember to download manually the english BP version.
    Translation files can be downloaded here.

    Hope to be clear. 😉

    In reply to: Who’s Online Widget

    @danbp

    Participant

    Hi,
    never heard of this kind of functionnality for BP. Do you mean a way to show WHERE the actual user is on the site ?
    Sounds like tracking or user history. But such information is mostly used by site admins only and is handled on back-end, not on front-end.
    Anyway, if you want more details about the few plugins doing that, here’s an overview. It may exist other resource about this. Google is your friend !

    @danbp

    Participant

    And how did you add tinymce ?

    If you use a plugin, indicate at least his name, or publish the code you use. Also, if you use the hack i indicated here some times ago, it works only partialy.
    Also, there is a reason why BP comes without an editor for notices.
    To understand, check the editor code when you’re on the post editor in admin. You will see a lot of classes and id’s related to tiny’s tools. And these css are not included in the notice JS and the textarea of BP’s notice form.

    @danbp

    Participant

    As it is working, you can’t expect a fix. 😉 (see #6112) If you think you have found a bug, open a ticket and give any details to recreate the issue: theme name, used plugins, php version.

    Have you tried to create an error ? When you’re sure that a notice should appear, and you don’t see it, check first the source of the page (right clik – page source). Sometimes you’ll find it in the code but something avoid it to appear on the screen.

    @danbp

    Participant

    You can’t add inline css. But if you add <p> or <span> tags in the textarea, you can style them via your child theme css. Something like textarea#whats-new p {color:#f8f8f8}

    And are you sure all members know how to write styles or html tags ?

    @danbp

    Participant

    Hi,

    you read the wrong article.
    You say that you installed bbPress 2.5.10 plugin today. So reading about forum migration is useless ! 😉

    Better try to follow what’s explained here.

    @danbp

    Participant

    – If you want to exclude user group forums from the directory, you alter the group loop.
    – If you want to modify the way forum (whatever the type) works internally, you alter the bbpress code.

    Forums are handled by bbPress, BuddyPress only show them up and add user management.

    When you set up group forums, you create a new forum in bbPress and give it a type of “category”. Which is not the case when you create a site wide forum and use “forum” as type. This is the only difference for bbPress.

    @danbp

    Participant

    Hi,

    the wall plugin wasn’t updated since over 2 years. But try first to ask on it’s support or to contact his author and ask for update.

    Accordingly to this topic, there was a button problem beacause of an outdated JS code. Poster gives some hints to resolve it. But to go through you need to code and know what you do.

    @danbp

    Participant

    Hi,

    have you correctly set up the child theme ?
    You can test the CSS by adding it directly to your theme csss file (just while testing). If it works there, it should work in the child. If not, you have a problem with the child.

    It could also be that you use a theme who give you the opportunity to add custom css via the theme settings page. If it is the case, you add the css there.

    You can also try by adding !important to each rule. Ie. font-size: 15px!important;

    @danbp

    Participant

    Hi @venutius,

    i guess you can use at least 2 options:

    Group Meta Queries: Usage Example

    or build a custom group directory and use something like this hack.

    Codex reference: groups-loop

    @danbp

    Participant

    Sorry, this latest question is really out of the scope of this support forum. I give you some indication for an API tool and a ready to use plugin for BP. If it is not what you want to use, what i understand, you have to search elsewhere or wait for somebody else’s answer. 🙂

    @danbp

    Participant

    If you’re an experimented developer,

    Create a Real-Time Video Chat Room with WebRTC & Twilio

    else
    https://www.cometchat.com/buddypress-chat

    Both are premium.

    @danbp

    Participant

    Do you mean html <style> tag or inline css style ?

    The form is texturized and use wp_kses filter. To allow some html tags (at your own risk), you can use such a function:(in bp-custom or child theme functions.php)

    function bpfr_notice_allowed_tags( $activity_allowedtags ) {
    
    		$activity_allowedtags['p']		= array();
    		$activity_allowedtags['strong']		= array();	
    		$activity_allowedtags['s']		= array();	
    
    	return $activity_allowedtags;	
    }
    add_filter( 'bp_activity_allowed_tags', 'bpfr_notice_allowed_tags' );
Viewing 25 replies - 526 through 550 (of 3,787 total)
Skip to toolbar