Search Results for 'wordpress'
-
AuthorSearch Results
-
January 6, 2015 at 2:12 am #231530
Henry Wright
ModeratorYou can’t do this through BuddyPress itself, but there may be a plugin that does it for you. Take a look on the WordPress Plugin Directory to see if anything is available.
January 6, 2015 at 2:08 am #231529In reply to: How to "Like" ?
Henry Wright
ModeratorHi @disha76
I have installed Jetpack Like. But when a blog post is Liked / favorited it does not show in my BP Favorit list.
As far as I know, Jetpack Likes apply to blog posts only and are completely unrelated to BuddyPress favorites. If you ‘like’ something via Jetpack, then that’s separate to any ‘favoriting’ that you do via BuddyPress.
Another problem with Jetpack Like is it asks my blog visitors or members to register at wordpress.com compulsarily. Am I missing something?
I’m not aware of the specifics of Jetpack Likes, but you could try taking a look on their support page. I do believe they have an option to contact someone in their support team:
January 5, 2015 at 7:37 pm #231515In reply to: Which File and How to Sort?
djsteveb
ParticipantLooks like someone has forked or remade / resurrected this. From the support threads for the activity stream types block thing on wp repo; lenasterg.wordpress dot com/2014/11/14/bp_block_activity_types/
Says code is posted on github instead of wp repo – can anyone confirm this code is good / safe to use?
Why does buddypress dot org forums throttle and block me from posting half the time? meh. I have to cut up links, remove words. Another why we can’t have nice things, thing, I guess.
January 5, 2015 at 7:24 pm #231511In reply to: Which File and How to Sort?
djsteveb
ParticipantA different method to get similar results:
I use BuddyPress Block Activity Stream Types ( https://wordpress.org/plugins/buddypress-block-activity-stream-types/ )and I have these set to be axed from activity stream:
deleted_group_document, new_blog, new_member, joined_group, friendship_created, activity_likedalthough it is in desperate need of an update / fork to make it work smoother with bp 1.9 plus I think. I just looked into plugin settings to get info for you, and I see a weird message on the settings page:
Warning: Missing argument 2 for wpdb::prepare(), called in /wp-content/plugins/buddypress-block-activity-stream-types/admin/bp-activity-block-admin.php on line 6 and defined in /wp-includes/wp-db.php on line 1154Hmmm.. it still works to block the annoying stuff my users have no interest in. Wonder what it will take to get this plugin forked and updated.
January 5, 2015 at 7:15 pm #231510In reply to: How to "Like" ?
djsteveb
Participant@disha76
I would not use jetpack and try https://wordpress.org/plugins/buddypress-like/ instead.That may do what you are looking for, and it may not.. just a thought.
January 5, 2015 at 12:30 pm #231495shanebp
ModeratorDid you mean BuddyPress as opposed to bbPress?
Wouldn’t it be faster to just check for BuddyPress in your plugin and if found remove their filter and then replace it?
You can always create a ticket in trac. If you do, please reference this thread.
January 5, 2015 at 10:24 am #231491megnicholas
ParticipantHello I am the author of the contact form plugin.
The problem is that bbpress is adding a filter ‘wp_mail_from_name’ when the plugin is loaded.
/** * Set "From" name in outgoing email to the site name. * * @uses bp_get_option() fetches the value for a meta_key in the wp_X_options table. * * @return string The blog name for the root blog. */ function bp_core_email_from_name_filter() { return apply_filters( 'bp_core_email_from_name_filter', bp_get_option( 'blogname', 'WordPress' ) ); } add_filter( 'wp_mail_from_name', 'bp_core_email_from_name_filter' );My plugin also uses this filter. It applies it just before sending a mail and then removes it afterwards. When applying the filter it also checks whether any other plugin has already changed the from name from the default: ‘WordPress’, if so it does not apply the filter. When BBPress is active, the from name is not the default so the filter is not applied. This has been done so that the plugin works well with other plugins such as wp-mail-smtp which also allows the from name to be set.
I would like to request that BBPress only applies this filter at the time of sending the mail and then removes it afterwards as it only applies to emails that are sent from BBPress.
January 4, 2015 at 10:05 pm #231472In reply to: Notifications Behaviour
Paul Bursnall
ParticipantHi @henrywright
I opened a Trac ticket to suggest Live Notifications some time ago:
https://buddypress.trac.wordpress.org/ticket/5976The theme I’m beta testing has these included.
This other ticket covers what I believe needs fixing with how notifications are generated:
https://buddypress.trac.wordpress.org/ticket/6057#ticketJanuary 4, 2015 at 8:51 pm #231470In reply to: Notifications Behaviour
Henry Wright
ModeratorJanuary 4, 2015 at 8:27 pm #231468In reply to: creating custom link
tsabar
Participanton my wordpress/buddypress site i want to offer webinars that users can register to with one-click using a properly formatted link, basically just need to know how to output the first and last name buddypress variables from the registration form, like you showed me above with the email address…
January 3, 2015 at 11:42 pm #231444In reply to: User type (18+ and 18-) help
djsteveb
Participant@giftvincy
I am sure there are many different “membership plugin” options out there..I’d suggest starting with the “press permit core” plugin
( https://wordpress.org/plugins/press-permit-core/ )
which should do what you are describing I believe.January 3, 2015 at 11:39 pm #231443In reply to: Can I do this with BuddyPress?
djsteveb
ParticipantWithout knowing everything exactly the way you envision, from reading:
4 different categories where different Contributors can write new posts and interact with the Participants in the forum (better way to comment and reply to questions using the forum, than WordPress’s commenting system). These Contributors, however, must have their own public profile and allow for Participants to subscribe to their posts. So far, I’ve used different plugins:
I think if you drop buddypress… do a WP MultiSite install – with 4 sub blogs… look into creating “author pages” – not all themes do that well out of the box… a simple subscribe to blog plugin for each of the 4 blogs.. I think you can install bbpress and mix it with each sub blog – but I have not messed with bbpress in a while, so not sure the best way to connect that.. I think you can enable to the bbpress “sitewide” then each individual sub blog author and enable it or something.. then code that into the sidebar if each blog.. that would do everything you have said I think.. maybe that will get you in the direction you are trying to go.
I suggest searching the wp plugin repo for plugins that are “multi site” enhancements.. look into “author pages” in the codex, and search for themes that have special author pages to make experimenting easier..
January 3, 2015 at 11:10 pm #231442In reply to: Social login
ShMk
ParticipantThanks for the reply,
I’ve found these 2 plugins that are BuddyPress compatible and looks regularly updated:
– https://wordpress.org/plugins/oa-social-login/
– https://wordpress.org/plugins/wordpress-social-login/
I’ll give both a try and I hope that at least one will fit my website needs 🙂January 3, 2015 at 1:26 am #231416In reply to: Reliable hosting for BuddyPress installations?
djsteveb
Participant@sbraiden – I had similar 24 second page load times, and tried to get advice for enqueing, dergistering, and compacting the multiple and overlapping java and css all these plugins attached to buddypress are mixing in on top of the themes stuff.
Y Slow gives my BP site with basic plugins an “F” – WP professionals shrug it off – meh.
(more one all that here: http://premium.wpmudev.org/forums/topic/deregister-enque-compact-css-and-java-jquery-buddypress-load-time )
I have a sneaky suspicion however that my load times were an issue for me when logged in, and perhaps being logged in as an admin, I THINK that the (stupid) wpmudev dashboard plugin was slowing down my page load speed dramatically more than anything else. It was strange that after I complained of my long page loads, that 2 days later wpmudev had an update for their dashboard thing, and then my page load time went to like 3 seconds. – Coincidence, maybe, nothing definitive. – Everyone else said the pages loaded fine – so maybe it was just an admin thing – or maybe my ghostery blocking gravatar loads or something.
ANYHOW – in regards to hosting, I have a small buddypress site running fine on a shared server with amerinoc. I have one that is fairly busy running fine on a dedicated server at certified hosting.
I personally think that most important thing for a WP based site to perform well is blocking all the bad bots.
I have found that blocking all the naver and badu spiders (And most others) with a robots/txt file has decreased the sql over load (at peak times) on my servers by more than 80%.
I found that hosting a few wp sites on a shared server or dedicated could cause problems not just with spiders crawling pages too much too fast for indexing, but also all the attempting account creations / account brute force logins – even if they are blocked with something like sucuri or limit login attempts – every time they tried to login – they were using up server resources to load the login page, then hit the database to check credentials.
I also suggest using a pwd auth like explained here: http://support.hostgator.com/articles/specialized-help/technical/wordpress/wordpress-login-brute-force-attack
locking down the login with a double thing like that is fine for most WP installs, and a private family / friends BP site should be fine – when the bots can’t login through the first thing there is no need for wordpress to load a bunch of php / css files and pull from SQL a bunch of times just to give a bot a failed login – It becomes a problem for general open to the public buddypress comms I guess.
Now I set all my non-BP sites to use the double auth, I block all search engine bots aside from the top three selectively with robots.txt – and now just about any server can run fine with wp / bp – especially if some attention is paid to plugin overhead, wp-cacheing tools.
I have my fingers crossed the new bp-mediapress (sp? and Beta!) plugin thing will decrease the plugin overhead of rtmedia and offer a better alternative for pics and stuff.
Same random thoughts – I’m not an expert so take my 2 cents with a grain of salt or two..
January 3, 2015 at 12:48 am #231414In reply to: Hook for when a user first logs in
Henry Wright
ModeratorHere’s my stab at it, in actual code (demonstrating what I mean by my rambling above):
function my_add_meta( $user_id, $key, $user ) { add_user_meta( $user_id, 'first_login', 'not_yet' ); } add_action( 'bp_core_activated_user', 'my_add_meta', 10, 3 ); function my_check_meta( $redirect_to, $redirect_to_raw, $user ) { $meta = get_user_meta( $user->ID, 'first_login', true ); if ( $meta == '' ) { // The user has logged in before } else { // The user is logging in for the first time. // Do something here. delete_user_meta( $user->ID, 'first_login' ); } } add_filter( 'bp_login_redirect', 'my_check_meta', 10, 3 );References
https://codex.wordpress.org/Function_Reference/add_user_meta
https://codex.wordpress.org/Function_Reference/get_user_meta
https://codex.wordpress.org/Function_Reference/delete_user_metaJanuary 3, 2015 at 12:21 am #231412In reply to: Social login
Henry Wright
ModeratorThere are lots in the WordPress Plugin Directory. The problem with social login plugins is they’re very hard to maintain from the developer’s point of view. Often, social networking sites update their APIs which results in the plugin code no longer working. My suggestion is, find a plugin that’s actively maintained – that way, you’ll be in a better position should it need updating in future.
January 3, 2015 at 12:11 am #231408In reply to: Customizing emails template
ShMk
ParticipantThanks @henrywright,
I’ve added the filter just before sending the mail and I immediatly remove it onbp_core_sent_user_validation_emailto avoid problem on other WordPress mail that needstext/plain.I’ve also found in the code inside
bp_core_signup_send_validation_email( $user_id, $user_email, $key )function these three hooks that I used to change the message as needed by my website:$to = apply_filters( 'bp_core_signup_send_validation_email_to', $user_email, $user_id ); $subject = apply_filters( 'bp_core_signup_send_validation_email_subject', $subject, $user_id ); $message = apply_filters( 'bp_core_signup_send_validation_email_message', $message, $user_id, $activate_url );January 2, 2015 at 7:41 pm #231404In reply to: paid membership
Hugo Ashmore
ParticipantThis isn’t really a BuddyPress question as such. Try googling/searching the WP plugin repo for WordPress subscription / membership plugins, there are a few that will serve your purposes S2Member is generally suggested as a good one.
January 2, 2015 at 2:43 pm #231393In reply to: hide Loginname on profile
danbp
Participanthi @tarinarmolanya,
do you really think a hacker needs to read a username on a profile to hack an account ?
@fuzzielogix ‘s CSS trick may hide the display, but the username still appears in the source code. Could eventually be usefull if you need some space on your template, but is completely barren for any other purpose.And what about the usernicename in the profile URL and of course in the page title ?
Don’t waste your time with such pseudo security legends. The interesting place to go for a hacker is your DB and datas, not your template.
The only thing to do, and if possible to follow, are the recommendation given on this codex article. Dot.
January 2, 2015 at 2:00 am #231352In reply to: Hook for when a user first logs in
valuser
ParticipantHi @ndh01,
I think you could do this just with buddypress.
(just please backup database before….. etc)
Go to Profile Fields—> (Click) Add New Field Group
Add New Field (text) say Field Name virgin
Then add the following to your functions.php
function vub_login_redirect($redirect_to, $set_for, $user){ global $current_user, $bp, $wpdb; $val = 'no'; if (bp_get_profile_field_data (virgin, $user -> ID )!=""){ $redirect_to = bp_core_get_user_domain($user->ID) .'/groups/'; }else{ xprofile_set_field_data( 'virgin', $user -> ID, $val); $redirect_to = bp_core_get_user_domain($user->ID) .'/profile/change-avatar/'; } wp_redirect( $redirect_to ); exit(); } add_action('login_redirect', 'vub_login_redirect', 20, 3);Alternatively you could as you have suggested create a new meta.
A useful plugin for that would be User Meta Manager
Add Custom Meta say a text field Name — firsttimer
then add the following (instead of the above) to your functions.php
function vu_login_redirect($redirect_to, $set_for, $user){ global $current_user, $wpdb; $firsttimer = get_usermeta($user -> ID, 'firsttimer',single); $val = 'no'; if (!empty ($firsttimer)) { $redirect_to = bp_core_get_user_domain($user->ID) .'/groups/'; }else{ update_user_meta( $user -> ID,'firsttimer',$val); $redirect_to = bp_core_get_user_domain($user->ID) .'/profile/change-avatar/'; } wp_redirect( $redirect_to ); exit(); } add_action('login_redirect', 'vu_login_redirect', 20, 3);Obviously change the redirects to wherever you want the user to go.
January 2, 2015 at 12:57 am #231351In reply to: Reliable hosting for BuddyPress installations?
Dave Lozier
Participant@sbraiden – I recently helped migrate a site off of wpengine because of performance issues and the price wpengine wanted for more horse power under the hood. Their next level of service was going to cost $3200 a month. I suggested linode.com and was also amused by the fact that wpengine runs on top of linode.
The page generation times for wordpress/buddypress/bbpress along with various plugins (gravity forms, buddypress xprofile custom fields type, gravity forms upload rules, gravity forms wysiwyg, gd bbpress toolbox, cloudflare…) was not good. It is still not where we want it either, unfortunately.
The site is quite active, pushing 30,000 members and over 1.3+ million rows in the posts table. On average the page generation times are about 1.5 seconds for logged in users. Adding a new bbpress topic/reply can time out sometimes though. (still on the list to track down and fix)
We utilize Cloudflare out front for a CDN and their threat/spam protection. Their service is free but if you need more page rules to balance out caching the pro service level is $20 a month.
On linode we have a node balancer in front of two 4 core app server nodes. The app server nodes each connect directly to their own 8 core database nodes in a master master setup. This will be changing down the road once the database indexes are trimmed down with some denormalization. The cost for the node balancer, two 4 core and two 8 core nodes is $260 a month but that’s also allowing for some room to grow, capacity wise.
Server software is a combination of nginx, apache (threaded), php-fpm, glusterfs (upload directory only), memcache, zend opcode cache and mariadb. Nginx is the web server in front of apache which serves up static files from the glusterfs file system. Nginx is caching the static content being served up by apache along with full page caching (fastcgi) for anonymous visitors. Cloud flare is also caching the static content and to date we aren’t having any performance issues with IO and glusterfs.
I hope this helps. It can be done but it takes some effort (and money) to do so.
January 1, 2015 at 11:32 pm #231350In reply to: New here – can users add images to their posts?
alirat
ParticipantThanks for your reply. Not keen on WPMU Dev products myself, (not the products but the membership thing) so will have a look at some other plugins.
Is BP intended to have the users use the ‘Post’ function of WordPress to share their stuff?
January 1, 2015 at 10:01 pm #231348In reply to: Block other Users – count images
digitalpur
ParticipantHello @emidio007,
you can look here: http://www.digitalpur.de/wordpress-buddypress-rtmedia-limit-upload-images/
This could help you. I have implemented a similar solution for one of my clients. at the File “rtMedia.backbone.js” i have created a loop.
i have searched for “FilesAdded” and have added there this loop. You must costumize it for your needs.
while (up.files.length > 4) { up.files[4].remove(); }The Problem here: Every time you update “rtmedia”, the “rtMedia.backbone.js” will be overwritten.
January 1, 2015 at 12:01 pm #231345In reply to: New here – can users add images to their posts?
danbp
Participanthi @alirat,
as no add media button exists.
Is not intended for. Notices are for brief messages, and html is stripped for security reason.
To get that, consider this plugin.
January 1, 2015 at 2:38 am #231339In reply to: Secure enough for medical patients?
Henry Wright
ModeratorSecurity out of the box is fairly tight but as @shanebp mentions above there are ways of ‘hardening’ WordPress security. Also, you have to be careful when custom code or plugins are added – be sure the code is secure.
Separate to security but important to you would be the issue of privacy. BP offers some privacy control but you could always extend on that depending how sensitive exactly your info is (and it sounds like your info will be extremely sensitive).
-
AuthorSearch Results