Forum Replies Created
-
In reply to: Permalink Structure
@mcpeanut I just got around to buying the dedicated AMD. One thing to watch out for, the price quoted on their splash page is for a 24 mo contract. I found myself paying an extra £10 a month for a rolling monthly contract. Their SSL cert costs extra too. I’ll report back on performance one I have it set up and running
In reply to: 3rd Sized AvatarThat’ll output the member’s ID. Be interested to see if that throws a fatal error
In reply to: 3rd Sized AvatarLol. I’m not sure why you’re getting the fatal error function not defined. It indicates the function doesn’t exist. We know it does exist as you have BP installed. So it’s strange!
Maybe try replacing
$user_fullname = bp_get_loggedin_user_fullname();with$user_fullname = bp_loggedin_user_id();In reply to: 3rd Sized Avatarbp_get_loggedin_user_fullname()is a function defined inbp-members/bp-members-template.php– are you sure you have BuddyPress installed?In reply to: Using get_post_meta() in activity streamThere is actually a Trac ticket open for this. Just came across it:
In reply to: profile page QuestionTake a look at the BuddyPress template hierarchy article:
That should give you a good idea how to set up templates for the various areas of BP.
In reply to: Activation Email Intermittent FailuresThe emails are sent but not received
Could your domain be blacklisted? You might have to approach the various hosts you’re having problems with to make sure you’re on their whitelist.
In reply to: Activation Email Intermittent Failures@aaclayton have you tried contacting your host? You need to verify if these emails are actually being sent by your mail server. If they are being sent and received, then the problem could be with the actual activation link.
Have you tried disabling all of your plugins? I realise the site is live so that might not be possible.
In reply to: Should I wait for the v2.0 beta?You might find this helpful
In reply to: Should I wait for the v2.0 beta?The beta version will need testing so I’d advise to either install 1.9.2 or wait for the full release of 2.0 (not the beta). Unless you’d like to help test of course 🙂
In reply to: Permalink StructureThe Intel Xeon looks really good actually. I think I might start off with the AMD, see how that fairs then if I need more i’ll upgrade to the Xeon. You’re right, the spec on these is good for the price. I was expecting to pay more for a dedicated which is probably why I’ve never looked into getting one before. I like their managed option too – in theory you could set up a client and for £20 a month they’d have a powerful server and there’d be no requirement for them to configure or watch over it as 1&1 take care of it. I’ll report back once I’ve got the dedicated up and running – probably a few weeks time though.
In reply to: Permalink Structure@mcpeanut have you used 1&1’s dedicated server yet? I have actually been thinking of upgrading recently. The VPS is good but I think I need to ‘up my game a little’ and go for some more power. Was wondering if you’d recommend their dedicated option?
In reply to: Permalink Structure@mcpeanut great stuff! Glad you got it working 🙂
In reply to: Permalink StructureI’m actually about to move over to my 1&1 VPS so will try to report back what I find. I’m pretty sure I’ve used root profiles on it before without problems.
You might have better luck with root profiles when BP adopts WP-style rewrite rules in v2.1. You’ll be able to put any component you like in the root. It was scheduled for 2.0 but there’s lots of work involved. Check out this ticket for the latest updates:
In reply to: Permalink Structure@mcpeanut humm, that’s interesting. I’ve never had any problems getting root profiles to work. Are you doing anything else special inside bp-custom?
On a slightly different note, but still related, you might find this page of some use:
In reply to: Permalink Structuredefine ( ‘BP_ENABLE_ROOT_PROFILES’, true );Put this in plugins/bp-custom.php
In reply to: Using get_post_meta() in activity stream@lonepalmus Ah hang on, I think I understand why this might not be working.
Looking in
bp_blogs_record_postI don’t think custom post types are recorded.// Don't record this if it's not a post if ( !in_array( $post->post_type, apply_filters( 'bp_blogs_record_post_post_types', array( 'post' ) ) ) ) return false;I can see you’re working with a custom post type
workoutso this probably explains whybp_blogs_activity_new_post_contentdoesn’t fire.In reply to: Can't stop spam registrations@robg48 something else you could do is use a honeypot. An example is
http://www.pixeljar.net/2012/09/19/eliminate-buddypress-spam-registrations/
It works by adding a hidden field to your registration form. Users can’t see the field so will never complete it (it will always be blank). Spam bots, however, don’t view the page in the same way as users. They ‘see’ the page source so will always ‘see’ the hidden field and try to complete it.
On registration form submission, if the hidden field is blank then we know it’s a genuine user trying to sign up. If the field is completed then we know it’s a spam bot and we can halt the registration. Hence, the name honeypot.
In reply to: Can't stop spam registrations@robg48 just a thought – try changing the name of your registration page. Spam bots automatically look for pages such as /register/ so maybe use /sign-me-up/
In reply to: Using get_post_meta() in activity stream@lonepalmus post meta should be available!
As @shanebp pointed out Site Tracking – are you sure you have it enabled? If it isn’t enabled
bp_blogs_activity_new_post_contentwon’t fire.In reply to: 2.0 top features – ideasCore performance is my number 1 wish. I’m not so bothered about new features with bells and whistles as these can be added easily via plugins.
In reply to: Recommended PostsTake a look at BuddyPress Like
https://wordpress.org/plugins/buddypress-like/
It’s close to what you want. You can change the ‘like’ wording to ‘recommend’ easily via the WP dashboard.
In reply to: Using get_post_meta() in activity streamTry:
add_filter( 'bp_blogs_activity_new_post_content', 'record_post_activity_content', 1, 3 ); function record_post_activity_content( $activity_content, $post, $post_permalink ){ if( $post->post_type == 'workout' ) { $activity_content = get_post_meta( $post->ID, 'rute', TRUE ); } return $activity_content; }In reply to: Using get_post_meta() in activity streamget_post_meta($post->ID, 'key', true)won’t output, it just returns a string. You’ll need to echo it.In reply to: Notification ManagementThat sounds like a better approach than mine. I just have a rather crude looking button which marks as read all unread notifications.
bp_notifications_mark_notifications_by_typeis the function I’m using to do the marking. For example:if ( bp_is_active( 'notifications' ) ) { bp_notifications_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->messages->id, 'new_message' ); bp_notifications_mark_notifications_by_type( bp_loggedin_user_id(), buddypress()->activity->id, 'new_at_mention' ); }