Improve Downloads Manager plugin to support Joomla updates

  • Jakub
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #115425 by Jakub
Hello,

Improve Downloads Manager plugin to support Joomla updates

It only affect customers use Membership Pro to sell Joomla extensions. Now, Membership Pro offical built-in support for Downloads Managers plugin so that you can provide Joomla! updates for your extensions. Document will come separate later.


How can I make it work? Can you give me some clues? I can't find any documentation.

Regards

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 9 months ago #115429 by Tuan Pham Ngoc
Hello

Please read documentation at membershipprodoc.joomservices.com/advanc...joomla-update-system

Hopefully, it will work OK for your need . To be honest, I haven't spent much time on that implementation as it seems not many customers need it (only one or two so far)

Tuan

Please Log in or Create an account to join the conversation.

  • Jakub
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #115430 by Jakub
Thank, you for the answer.

This feautre is really important for me because I am planning to sell extension for Joomla CMS.

I will let you know if everythning works as it should.

Regards!

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 9 months ago #115433 by Tuan Pham Ngoc
OK Jakub. Hope it will work well for you

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 9 months ago #115434 by Tuan Pham Ngoc
And happy to spend time to improve it if it's needed.

Tuan

Please Log in or Create an account to join the conversation.

  • Jakub
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #115436 by Jakub
Hello again,

I have done some test. My results:

1. After clicking on the 'Process' button at the Download ID menu, redirects to the blank page. Same as on the backend while trying to delete the download ID number.

/administrator/index.php?option=com_osmembership&view=downloadids


2. Domain field stays empty. Why? How can I edit this field?


3. When I trying upgrade extension through the Joomla updater I got few errors:
Code:
Warning Error connecting to the server: 403 Error Failed to download package. Download it and install manually from http://localhost/index.php?option=com_osmembership&task=download_update_package&document_id=168.

When I visit the above url:
Code:
403 - Invalid Domain


I also have a question. Is this possible to allow users with a specific plan to generate a specific number of ID's?
eg:
  • Plan 1 - Can generate 1 ID
    Plan 2 - Can generate 3 ID's
    Plan 3 - Unlimited

Thank you

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 9 months ago #115465 by Tuan Pham Ngoc
Hello

1. There were some small errors in the code. I fixed it and will included in the next version of the extension. For now, please submit a support ticket so that I can send this version to you

2. Domain is recorded automatically by the system when there is an update request from client website. It's something could not be edited. The point is each download id can only be used for one domain only

3. Make sure you have published installer plugin. Also, enter a valid Download ID into the plugin parameter, publish it. After that, try again, it should work

4. Unfortunately, it's not possible. As you know, Joomla doesn't allow you to limit number of websites a client can install and use your product, so we could not put this limitation. Basically, they can generate any number of Download IDs they want

Tuan

Please Log in or Create an account to join the conversation.

  • Jakub
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #115467 by Jakub

Tuan Pham Ngoc wrote: Hello

1. There were some small errors in the code. I fixed it and will included in the next version of the extension. For now, please submit a support ticket so that I can send this version to you

2. Domain is recorded automatically by the system when there is an update request from client website. It's something could not be edited. The point is each download id can only be used for one domain only

3. Make sure you have published installer plugin. Also, enter a valid Download ID into the plugin parameter, publish it. After that, try again, it should work

4. Unfortunately, it's not possible. As you know, Joomla doesn't allow you to limit number of websites a client can install and use your product, so we could not put this limitation. Basically, they can generate any number of Download IDs they want

Tuan


Thank you for the response!

I just opened a ticket.

Ad 3. The installer plugin is turned on and the Download ID is also there but I still get the error. What about user's plan is expired? Is he get any message about that?

Regards

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
6 years 9 months ago #115470 by Tuan Pham Ngoc
Unfortunately, he won't get any error message (I don't know a way to show a message better message base on subscription status...)

For installer plugin turned on and the Download ID is not there, I don't know why it doesn't work. Maybe you can try to debug the code in the installer plugin code

There is a line like this

$url = $uri->toString();

Try to echo the value of that $url variable, then die(); and check to see what's the real value of that URL? It will help debugging the issue easier

Tuan

Please Log in or Create an account to join the conversation.

  • Jakub
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 9 months ago #115490 by Jakub
Hello

Everything seems to be working properly right now. The issue was caused by my mistake in the installer plugin code.

The only and one problem at this moment is that the 'Subscription Complete' message stays blank. How can I fix this?

Regards

Please Log in or Create an account to join the conversation.