Search Results for 'buddypress'
-
AuthorSearch Results
-
June 19, 2016 at 3:36 pm #254842
In reply to: [Resolved] visual editor for writing messages?
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.
thanksJune 19, 2016 at 9:03 am #254837In reply to: [Resolved] visual editor for writing messages?
danbp
ParticipantYou 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 !
June 19, 2016 at 8:44 am #254836In reply to: How I can Modify buddypress profile update?
danbp
ParticipantUpdates 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.June 19, 2016 at 8:01 am #254832In reply to: How I can Modify buddypress profile update?
sharmavishal
Participantyou want to add a new buddypress profile field?
June 19, 2016 at 6:31 am #254827In reply to: [Resolved] signup (register) page not showing
Masoud
Participantre 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 @sharmavishalJune 18, 2016 at 8:09 pm #254813In 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. 🙂
-
AuthorSearch Results