How to Restrict user Once Listing is Published

This topic contains 24 replies, has 6 voices, and was last updated by  Paolo 8 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #57195

    Abhishek Modi
    Buyer
    Post count: 205

    Hi, I found one major issue regarding Listing Permission. As when user adds listing first time, It will go in draft and then approved by admin. But after that how can we remove edit & delete permission from specific users or all users. It would be an issue if they edit & add inappropriate information or delete( i know it will go in trash but still why this so). In other words admin have no control once it will be approved. As its difficult to check each & every listing everyday.
    Specially when you have huge listings.

    In simple is there a way it won’t show edit & delete once it will be approved by Admin ?
    or even if they change these need to be approved by admin to make changes in effect.

    Thanks

    #57203

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    you can easily remove the edit link from the detail page in GeoDirectory >> design >> detail >> Disable User Links section.

    and in GeoDirectory >> design >> navigation >> Show listing link in user dashboard, deselect everything. That way they will no longer be able to delete or edit.

    Thanks

    #57214

    Abhishek Modi
    Buyer
    Post count: 205
    This reply has been marked as private.
    #57217

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    if the link is not present anywhere on your website, they should not be able to access it.

    GeoDirectory doesn’t provide the option you are looking for, this was a possible workaround to accomodate your needs.

    Thanks

    #57220

    Abhishek Modi
    Buyer
    Post count: 205

    No issues paolo But it will be necessary in future. Otherwise we have no control on listings. Once Listing is Published user can edit it and add any adult content, spam content, advertising content. Atleast we need control on it.

    Thanks

    #57224

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    most websites out there use a “report this” system to get help from visitors, moderating their website content.

    Something like: https://wordpress.org/plugins/report-content/ that could be easily added with their php snippet to all listings:

    
    
    add_action( 'geodir_details_main_content', 'wprc_report_submission_form',60);
    

    Thanks

    #57230

    Abhishek Modi
    Buyer
    Post count: 205

    Thanks for the effort Paolo 🙂

    #58119

    serendipity
    Buyer
    Post count: 131

    I inform listing owners that they can manage listings from their own dashboard. I’m importing listings via csv and by default listings are published so that biz owners can claim listings and update with current info; hence, I want to avoid disabling User Links.

    I actually prefer the option of using the “Report Content” with the snippet you provided above.

    Still, I think that the admin should be notified of updates and randomly check updates. I doubt paid users would abuse the system but some free users would. I use a WPExternalLinks plugins with the “no external links” option to reduce abuse but you want visitors to know that your site is respectable. There’s a featured request for “stop words” and this will also help if implemented for reviews. All these little things add up to help keep the site clean.

    #66220

    Jenny Hebert
    Expired Member
    Post count: 155

    Where to add this in the plugin?

    #66221

    Jenny Hebert
    Expired Member
    Post count: 155

    add_action( ‘geodir_details_main_content’, ‘wprc_report_submission
    where should this ne added to get this plugin to work for me ?

    #66305

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    in your theme functions.php.

    Thanks

    #66307

    Jenny Hebert
    Expired Member
    Post count: 155

    does it matter where at? or can be anywhere on any line?

    #66311

    Jenny Hebert
    Expired Member
    Post count: 155

    This is what my child theme function php looks like?

    <?php
    /*#############################################
    HERE YOU CAN ADD YOUR OWN FUNCTIONS OR REPLACE FUNCTIONS IN THE PARENT THEME
    #############################################*/

    // Here we add the parent styles
    add_action( ‘wp_enqueue_scripts’, ‘whoop_child_enqueue_styles’ );
    function whoop_child_enqueue_styles() {
    wp_enqueue_style( ‘whoop-parent-style’, get_template_directory_uri() . ‘/style.css’, array(), GDF_VERSION);

    }

    error_reporting(E_ERROR);

    // Here we defind the textdomain for the child theme, if changing you should also replace it in the function below.
    if (!defined(‘WHOOP_CHILD’)) define(‘WHOOP_CHILD’, ‘whoop_child’);

    add_action(‘after_setup_theme’, ‘whoop_child_theme_setup’);
    function whoop_child_theme_setup(){
    // load_child_theme_textdomain( WHOOP_CHILD, get_stylesheet_directory() . ‘/languages’ ); // uncomment this if you plan to use translation
    }
    ?>

    #66313

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    it doesn’t really matter as long a it is after the opening php tag

    <?php

    and before the closing one

    ?>

    For example you could paste it between:

    
    
    #############################################*/
    

    and

    
    
    // Here we add the parent styles
    

    Thanks

    #66360

    Jenny Hebert
    Expired Member
    Post count: 155

    ok i got it to work, but when i use it and make it go to top or bottom of listing it takes over the side bar and all the listing information and business hours goes all the way to the bottom of the page,

Viewing 15 posts - 1 through 15 (of 25 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount