Search Results for 'wordpress'
-
AuthorSearch Results
-
August 30, 2016 at 6:47 pm #258196
In reply to: Another headache with bp-activity stream comments
danbp
ParticipantAs often with customization, it’s a matter of compromise… By default you see the nesting. Now you have a comment toggle.
This is wrong: There is no distinction IDs & classes between comments and replies.
The comment button code is
<a href="<?php bp_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment %s', 'buddypress' ), '<span>' . bp_activity_get_comment_count() . '</span>' ); ?></a>The reply link code is
<a href="#acomment-<?php bp_activity_comment_id(); ?>" class="acomment-reply bp-primary-action" id="acomment-reply-<?php bp_activity_id(); ?>-from-<?php bp_activity_comment_id(); ?>"><?php _e( 'Reply', 'buddypress' ); ?></a>At least there is a difference in the ID’s ! No ? 🙂
That said, you have only one activity and X comments for it. That replies are for the activity itself or replies to replies (to replies to replies of replies etc) inside that activity, makes no difference. All this is considered as a conversation attached to this activity.
Each comment/reply has is own ID. But toggling inside what i described before would be a bit complicated.
If you have long discussion inside your site activity, perhaps consider this plugin
https://wordpress.org/plugins/buddypress-wall/August 30, 2016 at 2:09 pm #258190In reply to: BP Groups in groups
danbp
ParticipantMaybe you could try this plugin ?
https://wordpress.org/plugins/bp-group-hierarchy/Read also the plugin support for additionnal informations before activating it.
August 30, 2016 at 2:07 pm #258189In reply to: tinymce in activity replies and comments
jbboro3
ParticipantHey, @danbp Thanks for the long and detailed response.
I’m fully aware of what you’re trying to convey the risk factors on this.. But as my requirements are different, I’ve completely disabled the media library and allowed access the users to each individual gallery only (negating the access of other’s files).. I’ve uploaded images hosted on sub-domains that completely separate from the main site.
All the activities that takes place on the site are on the front end.. The back end wp administrator dashboard are disabled for editing ( of course they are enabled for updating plugins & adding pages occasionally) as most of the pages are done in custom-template.. No admin or author level privileges are created on the site – just the subscriber as it’s mainly a networking site.. The idea that attaching the media button gives lots of flexibility to the users to resize the images or review them in the content area itself before they can post the activity.. Unless it’s a forums or community sites, for a networking sites, leaving alone with html codes or text editors may be (perhaps) discouraging impression for the social users.
I’m glad that you pointed out it’s more of a wordpress thing than buddypress.. I’ll have a look at the possibility of getting it work and let you know.
Thanks.
August 30, 2016 at 1:54 pm #258187In reply to: Ideas for web services site with users private pages
danbp
ParticipantAccording to your specifications:
1) We would like that user after purchase of one of those services could access to a private page where he can manage what he have purchased.
2) We would like to have freedom to put personalized content on user private pages.
3) We need in particular that a user could use a contact form tu send us extra information on services configuration.
Solution:
1) woocommerce + some page privacy settings
2) wordpress configuration
3) a contact form ?I would say you don’t need BuddyPress for that. Confirmed by your statement:
We don’t need to have interaction between user, like a forum or a social network.Read about BuddyPress.
August 30, 2016 at 1:27 pm #258185In reply to: tinymce in activity replies and comments
danbp
ParticipantHi, glad it works for you.
The visual editor use TinyMCE wich comes with his own ID and class. That works with WP, but not with BP who use his own id’s and JS on activity page.
Tweaking JS files is delicate and that’s why i said “deactivate the visual tab”. You should use the filter i indicated to remove it completely (so nobody would be tempted to click it).
But if you’re comfortable with JS, feel free to do it. But without any warranty (outside some headeache) about the final result as it will be very tricky to do.The media uploader is usually reserved to site admin, editors and authors when they post on the blog from backend. In our case, adding some styling possibilities to the what’s new content from frontend, is slightly different.
Imagine all your xxx.xxxx members accessing to the media library without any control each time they write something! That’s a big security risk, because subscribers (wich is the default BP users level) could access to a part of your backend and also to your server.
If you need full publication rights, create authors and let them publish real blog posts. But don’t use the what’s new form to replace this (complex) bloging functionnality.
The text tab has already a bold button (
b– the first one, on the left ).
And you can embed links to images using theimgbutton or embed different medias like video simply by copy/pasting a youtube link or other allowed services.Take also in mind that the default form comes without any style buttons. This trick add some.
Guess you have to work with this compromise. IMO better as nothing, no ? Avoid reinventing the wheel ! Stay simple and your site will remain operable.
August 30, 2016 at 9:30 am #258181In reply to: tinymce in activity replies and comments
jbboro3
Participant@danbp Thanks for the reply.. I got this working with “text editor” on both post (what’s new) & comment section, but just wondering what prevents those forms from allowing “visual editor” – as it remains unclickable. Is it something to do with filters on buddypress or the problem comes from within wordpress? I’d just want “add media” and “bold font” button on the visual switch.
If you can point me the files I can edit, that would be wonderful.. I looked around activity filters & bp-core but I’d want to confirm from your end about this before experimenting it or messing up the wrong files.
Thanks
Paul Wong-Gibbs
KeymasterThere are known problems with the member/group Cover Image features not using HTTPS URLs, but everything else ought to work if you configure WordPress to use HTTPS.
August 28, 2016 at 5:49 pm #258143danbp
ParticipantSee these plugins
https://wordpress.org/plugins/buddypress-registration-groups-1/https://wordpress.org/plugins/bp-auto-group-join/
but remember you asked first for Conditional select options […] 😉
August 28, 2016 at 8:28 am #258135danbp
ParticipantYou can download the modified js file (trunk:10207) here:
https://buddypress.trac.wordpress.org/browser/trunk/src/bp-core/js/bp-plupload.js?rev=10207If it doesn’t work, revert back to original plupload.js and debug elsewhere.
Youl’ll probably have to ask your theme support in that case.
Activate also wp_debug in wp-config to eventl. get some other error msg.August 28, 2016 at 6:50 am #258133In reply to: BuddyPress Components
danbp
ParticipantHi @mikke1978,
assuming each active BP component has his page and that this page is really unique and without any template assigned:
– you have to setup pretty permalinks to an option other that “default”.
Apparently you made something with your url configuration:
– wordpress doesn’t use www by default.
– all your components (activity, members and groups) are in /blog/ directory. By default, you should have http://your-site/activity.Not that all this cannot be done, but if you want it like this, you have to setup that correctly. This is no the case at the moment.
Note also that BuddyPress does not work on installations where you give WordPress its own directory.The question is where is WP installed ? At the site root or in a /blog/ directory ?
Open dashboard > General and check what is entered under site path and url and compare with what is in htaccess
August 27, 2016 at 6:55 pm #258127danbp
ParticipantSorry but we can’t bring assistance for premium themes.
that said it may be a JS conflict generated by BP in some exotic JS situation…
Read here: https://buddypress.trac.wordpress.org/ticket/6574August 27, 2016 at 6:43 pm #258125In reply to: tinymce in activity replies and comments
danbp
ParticipantThe ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).
Warning
The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
You will use it at your own risk.The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.
Required:
BuddyPress activated
a working child theme
some understanding of HTML and php grammarThis trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.
Start !
Read from here how to remove the textarea in post-form.phpThe code to remove is line 40 and looks like this:
<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10" <?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?> ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>You replace it by:
<?php $content = ''; $editor_id = 'whats-new'; wp_editor( $content, $editor_id ); ?>As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
add_filter( 'user_can_richedit' , '__return_false', 50 );And that’s it !
If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.
First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
You remove this:
<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
and replace it by<?php $id = bp_get_activity_id(); $content = ''; $editor_id = 'ac-input-'. $id; $settings = array( 'textarea_name' => 'ac_input_'. $id, 'editor_class' => 'ac-input bp-suggestions' ); wp_editor( $content, $editor_id, $settings ); ?>With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).
div#whats-new-options { display: block!important;}Function reference: wp_editor.
August 27, 2016 at 4:11 pm #258124dekoningalex
ParticipantHi,
Users can’t upload cover/profile pictures for their profile. If one clicks on the button to select a picture to upload, you can select a file, but when you choose a file nothing happens. The following error shows up: Uncaught TypeError: Cannot read property ‘add’ of undefined bp-plupload.min.js?ver=2.6.2:1
When i use a buddypress compatible theme (e.g. twentyeleven) the issue doesn’t occur so it is a custom theme issue. I have asked my theme developer for help but that has gotten me nowhere…
1. Which version of WordPress are you running? 4.6
2. Did you install WordPress as a directory or subdomain install? root
3. If a directory install, is it in root or in a subdirectory? root
4. Did you upgrade from a previous version of WordPress? If so, from which version? The one before 4.6
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
6. Which version of BP are you running? 2.6.2
7. Did you upgraded from a previous version of BP? If so, from which version? Yes, the one before
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones? Yes, but none of these plugins cause issues as i turned them all off, and the problem still persisted.
9. Are you using the standard WordPress theme or customized theme? Customized theme (Bronx by Fuelthemes)
10. Have you modified the core files in any way? No
11. Do you have any custom functions in bp-custom.php? No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.10
13. Please provide a list of any errors in your server’s log files. Don’t know how
14. Which company provides your hosting? Transip
15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux (Ubuntu)
Thank you so much in advance, any help is very much appreciated.
danbp
ParticipantGuess it concern at first WordPress. Read here:
http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/August 26, 2016 at 7:50 pm #258097In reply to: New Privacy Plugin
Fencer04
ParticipantTurns out the error you pointed out is a bug that is being tracked in BuddyPress. It will be resolved in version 2.7. I will still see if I can alleviate it somehow:
August 26, 2016 at 3:29 pm #258089In reply to: Problem with blog post image alignment
danbp
Participant@jendam As of #6573, you’ll need to add custom CSS to tweak the appearance.
Read https://buddypress.trac.wordpress.org/ticket/6573#comment:4The ticket is closed as invalid.
August 26, 2016 at 1:49 pm #258084In reply to: import xprofile CSV
sharmavishal
Participantyes…i read your post as well…unfortunately no plugin exists which would import bp related data. So you need to do it via phpmyadmin only as of now…just backup everything in case u need to revert back..best luck
also mairajs last link is of users capability issue which he faced…so if you face that issue then only u need to check this …else ignore this….
https://wordpress.org/support/topic/admin-problems-after-moving-wordpress?replies=2#post-750300
August 25, 2016 at 10:18 pm #258067In reply to: Modifying Activity Loop for Likebtn
danbp
ParticipantPerhaps the closing php tag after endwhile. Remove
?><?php endwhile; // User filtering. $user_id = bp_displayed_user_id() ? bp_displayed_user_id() : false;Note that you’re hacking a core file and that customization will be lost at next bp update.
Never do that.
That said i doubt that your like button will work on BP activities. That button is made for wordpress, not BP.
Try better this plugin which is more appropriate imho.
https://wordpress.org/plugins/buddypress-like/August 25, 2016 at 8:36 am #258043In reply to: Deactivate pending users
Paul Wong-Gibbs
KeymasterI’m not aware of any plugin that offers a feature to remove the activation URL. You would instead have to delete the user/signup record entirely.
https://wordpress.org/plugins/unconfirmed/ might help.
August 25, 2016 at 8:06 am #258035In reply to: Redirect does not work
fail2reap
Participant@djpaul – Thanks for getting back to me with these additional steps. I have tested this now with removing the plugin iThemes Security and Welcome Pack. I also set a default WordPress theme.
Unfortunately it did not resolve the issue as the user still get’s directed back to the home screen after the submit the register page.
Any other ideas?
August 24, 2016 at 4:08 pm #258018In reply to: Fatal Error
danbp
ParticipantPlease don’t double post on this forum.
You activated BuddyPress Custom Profile Menu plugin and got a fatal error. Remove it or rename his folder via FTP, so you can access your dashboard again.
Then contact the plugin author.
Since 2.6, BP use a new navigation API. Maybe the plugin isn’t updated for that or there is another conflict with your theme.August 24, 2016 at 8:42 am #257984In reply to: New user notification emails stopped?
Paul Wong-Gibbs
KeymasterHi @dnicu26
I can’t immediately see why that should be stopping the emails. Can you remove the snippet and test again, see if the emails resume sending?
Are you talking about the plain text email that you get from WordPress that says something like a “new user registered on your site”? I assume this has always worked in the past — how many such emails have you received? 10s? 100s?
Can you also please check your spam folders in your email?
Finally, are you using Multisite or regular WordPress?
August 24, 2016 at 8:22 am #257053In reply to: BuddyPress Username Ribbon
bigkahunaburger
ParticipantYou may want to look at creating member types. Then you could add the meta as a div class and style them via css:
https://gist.github.com/imath/3a5c5ade44eae997fdfd
If you don’t have the ability to code or hire someone that does you may want to try some of the member type plugins out there:
August 24, 2016 at 8:22 am #257277mrjarbenne
ParticipantIf you want to replace the activity post with recipes instead (eliminating the default ‘activity’) you could change the label of activity to “recipes” using this guide from the codex:
Change “Activity” component’s name and slug to something else.
If you want to keep the activity updates, and add a separate form for recipes, you will probably need to explore Custom Post Types. You’ll need to register a post type called Recipes.
These might help:
https://codex.wordpress.org/Function_Reference/register_post_type
http://www.wpbeginner.com/wp-tutorials/how-to-create-custom-post-types-in-wordpress/Then add it to the activity stream as a registered activity:
Users would need to use the dashboard to create a recipe update in this model, unless you created a front end recipe posting system using something like Gravity Forms:
https://gravitywiz.com/use-gravity-forms-to-create-user-submitted-posts/
August 24, 2016 at 8:22 am #257480In reply to: Chinese Translation
Petya Raykovska
ParticipantHey @idichoo,
It’s awesome you’d like to help with BuddyPress translation! Happy to help you get started with translating on http://translate.wordpress.org. I’m
Petyaon wp Slack.If you’d like to get started on your own, this is the best page: https://make.wordpress.org/polyglots/handbook/about/get-involved/first-steps/
BuddyPress could use a Project Translation Editor for Chinese as well, so if you’d like to become one, you can post a request on https://make.wordpress.org/polyglots and we’ll put you in touch with the Chinese General Translation Editors so they can add you as a project maintainer.
P.S. If you’d like to help the team with something quick, you can give us a hand with translating the WordPress 4.6 release video to Chinese! http://www.amara.org/en/videos/HD0Z715enyuZ/id/1429554/
-
AuthorSearch Results