Search Results for 'buddypress'
-
AuthorSearch Results
-
June 18, 2016 at 8:09 pm #254813
In reply to: Adding Gravity Forms Entry to Site Activity
shanebp
ModeratorAsk GF for the hook re a form submission.
Then use that hook to call a function that uses bp_activity_add()June 18, 2016 at 7:54 pm #254810In reply to: [Resolved] signup (register) page not showing
Masoud
Participantno 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.June 18, 2016 at 7:02 pm #254806In reply to: Adding Gravity Forms Entry to Site Activity
danbp
ParticipantHi @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 ! 😉
June 18, 2016 at 5:46 pm #254801In reply to: non admin capability for sitewide message
sharmavishal
ParticipantJune 18, 2016 at 8:13 am #254772danbp
ParticipantThe 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.
June 18, 2016 at 7:51 am #254769In reply to: Login redirects not working
sharmavishal
ParticipantJune 17, 2016 at 11:27 pm #254765In reply to: global avatar
DamnDramaQueen
ParticipantHi 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
June 17, 2016 at 7:00 pm #254754danbp
Participantwhen 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.phpfunction 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.
June 17, 2016 at 5:03 pm #254747jameshh93
ParticipantWait it seems this was caused by me not setting friend connections and private message in buddypress settings..
June 17, 2016 at 5:03 pm #254746In reply to: [Resolved] Editing code in bp-members-function file
navyspitfire
ParticipantHmm 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 asbuddypress-en_US.mothen moved both those files into the specified folder on my server.June 17, 2016 at 4:17 pm #254744In reply to: Default Profile Visibility
Paul Wong-Gibbs
KeymasterThat screen isn’t provided by BuddyPress. It’s something provided by another plugin, or perhaps within the theme. Can you identify which one?
June 17, 2016 at 2:25 pm #254740sharmavishal
Participantthis 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.June 17, 2016 at 2:20 pm #254737In reply to: global avatar
danbp
ParticipantSeveral topics are related to your question on the forum.
June 17, 2016 at 12:27 pm #254734In reply to: global avatar
sharmavishal
ParticipantJune 17, 2016 at 8:29 am #254729In reply to: Private messages isn’t working
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
June 17, 2016 at 8:25 am #254728In reply to: Two Types of Activity
sharmavishal
ParticipantJune 17, 2016 at 6:22 am #254724In reply to: Private messages isn’t working
Sjoerdlagraauw
ParticipantJust 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!
June 16, 2016 at 10:09 pm #254716danbp
Participantit’s explained above !
Another solution here:June 16, 2016 at 9:45 pm #254715timsilva_
ParticipantI 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?
June 16, 2016 at 8:28 pm #254712In reply to: CV upload in Profile
danbp
ParticipantThat plugin create field types. You asked for how to create a CV with BuddyPress. Basically, such a feature use a text-area field type. 🙂
June 16, 2016 at 8:23 pm #254710navyspitfire
ParticipantEssentially my issue is I am trying to see a users profile/registration before I activate them because their registration process includes info/files that need to be vetted before activation. Now it appears there’s no way to do that under vanilla buddypress/manage signups menu, but per this thread I can see all that info under the BP registration plugin.
The issue becomes I need to activate/approve the user twice; once under manage signups, once under BP registration.
June 16, 2016 at 8:06 pm #254707In reply to: CV upload in Profile
aamirpsy
ParticipantThanks, i found helpful plugin for solution.
Plugin Name:
BuddyPress Xprofile Custom Fields Type
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/June 16, 2016 at 8:02 pm #254706In reply to: colors on emails
r-a-y
KeymasterCheck out this codex page:
https://codex.buddypress.org/emails/#customize-headerJune 16, 2016 at 7:41 pm #254703danbp
ParticipantBy default these buttons are showing on the profile header.
The action location is defined in
/bp-templates/bp-legacy/buddypress/members/single/member-header.php:66
/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php:45When Profile Cover option is enabled (see bp settings), BP use the cove-image-header file.
If the option is disabled, he use member-header.In both case, these buttons need the displayed_user_id and the loggedin_user_id to work. This means you need to be at least in the member loop.
You want these buttons to appear elsewhere. OK. But where exactly ?
Don’t hesitate to provide a screenshot sketching the new place.June 16, 2016 at 7:14 pm #254701In reply to: CV upload in Profile
danbp
ParticipantAdd a a new field group to profiles, call it CV, add some fields and options and you’re done.
As you certainly want to get this part a bit apart of the other profile fields, you can also use this plugin who brings a nice tabbed profile page.
-
AuthorSearch Results