• Resolved Jose Bra?a

    (@tuttopia)


    My problem is that when someone requests the publication of an ad, before being published needs the approval of the administrator (to avoid the publication of erroneous or conflicting data) and so I want it to be. However, after being posted the user can go to their ad control panel from the frontend and edit their ad (thing I want) but then it does not need to be approved again that modification by the admin (and there they could for example upload To the web conflicting photos). Is it possible that after editing an ad it is necessary to approve the modified ad before being published again by the administrator?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor jonryan

    (@jonryan)

    @tuttopia this is an interesting question. You can disable the edit function by using the job_manager_user_can_edit_job hook.

    Otherwise you will need to add something that hooks into the job submission process that always changes the status to approval required. I do think that if approval is turned on someone should not be able to edit it after that. Do you want to post that suggestion on our Github repo? https://github.com/Automattic/WP-Job-Manager/issues

    I have ran across this problem as well.
    The theme has an admin approval function that when used, requires new ads & edits to be approved. If you do not want edits to have to be approved – you can change the php to “publish” – but, this opens up a problem for the client can create a new ad – immediately edit the ad – and, have the ad live without any approval at all.

    I have been going round & round with the theme author about this… The staff obviously has no idea how to fix it… I offered up the idea of using a draft (copy recordset) theory which should work… Since, I am running my own business, I do not have time to write the code… and try to make it work with hers…

    Please let me know if you came up with a solution… I would think someone out there has a better approval setup.

    Below is what I sent her.

    If $new_status=’pending’ – the edited ad is pulled off the active list because it is not yet approved by admin
    If $new_status=’publish’ – the edited ad is on the list with changes made without aprroval by admin – but, creates a problem if a new ad is created & immediately edited – the ad can be published without any approval from admin

    So, if we can change the edit function

    Example (obviously, fields etc are not what is currently there – but, you will get the idea)

    The users currently running ad = user_current_Ad_ID =’487′

    …user selects edit

    1) Create a new ad and copy all the fields, expiration dates, attachments, etc of user_current_ad_ID=’487′
    user_current_ad_ID=’506′ is created with exact same contents of ‘487’

    2) user_current_ad_ID=’506′ will enter the edit funtion – this is the ad user will edit
    user_current_ad_ID=’506′ $post_status=’pending’ – Ad is held for approval
    user_current_ad_ID=’487′ is still on the active list with no changes completed

    3) admin approves edited ad 506
    user_current_ad_ID=’487′ = contents of user_current_ad_ID=’506′

    4) user_current_ad_ID=’506′ = delete

    Changes are approved with admin approval & the ad never left the active list.

    This should work… (I know – may be a bit of coding) but, please tell me why it would not work…”?”

    I am also having an issue with this theme’s membership vs pay per listing code… There should be a better option of “pay per listing with distinct price, time frame, and amount of photos, etc”… but… nooooo… they don’t do that customization.

    Plugin Contributor jonryan

    (@jonryan)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Approve “Edit” Listing’ is closed to new replies.