BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: Nested Buddypress profile fields #30763

    Thank you again Brajesh.

    Putting it in the functions.php looks as if it will work although I am now getting the error “Declaration of BD_XProfile_Field_Type_Country::display_filter($field_value) should be compatible with BP_XProfile_Field_Type::display_filter($field_value, $field_id = ”) in… ” I’m guessing something must have changed since the code was written so will have a look at your custom field types to see if I can spot the difference 😉

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: Nested Buddypress profile fields #30752

    Hi Brajesh

    Thank you again. I’m not familiar with creating a new field type but would this then automatically generate (and populate) the two select boxes?

    I did come across this – https://gist.github.com/sbrajesh/5b3f4fd44c9c91b3ed3e – which looks like your work from some years ago (perhaps what you were referring to) but this caused an error when added to my bp-custom.php (ie. Class ‘BP_XProfile_Field_Type_Selectbox’ not found in C:\xampp\htdocs\mach2\wp-content\plugins\bp-custom.php). I’m guessing maybe I should look at how you have achieved similar with your BuddyPress Xprofile Custom Field Types plugin and follow a similar process?

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: Nested Buddypress profile fields #30701

    Hi Brajesh

    Ah I’m not sure I’m entirely following you in that case. So you are suggesting to create one field TYPE which automatically generates 2 select input fields?

    If you say having 2 fields (the way I’ve described above) will make it easier to filter, then I may give it a try that way initially and if that doesn’t work, will come back and re-read what your suggestion again 😉

    With many thanks as always
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: Nested Buddypress profile fields #30680

    Hi Brajesh

    Thank you so much for your prompt and helpful reply. If I understand correctly, you’re suggesting creating two fields ie. one for countries and one for states, with each state having a connection to a specific country (presumably via xprofile_meta)?

    Then use js (on ready or change) to filter the relevant states…

    Hopefully that makes sense and will give it a try.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30541

    Hi Brajesh

    Thank you so much for your time.

    I understand completely what you say about the fact that the server can’t identify how many files have been uploaded and having delved into the code, I can see how you’ve handled this.

    > “In case of upload from activity, we do no keep a record of all the files uploaded client side and we do not inform server that consider these n files as single unit.”

    I guess this is the part I am still trying to get my head around ie. what is the difference with an activity upload which means that the number/details of files ARE stored somehow and can used to create an activity entry at the time of upload.

    > “We can do it by sending a new request at the end of the uploads to inform server. It is not very difficult to achieve.”

    I am assuming this is how one would handle creating the relevant activity entry for a bulk upload from the gallery? Presumably by hooking into mpp:uploader:upload.complete?

    My client is willing to pay me to overcome this issue if I can, I’m just trying to work out if it’s realistic for me to attempt 😉

    Thank you again for all your assistance and I shall do some more digging myself.

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30518

    Hi Brajesh

    So sorry to trouble you again but I am trying to understand why this works automatically when files are uploaded from the activity feed but not when they’re uploaded from the profile/gallery ie. is there any specific reason (other than, it just hasn’t been implemented that way) and if not, how difficult do you think it would be to hook into the same action as runs when uploading from the activity feed?

    I really wish this wasn’t such an issue for me but my clients have used rtMedia in the past and can’t understand why I am struggling to offer them the same functionality. Of course, I personally think MediaPress is better in many ways but my clients aren’t currently seeing it that way 😉

    With many thanks again
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30500

    Thank you again Brajesh… I *almost* understand what you’re saying, although does seem strange that it works if users upload directly from the activity screen but not when uploading in their own galleries, you know your way around BuddyPress far better than I ever will so I’m assuming there’s a good reason why that’s the case and not something that’s easily overridden 😉

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30494

    Hi Brajesh

    Thank you again. Just to be clear, currently the only way to get image uploads to appear in the activity feed in that format is for the user to visit the manage gallery screen after the upload is complete?

    There wouldn’t be any way of triggering that automatically?

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30467

    Hi Brajesh

    Aaah… thank you for persisting with me. I’ve tried that again and I now see what you mean!

    That is indeed doing exactly what I want but hope you’ll agree it’s not hugely intuitive. Is there any way of making that the default behaviour so that users don’t have to take an extra step to ensure their uploads get published on the activity page?

    Regards
    Nik

  • Participant
    Level: Master
    Posts: 281
    NikB on in reply to: [Resolved] Mediapress Bulk Uploads #30455

    Hi Brajesh

    I’m really sorry but I’m not following you.

    What should be checked under “Automatically Publish to activity When?”?

    What do you mean by the “option to publish media to activity” (ie. is this something the user selects?) and where does it appear?

    Also what part of the gallery edit page should I be visiting after upload and what should I be seeing?

    With many thanks again and apologies if I’m misunderstanding something obvious 😉

    Nik