TinyPortal

Development => Support => Topic started by: ApplianceJunk on June 12, 2008, 01:53:14 PM

Title: Download manager not active error page?
Post by: ApplianceJunk on June 12, 2008, 01:53:14 PM
SMF 1.1.5, TP 0.9.8, DilberMC

Months ago we used the download manager, but have it turned off now. People are still finding links to things we had in the download manager.

When someone clicks a old link to something we had in the download manager they see a page that say's

QuoteAn Error Has Occurred!
The Download Manager is not active. 

and I get this error in our log.

QuoteGuest   Today at 06:38:04 AM 

64.124.85.75     572913007a7c6e14f9b988f84e6b9e0f 

http://appliancejunk.com/forums/index.php?action=tpmod;dl=item44 

The Download Manager is not active.

Can I set it up so when the download manager is turned off like it is now and users click a old link like the link above they get taken the this page instead?

http://appliancejunk.com/forums/index.php

Thanks,
AJ
Title: Re: Download manager not active error page?
Post by: IchBin on June 12, 2008, 02:41:22 PM
Hosts usually have some feature that will allow you to redirect any URL to a certain place. Look in your cpanel for redirects or something like that.
Title: Re: Download manager not active error page?
Post by: ApplianceJunk on June 12, 2008, 03:22:08 PM
We use to have a lot of items in the download manager, so there are a lot of URl's like the above example, but with different items numbers.

Doing it in cpanel as you suggested, would I not have to add each and every URL that was used for each item that was in download manager?

Title: Re: Download manager not active error page?
Post by: IchBin on June 12, 2008, 07:47:19 PM
I don't think so. You can redirect anything with a certain part of a URL. So anything with index.php?action=tpmod;dl could be redirected to www.yoursite.com
Title: Re: Download manager not active error page?
Post by: Lesmond on June 12, 2008, 08:34:38 PM
I have been into cPanel and tried it, all I get is an error.

QuoteThe page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

Not sure what is going on there, but I will look into it more, unless anyone has another suggestion ::)
Title: Re: Download manager not active error page?
Post by: IchBin on June 12, 2008, 11:45:55 PM
Maybe using an SMF function could do it as well. Possibly putting this in the your index.template.php file may do what you want. Just remember it will always redirect you even if you turn the download manager back on.

if (isset($_GET['dl']))
    redirectexit();
Title: Re: Download manager not active error page?
Post by: ApplianceJunk on August 30, 2008, 11:05:05 PM
Quote from: IchBinâ,,¢ on June 12, 2008, 11:45:55 PM
Maybe using an SMF function could do it as well. Possibly putting this in the your index.template.php file may do what you want. Just remember it will always redirect you even if you turn the download manager back on.

if (isset($_GET['dl']))
    redirectexit();

What part of the index.template.php would I put that in?

Thanks,
Title: Re: Download manager not active error page?
Post by: ApplianceJunk on August 30, 2008, 11:24:35 PM
I added it to the end of the index.template.php file.
That seems to do the trick I was looking for.

Now if  you find a link like this in google it takes you to the forum index page.

http://appliancejunk.com/forums/index.php?action=tpmod;dl=item44 

Going to mark this one solved.

Thanks for all the help