• Resolved anwind

    (@anwind)


    Publication of an ad, provided that the user is not registered, the scenario of email confirmation before posting is ill-conceived.
    Necessary:
    1. Sending an ad for moderation, the user must confirm the email.
    2. If the user checks the box “Create an account to manage my ads”. The account has a role immediately as confirmed, it must be (Unconfirmed) until 1 point is completed.

    And it would be right when the administrator sees whether the user has confirmed or not the mail, directly in the body of the ad.

    • This topic was modified 2 years, 7 months ago by anwind.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    currently, we do not have such a feature I am afraid, adding it is possible but will require some programming.

    That said, you can use the [adverts_add] as [adverts_add requires="read"] then only logged-in users will be able to post Ads all others will see a message asking them to log in or register.

    So in order to create a new Ad, the user would need to use the WP (or some third-party plugin) registration system that would require them to go through email verification of some sort.

    Hope this helps.

    Thread Starter anwind

    (@anwind)

    in order not to create a new topic, one more question

    add_filter( "adverts_form_load", "make_readonly_name" );
    function make_readonly_name( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      if( is_admin() ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( in_array($field["name"], array( "adverts_person" ) ) ) {
            $form["field"][$key]["attr"] = array( "readonly" => "readonly" );
        }
      }
      return $form;
    }

    This is the code that prohibits changing the contact person.
    It is necessary to prohibit email fields

    • This reply was modified 2 years, 7 months ago by anwind.
    • This reply was modified 2 years, 7 months ago by anwind.
    Thread Starter anwind

    (@anwind)

    the question is closed

    Plugin Author Greg Winiarski

    (@gwin)

    I am not sure if you still need help with this, but if so then in the above code change array( "adverts_person" ) to array( "adverts_person", "adverts_email" )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘email confirmation’ is closed to new replies.