Support » Plugin: WPAdverts - Classifieds Plugin » Edit and delete posts.

  • Hi,

    I have a question whether the latest version of the Plugin was able to allow “non-logged in users” to edit or delete their posts? Almost a year ago, you mentioned that you will soon launch in future versions. I am very waiting for this function to be included in the plugin.

    Thank you !!!

Viewing 10 replies - 16 through 25 (of 25 total)
  • chauthong

    (@chauthong)

    Hi,

    When the user “has not registered” posted the ad. And when the ad is in “pending” status, the author of that post is blank. After the administrator has approved the post, the author of that post is the admin, not the person who posted the ad. That is the cause of the problem. Is there any way to fix it?

    Thank you!

    Plugin Author Greg Winiarski

    (@gwin)

    I cannot seem to replicate this issue.

    Do you have a Payments Module or WooCommerce Integration enabled? also what value does the “Author” box have?

    Saving the Ad while “Author” value is empty should not set any post author, if it does then it might be a conflict with some other plugin, you can try disabling them one by one and seeing if and when the problem goes away.

    chauthong

    (@chauthong)

    Hi Greg Winiarski,

    I have enabled the Payments Module, and there is only one author box.

    It works well with shortcodes [adverts add]. But there was a problem with ads awaiting admin approval [adverts_add moderate = “1”]. When the ads are in “pending” status, the author section is blank. But after the admin publishes the ad, the author is the name of the admin who approved the ad. Therefore, users cannot edit and get the error “You do not own this Ad”. Could you please try the same as my case? (I have hidden the ‘Account’ section with the Create an account checkbox … and I do post ads with unregistered users)

    Thank you!

    • This reply was modified 2 months ago by chauthong.
    • This reply was modified 2 months ago by chauthong.
    • This reply was modified 2 months ago by chauthong.
    Plugin Author Greg Winiarski

    (@gwin)

    I will try to replicate this issue on my dev site and let you know, but so far i did what you described and the author does not seem to be changing for me.

    Can you additionally let me know what plugins you have enabled on site?

    Hi Greg Winiarski,

    I realized that this problem only occurs when I post ads with emails that have not been previously registered. If you post an ad without logging in with a previously registered member email, it will still work. This means that you must be a registered member before you can use the “post ads without logging” function. The plugin does not appear to fit the “post ads without registration” function.

    In the form of adding ads, Is there a way to remove the function “(password will be emailed to you) or Sign In”. I just want to keep the “Create an account for me so I can manage all my ads” functionality. Because in this case, when users post ads, edit and delete without logging in, there is no need for passwords and links leading to the login page. I think this will solve the problem. Or can you add, delete or edit ads without logging in and signing up?

    Thank you!

    • This reply was modified 1 month, 4 weeks ago by chauthong.
    Plugin Author Greg Winiarski

    (@gwin)

    Hmm i still cannot seem to replicate it, do i need to be logged-on or logged-out while posting from [adverts_add]? i did the following:

    1. while logged-out checked “Account” checkbox in [adverts_add] and used an email address which is not used yet in wp-admin / Users panel.
    2. the Ad was saved as Pending.
    2. from wp-admin / Classifieds panel i edited the Ad and clicked Published

    what am i missing here?

    The phrase Create an account for me so I can manage all my ads from one place (password will be emailed to you) or Sign In you can customize using a plugin like Say What? https://wordpress.org/plugins/say-what/

    In the Say What? you would need to enter a new phrase with these settings:
    Original String: Create an account for me so I can manage all my ads from one place (password will be emailed to you) or <a href="%s">Sign In</a>
    Text Domain: ‘wpadverts’
    Text Context: leave empty
    Replacment String: your custom string here

    Hi Greg Winiarski,

    Please let me know: after the ad is posted. The “author” column is in the wp-admin / Classifieds panel, is it blank or has a username? (filled in at the time of adding ads)

    I have removed the “Account” checkbox in [adverts_add] since I installed this Plugin. With the code you provided:

    // Wp-Adverts Hide the ‘Account’ section
    add_filter( "adverts_form_load", "hide_adverts_account_field" );
    function hide_adverts_account_field( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "_adverts_account" ) {
            unset( $form["field"][$key] );
        }
      }
      return $form;
    }

    It seems that when i removed the “Account” section and the checkbox for this to occur. Because the “Create an account for me so I can manage all my ads from one place (password will be emailed to you)” function will not work so no members will be created which is the reason for the ” author is empty ”

    Thank you!

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    when i finish posting an Ad from page with [adverts_add] shortcode then in wp-admin / Classifieds panel the Author column is empty.

    I was finally able to replicate the issue, but only when there is some JavaScript error on site.

    Can you create an Ad and then (using Chrome) go to wp-admin / Classifieds panel edit the Advert and press Ctrl + Shift + i, it will open a developer console and will show a JavaScript error if any. Then please take a screenshot and paste a link to it here (or send via contact form at https://wpadverts.com/contact/ if you do not want to make it public).

    Hopefully, this will get us closer to a solution :).

    Hi Greg Winiarski,

    I tried on another site but still had the same problem. I have sent a screenshot to your contact url.

    Thank you!

    • This reply was modified 1 month, 3 weeks ago by chauthong.
    Plugin Author Greg Winiarski

    (@gwin)

    Thanks i received your message i will reply to you via email.

Viewing 10 replies - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.