All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.


Author Topic: Problem with /downloads/ and permalinks  (Read 997 times)

0 Members and 1 Guest are viewing this topic.

Offline iMiKE

  • Newbie
  • *
  • Posts: 5
  • Senior Downloader
    • View Profile
Problem with /downloads/ and permalinks
« on: 30 June 2009, 05:01 »
Hello all!

I have such a problem: can't access Downloads page.

I have installed WP-DM 1.5 on my WP2.8, tuned option of WP-DM, created page "Downloads" with "[page_download]" content. New page with downloads content appeared at list of my pages - awesome! But when I try to access to this page via http://www.site/downloads - 404 error appears.

My settings:
WP Permalinks:
Default     http://www.site.ru/?p=123

WP-DM:
Download Page URL: http://www.site.ru/downloads
Download Nice Permalink:       Yes
- http://www.site.ru/download/1/
- http://www.site.ru/download/filename.ext

Use File Name Or File ID In Download URL?       File ID
- http://www.site.ru/download/1/
- http://www.site.ru/?dl_id=1

In list of all pages link to Downloads is like http://www.site.ru/?p=457

On "add new page" when I write "Downloads" in page title, generated permalink with edit link do not appears. I can see permalink when I save and edit this page.

Please, help me to use very nice plugin WP-DM properly.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Problem with /downloads/ and permalinks
« Reply #1 on: 30 June 2009, 06:07 »
If you are using ?p=something, your downloadpage will not be http://www.site.ru/downloads and you cannot use nice permalink.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iMiKE

  • Newbie
  • *
  • Posts: 5
  • Senior Downloader
    • View Profile
Re: Problem with /downloads/ and permalinks
« Reply #2 on: 30 June 2009, 06:46 »
So, there are 2 possible solves:
1. Use WP permalinks like
Day and name     http://www.site.ru/2009/06/30/sample-post/
or Month and name    http://www.site.ru/2009/06/sample-post/
or Numeric    http://www.site.ru/archives/123
or Custom Structure

And then use NICE WP-DM permalinks with /downloads page

2. Use ?=123 WP permalinks WITHOUT nice WP-DM permalinks, with
- http://www.site.ru/?dl_id=1
- http://www.site.ru/?dl_name=filename.ext
In that case my downloads page would me smth like ?=457

But I can make a index.php file in manually created /downloads directory with including ?=457 page (iframe) and all should ne fine, isnt'it?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Problem with /downloads/ and permalinks
« Reply #3 on: 30 June 2009, 07:08 »
I have no idea on that iframe part as I did not test it, maybe you can test it and let me know. But I don't think it will work.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iMiKE

  • Newbie
  • *
  • Posts: 5
  • Senior Downloader
    • View Profile
Re: Problem with /downloads/ and permalinks
« Reply #4 on: 30 June 2009, 10:03 »
it's easy as 1-2-3

1. Create /downloads directory in root of your site directory
2. Create index.php file with content:

Code: [Select]
<?php $data file_get_contents('http://www.site.ru/?page_id=11'); echo $data?>

where page_id = id of page with downloads content (you can get it from page permalink)

P.S. All links/images/etc in http://www.site.ru/?page_id=11 page must be with abs.path

It would be nice if you include such a feature in next releases of your plugin

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Problem with /downloads/ and permalinks
« Reply #5 on: 30 June 2009, 10:51 »
Nice hack =)

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline iMiKE

  • Newbie
  • *
  • Posts: 5
  • Senior Downloader
    • View Profile
Re: Problem with /downloads/ and permalinks
« Reply #6 on: 30 June 2009, 11:30 »
Yepp, thanks  :D
Maybe I can be somehow useful in addition such a feature in next releases of your plugin?

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,536
    • View Profile
  • WordPress Version: WordPress 2.9.x
  • Theme Name: lesterchan.net v3.4
Re: Problem with /downloads/ and permalinks
« Reply #7 on: 30 June 2009, 11:34 »
Hmm I think this is more of a hack/workaround to emulate the download URL instead of using nice permalink. I don't foresee how can this be implemented into the plugin. And not many host allows file_get_contents from a URL from what I know.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.