BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 279
    NikB on #51126

    Hi Brajesh

    My apologies for not getting back on this one sooner. I did some more investigation of my own and, as I think we both suspected, it turns out that the issue was being caused by another unrelated plugin.

    Thank you for your patience with this and sorry for troubling you. Please feel free to close this ticket.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50953

    Hi Brajesh

    Thank you for getting back to me and I suspect you may well be right that something is interfering with the redirection.

    I’m not very familiar with the network panel but if I’m reading correctly, it looks a if there may be an issue with wp-admin/admin-ajax.php which is returning 503. Does that sound likely?

    With many thanks again.
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50814

    Hi Brajesh

    Just a quick update on this one… as I suspected, it seems that the theme I was using (ie. BuddyX Pro) was overriding the Magnific css which meant that the scroll arrows in the popup weren’t visible. I fixed the issue by copying some of the relevant css from Magnific to my child theme and that seems to have done the trick.

    Either way, certainly not the “fault” of Mediapress so no need to investigate further unless you wish to do so.

    With very many thanks as always.
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50787

    Hi Brajesh

    Thank you for the additional information.

    I’m fairly sure the issues I’m experiencing are CSS related ie. the arrows do “exist” but can’t be seen until hovered over (and even then sizing/positioning is not quite as it should be) so there’s not necessarily anything wrong with the configuration, it’s just getting overridden by the theme I’m using.

    What I was struggling with was identifying which css elements I needed to target and presumably give a higher priority but now I know that it’s likely to be something coming from Magnific, I’ll dig a bit deeper and see what I can work out.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50729

    Hi Brajesh

    Thank you for your thoughts and that makes a lot of sense.

    Whilst I can see that the functionality is there by default, I still can’t figure out if/when that functionality is actually ever used by Buddypress by defautl (ie. exactly where Buddypress actually displays grouped notifications) but maybe it doesn’t?!

    Either way, I do appreciate your input which has helped me to see things a bit more clearly and I think I’ll leave things as they are for now at least.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50705

    Hi Brajesh

    Just thought I’d update on this as it seems the dropdown list of notifications I was referring to *was* controlled from the previous theme I was using. Essentially if a user has two “at mentions”, the old theme would show that as “You have 2 new mentions”, whereas the theme I am currently using shows two separate list items eg. “X mentioned you” and “Y mentioned you”. Of course, the latter method is not wrong, it just a bit messy and not what my users are used to…

    I’m curious looking through the Buddypress code though because there seems to be a function bp_activity_format_notifications which would return a combined string for multiple notifications of the same type (which is exactly what I want) but I can’t actually see where this is used in “standard” Buddypress at all. As the oracle of all things Buddypress, I’d be very grateful if you might be able to suggest how/where this function is actually used as possibly I might be able to make use of it in creating a tidier notifications dropdown.

    Any thoughts would be much appreciated as always.
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50697

    Hi Brajesh

    Thank you for getting back to me. I don’t actually mean the adminbar (as far a I am aware, that only ever shows you a total number of notifications and you then need to click on that to view the details)?

    What I’m referring to is a bell icon in the menu bar which when clicked on shows a dropdown list of notifications, and which, in writing this, I am realising is controlled at least partly by the theme I’m using (although seems to be a fairly common feature of most Buddypress focused themes and uses the bp_the_notification function to populate the list).

    Hmmm… I guess it may be my theme that’s at fault and/or something to do with the bp_the_notification function so will investigate a bit further but any suggestions would be much appreciated.

    Note: what I am looking for is (for example) the text which is generated when a function such as bp_activity_format_notifications is run eg. a new activity reply should generate “X commented on one of your updates” if it’s the first one and “You have %1$d new replies” if you have more than one reply and that doesn’t seem to be happening… I just keep getting multiple entries of “X commented on one of your updates”.

    With many thanks as always
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50631

    Oops! Well it took me a while but just realised that this issue has nothing to do with Mediapress but rather the fact that the PHP GD Extension wasn’t enabled on my local server.

    Sorry for troubling you on this one Brajesh and all sorted now 😉

  • Participant
    Level: Master
    Posts: 279
    NikB on #50629

    Hi Brajesh

    Yes that’s exactly what I’m trying to do and I was wondering if there might be a neater way (with a filter perhaps), as I’d previously got the impression that Buddypress was trying to move away from using templates to override things but hey… no worries. What you suggest is easy enough to do and thank you for confirming that I’m not overlooking anything.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 279
    NikB on #50383

    Well… it actually proved to be much easier than expected and don’t know why I didn’t think of it before.

    Just in case anyone else comes across this thread with the same problem, I just substituted the wp_ulike_put_posts function in your code for a shortcode instead and everything (so far) seems to be working perfectly (including creating an activity entry and syncing likes between the lightbox and the single media page) eg.

    function mpp_wpulike_show_button() {
        
    if( function_exists( 'wp_ulike_put_posts' ) ) {
            // echo wp_ulike_put_posts('');
     	echo do_shortcode("[wp_ulike]"); 
     }
        
    }

    Regards
    Nik