Report Content Plugin Not Displaying

This topic contains 8 replies, has 4 voices, and was last updated by  Guust 4 years, 11 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #526395

    Joseph Avery
    Free User
    Post count: 21

    The ‘Report Content’ plugin is not displaying even though the PHP snippet has been added to the Code Snippets plugin. Please advise.

    Our site: https://nexus.808nanny.com/places/category/attractions/

    Plugin we’re using: https://wpgeodirectory.com/docs/useful-plugins/#report

    #526404

    Guust
    Moderator
    Post count: 29970

    Those settings are for the old version of GD.
    For the new V2 version:

    Once installed select Reports > Settings from your WordPress admin menu, and under Integration Settings, set Add the report form to AUTOMATICALLY:

    The snippet for V1 refers to “geodir_details_main_content” which will need something else for V2, and I will get a developer to confirm what that should be.

    Thanks

    #526466

    Joseph Avery
    Free User
    Post count: 21
    This reply has been marked as private.
    #526504

    Alex Rollin
    Moderator
    Post count: 27815

    You should create that Report Content form with Ninja Forms. See the Ninja Forms doc for information about how to use replacement tags.

    #526653

    Kiran
    Moderator
    Post count: 7069

    Hi Joseph,

    1) Add following PHP snippet in theme functions.php file or via snippet plugin.

    
    
    /**
     * Show "Report Content" button on listing detail page.
     *
     * Add shortcode [geodir_wprc_report_submission_form] in listing detail template.
     *
     * See https://wpgeodirectory.com/docs/useful-plugins/#report
     */
    function geodir_wprc_report_submission_form( $attr, $content = null ) {
    	$html = '';
    
    	if ( geodir_is_page( 'detail' ) && function_exists( 'wprc_report_submission_form' ) ) {
    		ob_start();
    		wprc_report_submission_form();
    		$html = ob_get_clean();
    	}
    
    	return $html;
    }
    add_shortcode( 'geodir_wprc_report_submission_form', 'geodir_wprc_report_submission_form' );

    2) Add shortcode [geodir_wprc_report_submission_form] in listing details page template.

    Regards,
    Kiran

    #526809

    Joseph Avery
    Free User
    Post count: 21
    This reply has been marked as private.
    #526816

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #526832

    Joseph Avery
    Free User
    Post count: 21
    This reply has been marked as private.
    #526858

    Guust
    Moderator
    Post count: 29970

    That is not from any of our plugins, but from BuddyPress or BBpress.
    Please check with them. Thanks

Viewing 9 posts - 1 through 9 (of 9 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