Preserve changed file after update

This topic contains 8 reply and 7 voices, and was last updated by Duncan 10 years, 1 month ago
Viewing 8 Posts - 1 through 8 (of 8 total)
Author Posts
July 16, 2014 at 11:02 pm 23676
Duncan Hi, I love the plugin so far, makes my development work a lot easier. I want to change the dashboard view (called by [wpuf_dashboard], and I found that that the layout is stored in /templates/dashboard.php. I have changed this file and it works perfectly, however is there any way I can make an override version of the file, so that when WPUF updates, it won't get overwritten and I don't have to manually upload dashboard.php again? I'm talking about something like how EDD does it https://easydigitaldownloads.com/docs/customizing-the-checkout-cart-template/ - create a new folder and put the override files in it. I've searched the forums and can't find any answer, sorry if I missed it. Thanks!
July 17, 2014 at 3:58 pm 23712
Sk Sk

Hello mattesar,

1. Create a folder name as our plugin name (WPUF/WP-User_Frontend) on your theme.
2. Create the directory and the file (/templates/dashboard.php) in that folder.

This file will replace plugins dashboard template.

Thank you

July 17, 2014 at 6:02 pm 23721
mattesar mattesar

Awesome, thanks! 🙂

July 19, 2014 at 8:34 pm 23780
John John

I’ve being trying to get this to work without success.
I have a modified wpuf-functions.php and render-form.php

I tried the following:

/themes/tewntytwelve-child/WPUF/WP-User_Frontend/class/render-form.php
/themes/tewntytwelve-child//WP-User_Frontend/class/render-form.php
/themes/tewntytwelve-child/WPUF/wp-user-frontend-pro/class/render-form.php
/themes/tewntytwelve-child/wp-user-frontend-pro/class/render-form.php

Maybe this only works for template files?

July 20, 2014 at 12:26 pm 23792
Sk Sk

Hello John,

Please don’t try this for wpuf-functions.php and render-form.php

Thank you

August 19, 2014 at 4:35 am 25475
Harsha Harsha

Hi, I tried creating a folder in my active theme and it did not use the modified template files. My plugin folder for WP User Frontend Pro is “wp-user-frontend-pro” and I created the following folder structure inside my theme directory: “/wp-user-frontend-pro/templates/dashboard.php”. With this it does not appear to use the custom template file. Any suggestions on why would be appreciated. Thanks in advance.

August 21, 2014 at 5:42 pm 25646
Sekander Badsha Sekander Badsha

Hello Harsha,
Did you copy-pasted our file on your directory? or made one from scratch?

August 23, 2014 at 2:04 am 25688
Aaron Aaron

You need to create a Folder named ‘wpuf’ in your theme folder (use LOWERCASE folder name wpuf) and then put ‘dashboard.php’ or any other template file in there. Do not create ‘template’ folder.

Hope this helps everyone!

October 21, 2014 at 5:24 pm 28815
Duncan Duncan

Thanks for that I was going round in cicles – contrary to other answers Aaron is correct – you need to create a Folder named ‘wpuf’ in your theme folder (use LOWERCASE folder name wpuf) and then put ‘dashboard.php’ or any other template file in there. Do not create ‘template’ folder.

Viewing 8 Posts - 1 through 8 (of 8 total)