Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 30 total)

  • becskr
    Participant

    @becskr

    bump, some help on this please?


    becskr
    Participant

    @becskr

    Jetpack->WordPress.com Stats->Configure->Put a chart showing 48 hours of views in the admin bar.

    Then go to Settings->General and see what New User Default Role is set as.
    Anyone other than subscriber will see the stats. You will have to go back and change the subscriber settings for anyone that registers.


    becskr
    Participant

    @becskr

    Hi Xevo,

    It depends how much you can code.
    You can add one using the bp_core_new_subnav_item() function.
    Let me know if you want more help – you should be able to find more info if you google it.

    This is a good example:
    Add tab to profile


    becskr
    Participant

    @becskr

    Sorry but I haven’t got time to look at this at the moment and wasn’t planning on maintaining it. I’m not really a developer!


    becskr
    Participant

    @becskr

    Hi @mercime, I tried your suggestion last night – I switched to twentytwelve, turned off all the plugins and it didn’t work as I expected. When I requested membership, it asked me to add a comment, rather than just returning the button disabled with “request sent”.

    I also tried bp-default but that made no difference either.

    I happened to have a copy of the old which referenced this instead of what I mentioned above

    	jq(".group-button a").live('click', function() {
    var gid = jq(this).parent().attr('id');
    gid = gid.split('-');
    gid = gid[1];
    var nonce = jq(this).attr('href');
    nonce = nonce.split('?_wpnonce=');
    nonce = nonce[1].split('&');
    nonce = nonce[0];
    var thelink = jq(this);
    jq.post( ajaxurl, {
    action: 'joinleave_group',
    'cookie': encodeURIComponent(document.cookie),
    'gid': gid,
    '_wpnonce': nonce
    },
    function(response)
    {
    var parentdiv = thelink.parent();
    if ( !jq('body.directory').length )
    location.href = location.href;
    else {
    jq(parentdiv).fadeOut(200,
    function() {
    parentdiv.fadeIn(200).html(response);
    }
    );
    }
    });
    return false;
    } ); 

    I replaced the jq with jquery and added it into my custom scripts and it worked fine.

    I can’t understand why it wouldn’t work even when I changed to the default or twenty twelve themes though if you said there wasn’t an issue.


    becskr
    Participant

    @becskr

    Hi all

    I have fixed the issue but it has taken me a while to work out what an earth is going. The issue is not the theme, but in global.js so I should not have the only site experiencing this problem.

    The issue would only ever be on a single group page, on the group directory you were able to request membership completely fine.

    In global.js line 940 references a css id which is only listed on the groups directory

    jq('#groups-dir-list').on('click', '.group-button a', function() {

    therefore the requests won’t work. As a temp fixed I’ve copied the function and referenced

    jq('#item-buttons').on('click', '.group-button a', function() {

    which will reference the request button on a single group. I’m not too good with jquery and have just added this into the default global.js as assume someone will not go and fix this and roll out an update.


    becskr
    Participant

    @becskr

    I know this is old but I had the same problem and figured out how to fix it so thought I would post it.
    Instead of trying to feed the key in, I just trimmed the message to remove the original wording and then replaced it with my own wording.

    `
    function fix_bp_activation_message($message) {
    $msgTrim = “Thanks for registering! To complete the activation of your account please click the following link:”;
    $trimmed = trim($message,$msgTrim);

    return __( “Thanks for signing up to Clandestine Cake Club! In order to take part in the fun, you’ll need to activate your account by clicking the link below. \n Once you’ve done that, we’ll need to approve the account, usually within 24 hours.”.$trimmed.”Best wishes,\n Lynn Hill – CCC Founder”, ‘buddypress’ );
    }

    add_filter(‘bp_core_signup_send_validation_email_message’, ‘fix_bp_activation_message’);
    `


    becskr
    Participant

    @becskr

    OK so I have posted this in another thread but I’m going to post it here in case anyone else wants to use it. I created a plugin that will take a blog post category slug and where the group slug matches it exactly, it will post the activity to that group’s feed and send an email notification using the Group Email Subscription.

    Here’s the link to the pastebin with the plugin: http://pastebin.com/R5U6TLG7


    becskr
    Participant

    @becskr

    Yes sure, helping you with this.


    becskr
    Participant

    @becskr

    I’ve sorted it! I did need to put the component as groups :)


    becskr
    Participant

    @becskr

    Hi Boone,

    Right thanks for the var dunp stuff, that’s got the first bit working and the correct info is stored in the variables.
    I’m having some trouble now with the actual function itself. I changed the function name and changed the `item id` value to $groupid but nothing happens. I took the blog_record_activity from the core files and changed to groups_record_activity but am wondering whether it’s the component bit that’s the issue? I noticed in this post: https://wordpress.org/support/topic/plugin-buddypress-groupblog-adding-an-entry-to-group-activity-stream that the component is set to “groups” .

    Progress so far: http://pastebin.com/LTWSDM2i


    becskr
    Participant

    @becskr

    OK, so what I want to do is add the activity to the feed when the category for the post matches the slug for a group. The problem is it isn’t at the moment. It’s not doing anything.

    Code is saying “get the ID of the new-events category and if the other category assigned to that post does not match that ID then get the group ID for the group slug that matches the category slug. Then add the activity to that group.”


    becskr
    Participant

    @becskr

    Hi Boon, I’ve got as far as I can and now stuck. Just wondered if you could help me out a bit more?
    The post is in two categories – one will always be “new-events” and the other will have a slug that matches the group name.

    Could you have a look over my code and see what I’m doing wrong?

    http://pastebin.com/QnniULau


    becskr
    Participant

    @becskr

    Anyone???


    becskr
    Participant

    @becskr

    Just realised that this doesn’t work because it prevents you being able to sort with either of the other two options on the drop down. I still want to have other ways to sort….can anyone help?


    becskr
    Participant

    @becskr

    Thank you SO MUCH. That worked a treat!


    becskr
    Participant

    @becskr

    bump


    becskr
    Participant

    @becskr

    I had this problem too! Thanks for the help, I’ve spent ages trying to work it out…The username field is still filled in when I go to register – is that because I already have an account and it’s stored in browser cookies?


    becskr
    Participant

    @becskr


    becskr
    Participant

    @becskr

    By the way I am using a custom child theme so I have my own group index.php page but not a custom groups-index.php file


    becskr
    Participant

    @becskr

    Try reuploading your buddypress plugin – I did and now it’s all fixed :)


    becskr
    Participant

    @becskr

    Resolved this by reuploading the buddypress plugin, think something went wrong during upgrade!


    becskr
    Participant

    @becskr

    I’ve got the same problem but with members instead. I tried going back to bp default and it makes no difference


    becskr
    Participant

    @becskr

    Sorry I meant to say I’m seeing no members at all. It says we have 304 but none are showing:

    Members


    becskr
    Participant

    @becskr

    I’m having the same problem but it doesn’t work in either the default or my custom theme (well actually I don’t have any child member files anyway)

Viewing 25 replies - 1 through 25 (of 30 total)
Skip to toolbar