How to Restrict user Once Listing is Published
This topic contains 24 replies, has 6 voices, and was last updated by Paolo 8 years, 11 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: #GeoDirectory, abuse, content, report
-
AuthorPosts
-
October 16, 2015 at 2:15 pm #57195
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
October 16, 2015 at 4:09 pm #57203Hi,
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
October 16, 2015 at 4:57 pm #57214This reply has been marked as private.October 16, 2015 at 5:02 pm #57217Hi,
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
October 16, 2015 at 5:12 pm #57220No 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
October 16, 2015 at 5:30 pm #57224Hi,
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
October 16, 2015 at 5:47 pm #57230Thanks for the effort Paolo 🙂
October 27, 2015 at 6:10 am #58119I 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.
January 2, 2016 at 9:09 am #66220Where to add this in the plugin?
January 2, 2016 at 9:25 am #66221add_action( ‘geodir_details_main_content’, ‘wprc_report_submission
where should this ne added to get this plugin to work for me ?January 2, 2016 at 4:48 pm #66305Hi,
in your theme functions.php.
Thanks
January 2, 2016 at 4:53 pm #66307does it matter where at? or can be anywhere on any line?
January 2, 2016 at 5:02 pm #66311This 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
}
?>January 2, 2016 at 5:11 pm #66313Hi,
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
January 3, 2016 at 11:37 am #66360ok 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,
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket