Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 2,526 through 2,550 (of 2,756 total)
  • In reply to: Permalink Structure

    @henrywright

    Moderator

    @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 Avatar

    @henrywright

    Moderator

    That’ll output the member’s ID. Be interested to see if that throws a fatal error

    In reply to: 3rd Sized Avatar

    @henrywright

    Moderator

    Lol. 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 Avatar

    @henrywright

    Moderator

    bp_get_loggedin_user_fullname() is a function defined in bp-members/bp-members-template.php – are you sure you have BuddyPress installed?

    @henrywright

    Moderator

    @lonepalmus cc @shanebp

    There is actually a Trac ticket open for this. Just came across it:

    https://buddypress.trac.wordpress.org/ticket/3460

    In reply to: profile page Question

    @henrywright

    Moderator

    Take a look at the BuddyPress template hierarchy article:

    Template Hierarchy

    That should give you a good idea how to set up templates for the various areas of BP.

    @henrywright

    Moderator

    The 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.

    @henrywright

    Moderator

    @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.

    @henrywright

    Moderator

    @henrywright

    Moderator

    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 Structure

    @henrywright

    Moderator

    The 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

    @henrywright

    Moderator

    @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

    @henrywright

    Moderator

    @mcpeanut great stuff! Glad you got it working 🙂

    In reply to: Permalink Structure

    @henrywright

    Moderator

    I’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:

    https://buddypress.trac.wordpress.org/ticket/4954

    In reply to: Permalink Structure

    @henrywright

    Moderator

    @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:

    Changing Internal Configuration Settings

    In reply to: Permalink Structure

    @henrywright

    Moderator

    define ( ‘BP_ENABLE_ROOT_PROFILES’, true );

    Put this in plugins/bp-custom.php

    @henrywright

    Moderator

    @lonepalmus Ah hang on, I think I understand why this might not be working.

    Looking in bp_blogs_record_post I 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 workout so this probably explains why bp_blogs_activity_new_post_content doesn’t fire.

    @henrywright

    Moderator

    @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.

    @henrywright

    Moderator

    @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/

    @henrywright

    Moderator

    @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_content won’t fire.

    @henrywright

    Moderator

    Core 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 Posts

    @henrywright

    Moderator

    Take 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.

    @henrywright

    Moderator

    Try:

    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;
    }

    @henrywright

    Moderator

    get_post_meta($post->ID, 'key', true) won’t output, it just returns a string. You’ll need to echo it.

    @henrywright

    Moderator

    That 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_type is 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' );
    }
Viewing 25 replies - 2,526 through 2,550 (of 2,756 total)
Skip to toolbar