Membership Plugin

WordPress Membership Plugin

  • Home
  • Documentation
  • Addons
  • Support
    • Quick Setup
    • Documentation
    • Premium Addon Support
    • Paid Support
    • Support Forum
    • Support Forum Search
    • Forum Login
    • Forum Registration
  • Contact

[Resolved] For the Member Directory plugin, can I overwrite template-2.php?

Simple Membership Plugin › Forums › Simple Membership Plugin › For the Member Directory plugin, can I overwrite template-2.php?

Tagged: Member Directory Listing

  • This topic has 1 reply, 2 voices, and was last updated 2 years, 3 months ago by The Assurer.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 1, 2024 at 8:36 pm #27652
    Mason
    Participant

    I’m trying to setup a member directory for a client, but I’d really prefer if it output as a table instead of a grid of divs. I purchased your Member Directory LIsting plugin, and my first thought was to rewrite the output with javascript, but then I noticed that you have template-1.php and template-2.php. Ideally, I’d like to create a template-3.php, but that would involve changing other parts of your code which seems like a bad plan when you next update your code.

    So is it safe to overwrite template-2.php, is that file very static? Or, better yet, is there any chance you could change this code in ‘swpm_mda_show_listing.php’ from:
    if ( isset( $params[ ‘template’ ] ) && $params[ ‘template’ ] == ‘2’ ) {
    include_once(SWPM_MDA_PATH . ‘/views/template-2.php’);
    } else {
    include_once(SWPM_MDA_PATH . ‘/views/template-1.php’);
    }
    to:
    if ( isset( $params[ ‘template’ ] ) && $params[ ‘template’ ] != ‘1’ ) {
    include_once(SWPM_MDA_PATH . ‘/views/template-‘.$params[ ‘template’ ].’.php’);
    } else {
    include_once(SWPM_MDA_PATH . ‘/views/template-1.php’);
    }

    Or do you have another suggestion? I worry using Javascript would still not be very future proof.

    February 2, 2024 at 2:37 am #27653
    The Assurer
    Moderator

    The Member Directory Listing Addon is eligible for Premium Addon Support. Please create a Premium Addon Support ticket and a developer will contact you:
    https://simple-membership-plugin.com/premium-addon-support/

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

Please read this message before using our plugin.

Search

Featured Addons and Extensions

  • Membership Form Builder Addon
  • Member Directory Listing Addon
  • WooCommerce Payment Integration
  • Member Data Exporter Addon

Documentation

  • Documentation Index Page

Copyright © 2026 | Simple Membership Plugin | Privacy Policy