Search Results for 'buddypress'
-
AuthorSearch Results
-
September 5, 2014 at 10:56 pm #189714
danbp
Participanthi @ks2-problema,
maybe time also to contribute ! 😉 Do not hesitate.
Or browse through the forum. For example this topic, 3 days ago.
September 5, 2014 at 10:49 pm #189713In reply to: [Resolved] Add tinymce to Activity Post Form
danbp
Participanthere we go !
You already copiedbuddypress/bp-templates/bp-legacy/buddypress/activity/post-form.phpto the right place in your child-theme:
/child-theme/buddypress/activity/post-form.phpExcellent! Here’s more.
We’re going to use the wp_editor function to accomplish the task.
Note: wp_editor can replace any textarea. This means that if you use these function, that you have to remove the original textarea first.
The above function use the new drag_drop_upload support introduced in WP 3.9
First we go to remove the whats new textarea from this file, around line 29, and replace it with a custom action hook:
whats_new_textareaBefore
<div id="whats-new-textarea"> <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea> </div>After
<div id="whats-new-textarea"> ?php do_action( 'whats_new_textarea' ); ?> </div>Save.
Now go to /plugins/bp-custom.php (if the file doesn’t exist, you have to create it) and paste in this snippet.
function bpfr_whats_new_tiny_editor() { // deactivation of the visual tab, so user can't play with template styles add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 ); // building the what's new textarea if ( isset( $_GET['r'] ) ) : $content = esc_textarea( $_GET['r'] ); endif; // adding tinymce tools $editor_id = 'whats-new'; $settings = array( 'textarea_name' => 'whats-new', 'teeny' => true, 'media_buttons' => true, 'drag_drop_upload' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close')); // get the editor wp_editor( $content, $editor_id, $settings ); } add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );Save and enjoy !
September 5, 2014 at 8:59 pm #189703ChiefAlchemist
Participant=> re: “Note that you need to add the correct id(s) for exclude_fields.”
Thanks shanebp. But is this the only way? I mean, I can’t do mucking with the code every time the client wants something new? Can I?
=> re: …/buddypress-xprofile-custom-fields-type/
“Add new visibility setting “Nobody”. Hide the field to all members.”
So this means, I presume that custom visibility is possible. Yes?
That said, I want to use standard fields, but I want to create the list via code, and not have to do it manually. Not possible? Mind you, it could be cause I’m new to BP but I’m trying to where / how the profile definitions are stored. I presume it’s an array, or close. So I want to do that but with code.
Thanks again
September 5, 2014 at 8:21 pm #189701In reply to: Theme Compatibility – Customizing
shanebp
ModeratorFor template files, see this codex page:
September 5, 2014 at 8:09 pm #189699shanebp
ModeratorI wouldn’t rely on messing with visibility settings.
To make a profile field only editable by admins, do this in bp-custom.php or a plugin:// only admins can edit the Skills field function chief_hide_profile_fields( $retval ) { if( is_super_admin () ) return $retval; if( bp_is_profile_edit() || bp_is_register_page() ) $retval['exclude_fields'] = '3'; //profile field ID's separated by comma return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'chief_hide_profile_fields' );Note that you need to add the correct id(s) for exclude_fields.
And that ‘ || bp_is_register_page() ‘ keeps the field(s) off the register page – which you may not need to do.Re how to create profile fields in code, there a couple of ways to do it depending on the kind of field and how it will be used.
Take a look at these plugins for more info:
https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/
https://wordpress.org/plugins/buddypress-xprofile-image-field/September 5, 2014 at 1:03 pm #189681In reply to: Xprofile field description under field label
danbp
Participantif you’re comfortable with HTML, you can try to modify the template by moving the field description to the place you want it to see.
The file is register.php in wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members
Make a copy of that file into your child-theme
/your theme/buddypress/members/register.phpSeptember 5, 2014 at 9:25 am #189675ernstl
ParticipantHi @danbp,
thats clear to me, but we only need to import all exsisting data into the new bbpress/buddypress environment and are happy when its done ( db has 6gb… ). Will keep the importer safe, and got it in mind. But thx for mention it.
Rgds,
ernstlSeptember 5, 2014 at 9:07 am #189674danbp
Participanthi @ernstl,
it is a very bad idea to hack a core file. The modification you added will be lost at the next bbpress update.
September 5, 2014 at 9:03 am #189673In reply to: Buddypress as business directory
danbp
Participanthi @paatukka,
you have to explain what kind of information your business directory should have !
Don’t think about plugins or theme before you now exactly what the project is intended to show.
I guess it would be wise trying to use – so far as possible – the existing before thinking of adding extra stuff.Once installed, and depending the activated components you use, BuddyPress has already a member, a group, a forum and a blog directory.
September 4, 2014 at 9:38 pm #189655In reply to: [Resolved] When to use BuddyPress
durkk
ParticipantIn my limited experience Buddypress is fine.
You might also look at the freemium plugin called Symposium or something like User Pro plugin on codecanyon: http://codecanyon.net/item/userpro-user-profiles-with-social-login/5958681 Which is a bit lighter and is designed a little less spartan/basic visually speaking.
September 4, 2014 at 9:18 pm #189654In reply to: [Resolved] Installing BP from git/svn
jreeve
ParticipantThanks @danbp. I got it to work by doing this:
cd /path/to/wp-content/plugins svn co https://buddypress.svn.wordpress.org/trunk/src buddypressAnd then installed the
bp-defaulttheme manually with this:mkdir buddypress/bp-themes cd !$ git clone https://github.com/buddypress/BP-Default.gitSeptember 4, 2014 at 9:09 pm #189653In reply to: register.php
quangn
ParticipantI fixed it this way. I read this once somewhere and this is the ONLY solution that worked for me. Use this following step:
Copy the folder Members with it files (but i think you should delete all others except-register) located in:
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/and paste it in:
wp-content/themes/(the WP theme you use now)now you can modify the file reigster ^^
September 4, 2014 at 8:43 pm #189652In reply to: [Resolved] Installing BP from git/svn
danbp
ParticipantHi @jreeve,
Perhaps try directly from buddypress svn, https://buddypress.trac.wordpress.org/browser/trunk
This let you also provide patches, which is not possible on github.An install guide is here:
https://make.wordpress.org/core/handbook/installing-wordpress-locally/installing-via-svn/September 4, 2014 at 8:29 pm #189646In reply to: Admin Customization Based on Roles
danbp
ParticipantOn a single install, users have never access to the dashboard. This only happens if they have a blog on a multi site. And the admin they see is the admin of their blog, not the main blog where BP is installed.
But first, read here please, provide the information and your theme name. be warned that if you use a premium, that you can’t expect much help on this forum, as we have no access to such themes.
FYI: the admin toolbar or any of the BP menus are working like any other menus and toolbar labels on wordpress. Is explained on the WP codex.
For more advanced details, see here.For specific BP customization, read the BP Codex.
September 4, 2014 at 8:17 pm #189645In reply to: Avatar Cropping Not Working
danbp
ParticipantIf you think it is not CSS who breaks the js query working in the background, i guess you think false.
For example if you changed some class name, the script can’t correctly handle the cropping.
Here a very old topic, related to a css problem with avatar. Nothing to do with yours today, but to make you understand that playing with CSS is not a innocent game.
You could also read this related to avatar customization on the codex.
Have you deactivate the actual theme and tried with 2014 ?
Now, at least, as you use a premium theme, you have to ask on the theme support if you encounter issues. We cannot help much for such themes, as we have no access to them.
September 4, 2014 at 7:03 pm #189641In reply to: [Resolved] When to use BuddyPress
Henry Wright
ModeratorHi @jsonb123
…there is a need to have a Members Directory on the site…
BuddyPress does provide a members directory.
They may or may not be able to communicate to other members
BuddyPress has both public and private messaging which could take care of this.
I think you’re doing the right thing by installing and testing it out to see if it’s for you. If not, then no harm done really.
September 4, 2014 at 6:44 pm #189635In reply to: 3 Step registration Process in buddypress
Henry Wright
ModeratorThere is some related discussion in this Trac ticket but nothing has been implemented yet:
https://buddypress.trac.wordpress.org/ticket/4132September 4, 2014 at 5:19 pm #189633In reply to: BuddyPress Group Friend Invite Email Link Loop Error
danbp
ParticipantHum… 😉
Just answered about Premium theme debuging on this topic.
Please read and follow the same instruction.If you can get the error, ask on the theme support. Here we cannot help you, as we have no access to premium themes.
September 4, 2014 at 5:01 pm #189629In reply to: BuddyPress Group Friend Invite Email Link Loop Error
Adson5th
ParticipantI am running the latest version of wordpress
Wordpress as a directory and is root.
I am using Multinews Theme which has Buddypress integrated into it’s theme
Nginx Server
Running latest version of Buddypress
September 4, 2014 at 5:00 pm #189628In reply to: Simple Way to Enable Image posting in Forums
danbp
ParticipantYour reply start good, but ends bad 😉
Helas for you, BuddyPress is not Facebook, it will get used 😉
The snippet is written in php, and has nothing to do with CSS.You can add it into your child theme’s functions.ph or into bp-custom.php
Deactivate the plugin when you test the snippet and remember that it could only be used by user with admin role. Anyway, if you use the plugin, the snippet won’t be usefull.
I tested the bbPress Enable TinyMCE Visual Tab plugin and it works correctly for group forums. In this case, only user with author role can see and use it.
I don’t know what happens to the insert to post button in your dashboard. 🙄 This is generally due to a js conflict.
What theme do you use ?
When the Visual Tab plugin plugin is deactivated, can you use this button when inserting a picture into a post ?
Have you plugins ? Give the names please.September 4, 2014 at 4:56 pm #189627In reply to: Allow any users to message each other?
godavid33
ParticipantYes, I am sure. I am going to continue this thread over here as I do not believe not being friends is the problem. It seems to be a problem with specific recipients.
https://buddypress.org/support/topic/weird-non-error-message-after-sending-message/
September 4, 2014 at 4:07 pm #189619In reply to: BuddyPress Group Friend Invite Email Link Loop Error
danbp
Participanthttps://buddypress.org/support/topic/when-asking-for-support-2/
with theme name please ! Thank you !September 4, 2014 at 3:49 pm #189613In reply to: Extended Profiles / Can't edit the fields
danbp
ParticipantIf you have suggestion or enhancement request, feel free to leave them on
https://buddypress.trac.wordpress.org/newticket
You might use the same login as on this forum.September 4, 2014 at 3:45 pm #189610In reply to: Simple Way to Enable Image posting in Forums
shanebp
Moderator>most people using forums expect to be able to insert images into their posts nowadays.
Agreed.
Because BuddyPress and bbPress are two separate plugins, don’t expect BuddyPress to address this issue.
I’ve never used it, but try the free version of
https://wordpress.org/plugins/gd-bbpress-attachments/September 4, 2014 at 3:07 pm #189608richtelford
ParticipantI’ve been working on my first BuddyPress site last couple of weeks so stumbling around forum posts quite a lot.
You’ve probably already found a fix @thecorkboard but I used the “bp_get_activity_css_class” to strip out the “mini” class when not required.
-
AuthorSearch Results