Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Customising Expired Download Link Message

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Customising Expired Download Link Message

Tagged: customise, download.php

  • This topic has 6 replies, 3 voices, and was last updated 13 years, 2 months ago by happyplankton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • March 20, 2012 at 5:07 am #5869
    happyplankton
    Member

    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

    March 20, 2012 at 7:08 am #43204
    Peter
    Member

    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

    March 20, 2012 at 6:13 pm #43205
    happyplankton
    Member

    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. :)

    March 20, 2012 at 9:20 pm #43206
    wzp
    Moderator

    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.

    March 21, 2012 at 1:41 am #43207
    happyplankton
    Member

    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.

    March 21, 2012 at 1:55 pm #43208
    wzp
    Moderator

    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.

    March 21, 2012 at 7:40 pm #43209
    happyplankton
    Member

    Awesome. I’ll try that soon. :)

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ