pending_approval.php is listed in https://eventespresso.com/wiki/template-glossary/ which implies it can be copied to the uploads/espresso/templates directory and modified there. However I’m not seeing my changes to that file reflected in the front-end.
it just seems to require pending_approval.php from the EVENT_ESPRESSO_PLUGINFULLPATH / templates directory, where as most other places templates are pulled in, the code looks something like this:
[code language=”php”]
// Pull in the template
if (file_exists(EVENT_ESPRESSO_TEMPLATE_DIR . "confirmation_display.php")) {
require_once(EVENT_ESPRESSO_TEMPLATE_DIR . "confirmation_display.php"); //This is the path to the template file if available
} else {
require_once(EVENT_ESPRESSO_PLUGINFULLPATH . "templates/confirmation_display.php");
}
[/code]
I can’t find any reference in the code to EVENT_ESPRESSO_TEMPLATE_DIR in conjunction with pending_approval.php.
Has anyone managed to override the default by modifying pending_approval.php in the uploads/espresso/templates directory?
This topic was modified 10 years, 10 months ago by Daniel Smith.
This topic was modified 10 years, 10 months ago by Daniel Smith.
This topic was modified 10 years, 10 months ago by Daniel Smith.
This topic was modified 10 years, 10 months ago by Daniel Smith.
Thanks for reporting. This has been fixed in the development that’s under development that will be released as Event Espresso 3.1.37.P. The code starting on line 83 of pending_approval_page.php now reads:
The support post ‘Does pending_approval.php work from uploads/espresso/templates ?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.