Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 10,101 through 10,125 (of 69,150 total)
  • Author
    Search Results
  • #254842
    binary10
    Participant

    @danbp
    I know its a prototype plugin and i installed it on a test website. Thanks for the link but it doesn’t work.
    I added the code to bp-custom.php and then edited buddypress/activity/members/single/messages/compose.php. I replaced <textarea name="content" id="message_content" rows="15" cols="40"> with <?php do_action( 'whats_new_textarea' ); ?>. It actually shows the visual editor but when the send message button is clicked it gives error Your message was not sent. Please enter some content. I am not much familiar with coding so maybe I am doing a mistake.
    thanks

    #254837
    danbp
    Participant

    You should read before installing a prototype plugin !

    This is a work in progress to illustrate what i have in mind for a next BuddyPress Template Pack. DO NOT USE on a live website! I repeat: DO NOT USE on a live website!

    If you want a visual editor, here’s a bit old solution. Give it a try, maybe it’s still working !

    #254836
    danbp
    Participant

    Updates are added via an ajax handled text-area field type. But I never heard about a nested text-area. The only way to add something is to edit the update.

    The form is in bp-legacy/buddypress/activities/post-form.php
    A list of all BuddyPress “update” or “updates” related functions can be found here.

    #254832
    sharmavishal
    Participant

    you want to add a new buddypress profile field?

    #254827
    Masoud
    Participant

    re installed my theme + buddypress plugin solved my problem.
    i dont know wat caused this problem. because everything is just like before, and now it’s working.
    thanks for your help @danbp and @sharmavishal

    #254813
    shanebp
    Moderator

    Ask GF for the hook re a form submission.
    Then use that hook to call a function that uses bp_activity_add()

    #254810
    Masoud
    Participant

    no no. i checked everything twice, sure abt that.
    i really dont know wat has happened to register page.
    i will backup my data, and detele the theme + buddypress plugin
    then i will reinstall them again.
    maybe that’ll work.

    #254806
    danbp
    Participant

    Hi @littlemisslanna,

    Yep, but you have better to ask how to do that on Gravity Form support forum. We can help you here for BuddyPress usage, not for third party implementation. Sorry ! 😉

    #254801
    sharmavishal
    Participant
    danbp
    Participant

    The function tells gettext() to change a string to another. It use a switch called $original_string. If not explicit enough, this means the original phrase or words you want to modify. You see it near ‘case’. And right of return, you can put your words.
    The present example use only one case. But you can add more. (See php switch)

    function abcd_gettext( $translated, $original_text, $domain ) {
    
        if ( 'buddypress' !== $domain )  
               return $translated;
    
        switch ( $original_text ) {
            case 'STING YOU WANT TO MODIFY':
                return 'MODIFIED STRING';
    
            default:
                return $translated;
        }
    }
    add_filter( 'gettext', 'abcd_gettext', 20, 3 );

    IMPORTANT

    Why to use po/mo if this kind of function can be used ?

    – because po/mo is much faster as only loaded once.
    – using this function force gettext to recalculate all strings one by one at each string load. Imagine what will happen on your server if you translate all 1970(BP2.6) BP’s string like this!
    – this function can be handy only in case you need to change a few words. I wouldn’t use it for more as 10 strings.
    – it’s also handy if you already use a mo file, but need temporary a different word/string.

    So you’re warned. Best practice to change strings is to use po/mo files. See codex for details.

    #254769
    sharmavishal
    Participant
    #254765

    In reply to: global avatar

    DamnDramaQueen
    Participant

    Hi Buddypress,

    That is cool, I been wanted to change the sizes ,etc for the avatar for long time as well. Thanks much on this help!

    However, my initial help I want is just to ADD an image above each member avatar, without touch any codes (see below link).

    I only able to find the php to add this cherry image shown on the members page ONLY? Which I wanted globally on every members!

    Here is the link I used for the members page, but also want to locate that (CLASS=AVATAR )for other files and directory that I can also paste the same link global for all avatar.

    <div class=”search-item”>

    <div class=”avatar”>

    Please see before and after example for the cherry above. I needed to find that MAIN/GLOBAL area as well.

    Please advise help, thanks
    cherry on each avatar

    #254754
    danbp
    Participant

    @dono12,

    when the cover image option is enabled, BP use cover-image-header.php not member-header.

    To get your idea to work, you need a function to calculate who is online and to add a class to the exiting div. Depending the result, we can then add an online or an offline class.
    And of course, some css rules.

    The function to add this class to the div with an action hook.
    Add it to bp-custom.php

    function check_connected(){
    
       $last_activity = bp_get_user_last_activity( bp_displayed_user_id() );
    
       $curr_time = time(); 
    
       $diff = $curr_time - strtotime( $last_activity );
    
       $time = 5 * 60;  // = 3mn - time must be in seconds
    
    if( $diff < $time ) { 
       echo 'online';
         } else {
       echo 'offline';
       }
    }
    add_action( 'online_class', 'check_connected' );

    Now you just have to add the hook to the template. Open from within child-theme, /buddypress/members/single/cover-image-header.php
    Go to line 25, and change
    <div id="item-header-avatar">
    to
    <div id="item-header-avatar" class="<?php do_action( 'online_class' ); ?>">

    Open /child-theme/style.css and add:

    div.online img {
        border: solid 2px #008000!important;
        background: rgba( 255, 255, 255, 0.8 )!important;
    }
    
    div.offline img {
        border: solid 2px #be3631!important;
        background: rgba( 255, 255, 255, 0.8 )!important;
    }

    And voila, you’re done !

    Note: you can use the same hook in member-header.php, so you can enable/disable cover-image without loosing the on/offline layout on profile header avatar.

    jameshh93
    Participant

    Wait it seems this was caused by me not setting friend connections and private message in buddypress settings..

    #254746
    navyspitfire
    Participant

    Hmm so I did that and it didn’t work. I copied the .pot file into sublime text and saved it as buddypress-en_US.po, then saved it as buddypress-en_US.mo then moved both those files into the specified folder on my server.

    #254744
    Paul Wong-Gibbs
    Keymaster

    That screen isn’t provided by BuddyPress. It’s something provided by another plugin, or perhaps within the theme. Can you identify which one?

    sharmavishal
    Participant

    this should fix it for u

    THEME UPDATE – VERSION 3.0.11 (June 7th 2016)

    Updates and fixes.

    Updated to Slider Revolution v5.2.5.3.
    Fixed BuddyPress multi-field checkboxes being output twice.
    Fixed some PHP notices.

    #254737

    In reply to: global avatar

    danbp
    Participant

    Several topics are related to your question on the forum.

    https://buddypress.org/support/search/bp_core_fetch_avatar/

    #254734

    In reply to: global avatar

    sharmavishal
    Participant
    #254729
    sharmavishal
    Participant

    @sjoerdlagraauw as r-a-y mentions test this version of bp

    BuddyPress 2.6.0 Release Candidate 1 now available for testing

    regarding @mention as danbp suggested its not a bp issue. i checked this myself. its working in default 2016 theme of wp. but NOT working for other paid themes i have.

    mostly paid themes or custom themes use their own jss/css stuff in their own custom manner which creates an issue.

    if you got jss/css issues best of be asked at the custom themes support

    #254728

    In reply to: Two Types of Activity

    sharmavishal
    Participant
    #254724
    Sjoerdlagraauw
    Participant

    Just to make sure I understand. Is it a theme problem of will it be solved in the next update of Buddypress @sharmavishal, @r-a-y and @danbp? Cause there are some other issues with ajax in this theme as well.

    I am in no hurrie so if it will be solved next week that would save me a lot of searching and debugging 😉

    Thanks for all the help!

    danbp
    Participant

    it’s explained above !
    Another solution here:

    Hide All Members Tag

    timsilva_
    Participant

    I am curious how to achieve this as well with the current version of BuddyPress (2.5.3).

    I can see that the “Create an Account” title in on line 3070 of bp-core-template.php

    How could I change this to “Register” through a hook/filter in functions.php or bp-custom.php?

    #254712

    In reply to: CV upload in Profile

    danbp
    Participant

    That plugin create field types. You asked for how to create a CV with BuddyPress. Basically, such a feature use a text-area field type. 🙂

Viewing 25 results - 10,101 through 10,125 (of 69,150 total)
Skip to toolbar