• Hello,

    i have implemented a nice way of using the toggles in the members directory. Now I am populating the fields, I have resliaed that it seems impossible to re-order these fields. As in to insert, or move the order in which way they appear.

    Am I correct in this? And is there a way I can move these fields around? I am sure I will be creating a high volume of these. To be able to drag and drop, or just number them would save me an other wise impossible task, or very large headache, if at some point I need to insert a new field second from top, and there being 50 previous toggles. Many Thanks

    https://wordpress.org/plugins/bp-profile-search/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hello,

    If you wish to reorder the fields in a search form, you can do that by dragging them up or down (by the Ξ handle on the left) in the “Edit Form” page.

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Oh dear…i didnt see this. Slightly embarrasing. Thankyou for replying.

    Plugin Author Andrea Tarantini

    (@dontdream)

    You are welcome!

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Ah! no, not quite, I am concerned with the Profile Search Forms page. When adding a new Form, it seems not possible to change the order of these forms. How Would I go about ordering these forms. The “containers” of the toggles?

    Thanks

    Plugin Author Andrea Tarantini

    (@dontdream)

    Why would we need to reorder the forms? I can’t see the usefulness of that feature, could you please provide some details?

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Hello.

    In my case. Say I have form 1 and form 2 and form 3 and form 4 all the way to 20. Each of these forms has a set of toggles setup. They are grouped in categories. Say each category has 4 forms each. But then I need to add a 5th form to the first catagory group. Eg form 2.1 . I at the moment will need to change form 3 to 2.1 and re-do each form thereafter to keep the rest of the forms in the correct order.
    https://www.pobpob.com/members/ the left hand menu will show my consideration. I am now populating the lists…but i might need to move/add toggles to different locations.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Thanks, now I understand what you need.

    How are you rendering all those forms in your sidebar? Are you using:

    1. the Add to Directory option?
    2. widgets?
    3. shortcodes?
    4. do_action (‘bps_display_form’, …)?
    5. or custom code?

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    It’s a custom .js file been made to move them to the left hand side. Hence re-ordering in the form creation point is ideal for me. Then I can just play around as required. Thanks.

    Plugin Author Andrea Tarantini

    (@dontdream)

    Ok, so I suppose you are using the Add to Directory option.

    You can try to replace line 18 in bps-form.php:

    'orderby' => 'ID',

    with

    'orderby' => 'title',

    This way the forms will be ordered by title in your sidebar, and you’ll be able to rearrange them by changing their title.

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Thanks for the info. It maybe easier if I can take the ID’s and confirm the order of the ID? Like how you might do for the order of buddypress menu tabs.

    I am a bit confused by arranging by title. I dont know how this would make arranging them any easier just by changing the title.

    Plugin Author Andrea Tarantini

    (@dontdream)

    You could title your forms like:

    – Aform
    – Bform
    – Cform

    and so on. Should you need to move Cform to the first place, you could rename it A1form, so you’ll have:

    – A1form
    – Aform
    – Bform

    And if you need to insert a new form after the second one, you can call it B1form:

    – A1form
    – Aform
    – B1form
    – Bform

    I think ordering by title is convenient because you can change the form title, while you cannot change the form ID.

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Hello. Yes I aggree. My concern is that this would make the labelling for the user quite weird unless I could somehow hide the first letter from the front end label.

    Plugin Author Andrea Tarantini

    (@dontdream)

    The form titles are not shown on the front end, they are only used on the admin side, while the front end shows the configurable Form Header text.

    Anyway I agree that this way of ordering the forms is more a workaround than a well designed feature πŸ™‚

    Thread Starter fullmoonfriday

    (@fullmoonfriday)

    Ah. Yes, thats right. That will work fine then. A good workaround that will suffice. How would I put this into bp-custom to avoid update changes?

    Plugin Author Andrea Tarantini

    (@dontdream)

    That’s not possible with this plugin version, I’ll add a hook in the next version and I’ll post the code here.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Re-order search toggles’ is closed to new replies.