Simple Membership Plugin › Forums › Simple Membership Plugin › Views Template Files for Forms
Tagged: template files
- This topic has 8 replies, 4 voices, and was last updated 8 years ago by
mbrsolution.
-
AuthorPosts
-
August 23, 2016 at 11:00 pm #7963
echo
ParticipantHow do we go about creating template files to override the views?
I have a directory and file in my theme, simple-membership/edit.php however changes to this file don’t override the views/edit.php
What am I missing?
August 24, 2016 at 12:58 am #7964echo
ParticipantIn addition, I’m able to override the login.php file this way, but not the edit.php file.
Is this template file not customizable in this way?
August 24, 2016 at 2:53 am #7966mbrsolution
ModeratorHi, currently the plugin does not cater for the customization of the template files you want to makes changes too as far as I know.
August 24, 2016 at 4:15 pm #7968echo
ParticipantReally? Not even with the filter hook, swpm_load_template_files ?
August 24, 2016 at 4:42 pm #7969echo
ParticipantIn the class.swpm-utils-template.php it says,
//Filter hook to allow overriding of the template file path
$template_files = apply_filters( ‘swpm_load_template_files’, $template_files, $template_name);How do we use this hook?
August 27, 2016 at 2:41 am #8021admin
KeymasterAt the moment only the login widget and the forgot password template can be overridden using that hook.
I will make a change so the edit profile template file is also loaded using that same mechanism so it can be overridden using that hook. It will be available in the next release.
August 27, 2016 at 5:40 pm #8033echo
ParticipantThat would be great!
I think what would be nice is the ability to override any of the templates that push out forms.
That way you can really customize the forms.
I look forward to the next release!April 16, 2018 at 10:38 pm #14147d2dmike
ParticipantHi Support, has the ability to place the templates in the theme directory been fully implemented? I’m trying to make changes to the simple-membership/view/add.php by placing a copy in my theme theme-folder/simple-membership/add.php. This method seems to work for most of the other files but not add.php. Is there any way to make this possible? Thanks!
April 17, 2018 at 2:53 am #14149mbrsolution
ModeratorHi @d2dmike, can you start a new support thread. This thread is very old. In regards to the following comment by @admin above.
I will make a change so the edit profile template file is also loaded using that same mechanism so it can be overridden using that hook. It will be available in the next release.
That was added in version 3.3.2, see the note below.
3.3.2
You can now view a member’s last accessed date and time value by editing the member’s profile from the admin dashboard.
The “Registration Successful” message can now be customized using the custom messages addon.
The edit profile template file can now also be overridden using the swpm_load_template_files filter.
Updated the Dutch language translation file.
Added Estonian language translation file.
Updated the Stripe payment gateway library to the latest version.Thank you
-
AuthorPosts
- You must be logged in to reply to this topic.