• Hello @g3ronim0

    I think the only draw back to this plugin is the topic status switcher. It relies on jQuery and I’m looking to change it to make it a great plugin. ?? I’ve tried to create a custom form but I cannot get the status to change. This is the code I inserted in to a Topic Info template which is loaded after the reply form for single topics.

    <?php echo '<form method="post" action="' . esc_url(bbp_get_topic_permalink($topic_id) ) . '" name="_support_status">';
    echo '<select class="support-select-status" name="_support_status" data-topicsupport="' . $topic_id . '">';
    echo '<option value="1">Not Resolved</option>';
    echo '<option value="2">Resolved</option>';
    echo '<option value="3">Not a Support Question</option>';
    echo '</select>';
    echo '<button type="submit" name="_support_status">Change</button>';
    echo '</form>'; ?>

    This looks like it should be working. I directly set the name of the selector and form as the name found in the default form with the plugin. Any ideas on how to get this working?

    The main thing is the loader is not accessible with assistive screen reading technology and I need the topic status drop down to act as a form.

    Thank you.

Viewing 7 replies - 16 through 22 (of 22 total)
  • Thread Starter Alex Stine

    (@alexstine)

    Hello,

    In case anyone else is wondering, this will get it done for you in a custom template.

    $support_status = get_post_meta( $topic_id, '_bpbbpst_support_topic', true );
    $topic_id = bbp_get_topic_id();
    echo bpbbpst_get_selectbox($support_status, $topic_id);

    Thanks @g3ronim0 things are working out quite well currently. Just one last question, I’ve modified the form a bit so it shows “Not a support topic” in the drop down for my custom forum, is there anyway to make the drop down show “Not a Support Topic” if that’s what the current status is? You can select it and change it already, it just won’t show if it’s the currently selected status, it shows “Support request” instead.

    Thanks for your help.

    Thread Starter Alex Stine

    (@alexstine)

    Hello @g3ronim0

    This is how I modified my functions.php file to show “Not a Support Topic” option.
    https://bitbucket.org/snippets/the-news-triangle/yAk5q

    Hopefully that helps you to see the issue with the form not selecting the “Not a Support Topic” value when that’s the current topic status. That is ultimately the goal. If “Not a Support Topic”, the select box should show that.

    Thanks.

    Plugin Author G3ronim0

    (@g3ronim0)

    Thank you @alexstine.
    I look at it during the weekend, not the time before.

    Thread Starter Alex Stine

    (@alexstine)

    That’s fine, no rush. Just wanted to make sure you had all the information you needed. ??

    Thanks.

    Thread Starter Alex Stine

    (@alexstine)

    Hello @g3ronim0

    Just checking up here again to make sure this thread hadn’t gone out of sight. Any update?

    Thanks. ??

    Plugin Author G3ronim0

    (@g3ronim0)

    Hi, nope thread hasn’t gone…just not enough time this week. And many updates in my todo. ??

    Thread Starter Alex Stine

    (@alexstine)

    Hello @g3ronim0

    Any updates here?

    Thanks.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘Making a Custom Form’ is closed to new replies.