- This topic has 6 replies, 3 voices, and was last updated 12 years, 8 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- 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 eStore Forum › WP eStore General Questions › Customising Expired Download Link Message
Tagged: customise, download.php
I’m aware of changing the ‘Expired Link’ message inside download.php, but is it possible to change it to something more consistent with my website and something more ‘friendlier’?
Thanks
Hi,
Please the see the following post which will explain how you can customize the message:
https://support.tipsandtricks-hq.com/forums/topic/customize-link-expired-message
Peter,
I posted that link in my original post and am aware of it.
I want to skin the error message to be more in line of my site layout and not as a BSOD.
Thanks.
The BSOD format is used because, the download.php script executes outside of the WordPress environment.
A rough outline of what you must do, to “skin” the error messages is…
* Create a custom WordPress, or HTML page for the desired error messages.
* Find the point, in download.php where the “standard BSOD” message you want to replace is invoked.
* Insert a page redirect to the “skinned” error message page.
Cool.
How do you go about inserting the page redirect into download.php? I know the error I want to modify is ESTORE_DLVS_LEX.
In the download.php file, replace the following line:
eStore_dlvs::error(ESTORE_DLVS_LEX, FALSE);
With the following line, redirecting the user to your “skinned” error message:
header(“Location: http://YourSite.com/Errors/ExpiredMilk.html”);
It is best if the redirected page is a simple HTML page, and not a WordPress page. Otherwise, the user is forced into loading the WordPress environment, just to see your error message.
Awesome. I’ll try that soon.