News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Custom script to collect download satisfaction survey

Started by uscucedd, 31.03.2015 21:03:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

uscucedd

Forum experts,

I am brand new to jDownloads.  I chose it because it integrated so easily with my Joomla site.  I would like to add some functionality to it, and don't know if it's possible to do so:

I want my users to be able to download my documents at will.

1. When a user clicks on a download link, I would like to have a pop-up screen ask them if they would be willing to participate in a delayed satisfaction survey 3 months later.
2. If they want to participate in the survey, I want the form to collect their email address and store it in a database.  Then, take the user directly to the document download and track download acitivity.
3. If they don't want to participate in the survey, then take them directly to the document download, and track download activity as usual.
4. Then run a cron job that scans the database for download activity 3 months ago, and send those people an email with a link to the GoogleDocs survey.

FYI, I also have CiviCRM connected in my Joomla site.  Don't know if the emails would/could be collected in that database, but that would be even better.

Can this be done?  And if it can't be done exactly, any existing jDownloads functionality that allows me to come close to this?

Thanks very much for your time and input,

Michelle
  •  

ColinM

Hi Michelle,
Your needs are quite spe***ed!  Obviously allowing public access to download is straight forward.  The rest is not so simple but one thing you can get isan email sent to you for each download. You can also put in some explanatory text in the category.  Further you can have custom questions that the user can fill in.  So the basic mechanisms to collect whether a downloader wants to participate later are in place.  There are also the ability for the user to rank the download immediately and to use jComments to add comments.

Creating an sql query to examine the jDownload tables to find those that had said Yes and supplied an email address is relatively straight forward but would need another facility but it could be done mannualy as well, particularly if you have a cPanel based server.  One could also have a hidden field that you could change when a survey sent or returned.

If you think the above could be useful please reppost and I will fill in some details.

Colin

Colin M
  •  

uscucedd

Thanks, Colin!

I think I understand what you are saying: create custom questions to collect the user's email address and whether or not they agree to be surveyed.  Then later, process those opt ins and send them the survey link.

1. Where does the answer to the custom questions get stored?
2. If I create custom questions, are they mandatory, or can they be optional (i.e. email address field)
3. Yes, please share details on how to do this.  I know a bit about custom fields in the download description.  But I don't know anything about how to ask users questions.

Gratefully,

Michelle
  •  

uscucedd

Hi Colin,

I am still trying to figure this out. I would greatly appreciate your suggestions.

Thanks!

Michelle
  •