- This topic has 18 replies, 9 voices, and was last updated 7 years, 11 months ago by .
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › Adding custom html to the message displayed on protected content
Tagged: protected content
I see these post are 4 and 5 years old…is there a better way to allow custom messages than editing the plugin files now? My client wants to protect entire pages/posts and have h2 tags, specific layouts with custom text and the login form to be a part of the protected message. If I do these updates in the eMember_auth_utils.php and/or eng.php Will they not get overwritten by next plugin update?
What your client wants can’t be done without code modification. Please check our plugin demo again which shows how the plugin’s protection message works. Also, the video tutorial shows you how the plugin works:
https://www.tipsandtricks-hq.com/wordpress-membership/
Whatever you don’t see there will need to be customized.
And if I edit these eMember_auth_utils.php and/or eng.php files, they will get overwritten when an update is released, correct?
There really should be a better way to edit these messages — a meta box in the WP editor, or checking for a file in the theme directory (like BBPRESS does) or something.
Thanks for the input.
And if I edit these eMember_auth_utils.php and/or eng.php files, they will get overwritten when an update is released, correct?
Until such a time, as plugin developers (including us) start storing customizations directly in the WP database, or some kind of “Windows-like registry,” any customizations stored in the plugin directory are subject to the possibility of being overwritten.
As a small business owner, it is your responsibility to “wear many hats,” including that of IT Department. The following is a good discussion of what you must do, when updating a customized plugin installation:
https://support.tipsandtricks-hq.com/forums/topic/upgrading-the-plugin-what-exactly-will-be-lost