BuddyDev

Search

Conditional Profile Fields: 2 ideas/wishes to improve this awesome plugin

  • Participant
    Level: Enlightened
    Posts: 47
    blade on #2969

    Hello to this lovely community!

    First of all: Thank you soooo much, for this nice plug-in <3

    Would be awesome, if one of the ideas would be possible:

    1) set conditionals per value-entry instead of field-entry
    2) “add condition” button plus another dropdown with “&&” and “||”

    I put some screens in the 2nd post. (editing reason)

    Thank you soo much
    Gratefully
    Blade

  • Participant
    Level: Enlightened
    Posts: 47
    blade on #2970

    Idea 1:

    Idea 2:

    Please excuse me, if those ideas are noob or stupid.
    I will delete these posts on your wish then.

    Cheers
    Blade

    P.S.: Sorry, if you need those screens in english, plz tell me – I will create them asap <3

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #2973

    Hi Blade,
    Thank you.

    We haven’t supported the multiple conditions yet. Will explore in a day or two and will let you know.

  • Participant
    Level: Enlightened
    Posts: 47
    blade on #2974

    Master Brajesh <3

    Thank you soo much. Your support is as always outstanding!!!

    Off-topic:
    Right now I’m working on a conditional front for “BP Profile Search”.
    (using a static search form for the beginning)
    If I achieve this dynamically, I would gladly share it with you.
    (Perhaps you [or someone else] could use it)

    Your
    Blade

  • Keymaster
    (BuddyDev Team)
    Posts: 24712
    Brajesh Singh on #2992

    Hi Blade,
    That looks to me a very god idea. Been using profile search on a few of my projects. I am sure it will be very beneficial for me as well as the whole community.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 47
    blade on #3051

    Dear Brajesh!

    Last night I was successfull and got my “conditional advanced search” up and running 🙂

    Its not pure static anymore 😀
    But its still not as dynamic as i want 🙁
    (But Im still a learning noob, so thats ok for me)

    what does that mean:
    I modified the form template and injected some css and js.
    So the form is generated dymanically (with my extra divs classes)
    BUT the conditions are hardcoded. (machting my ids,values, names and classes)
    Since I don’t know anything about creating an own plug-in (yet),
    its hard for me to think, how the communication between admin-ui and code is done.

    Thats also the reason, why I couldn’t just use the conditions created with your plug-in.
    So I “recreated” all conditions – I know, im such a nap – sorry.

    I need to figuere out some more things, like replacing hardcoded texts with change-able variables.
    example:

    var yzposition = $('#bps_directory14 input:radio[name=field_29]');

    bps_directory14 and field_29 only works for my specific case of course.

    I know that there must be far more efficient ways solving this problem, but never the less, this way I learn a lot of stuff about wordpress/buddypress, and perhaps some day I could also create such amazing things like you do every day 🙂

    If you want to take a look at my current state, You can gladly have access to my computer via teamviewer. (since its a local development)

    Cheers
    Blade

    P.S.: Any chance I could apply your awesome dropdown2radio hack of membertype for the profile search?
    It was already astonishing, seeing that it also applied on the admin backend and not “only” for the registration front end <3

You must be logged in to reply to this topic.

This topic is: not resolved