Welcome, Guest
Please Login or Register.    Lost Password?

Download only after email has been submitted
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Download only after email has been submitted
#192
Download only after email has been submitted 4 Years, 6 Months ago Karma: 0
Hi all,

I have some links on my site to pdfs for browsers to download. After a link is clicked I'd like a box to pop up that requests a users email address, the download won't start until it is entered.

Anyone know a simple way of doing this?

Thanks!

J
johnmc
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#218
Re:Download only after email has been submitted 4 Years, 6 Months ago Karma: 12
Sorry can't help, unless you know javascript I don't think there is an easy way of doing this. Pop ups require javascript functions to be called on event like
<a href="*****" id="pop" onClick="ShowPopup(this)" />
And to validate a email you'd need some functiobn involving statments like (^.)$@
Then after that you could go document.write.link(to download area)

If you're feeling game I can't point you in the direction of some great javascript popup tutorials.
Bambi
Moderator
Posts: 343
graphgraph
User Offline Click here to see the profile of this user
Gender: Male bambii7@msn.com Location: New Zealand Birthday: 12/21
The administrator has disabled public write access.
 
#219
Re:Download only after email has been submitted 4 Years, 6 Months ago Karma: 0
Thanks for getting back to me, I was wondering if anyone would.

I was really suprised that a module for this job isn't available - it must be a fairly common site feature. I had a look at docman, but couldn't make head nor tale of it - with very poor documentation for a newbie like me.

I actually think I have fudged a method myself without javascript for now. I used the performs module to create a unique form for every pdf download I have. I then set it to forward to the document url on submit, which seems to have the desired effect.

However, it is a bit messy and I don't want to have 100 forms on the site when I have 100 articles. Therefore I'm going to get some help writing a script from a friend who knows javascript well.

Would be happy to follow your links and see if I can get a head start ont hings if you can point me in the right direction.

Thanks again!

j
johnmc
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#221
Re:Download only after email has been submitted 4 Years, 6 Months ago Karma: 12
Yeah sorry I couldn't help more, i'm only just getting my head around javascript myself. It's a great asset to know if you're doing allot of web administration.

I followed this tutorial for on hover popups
www.calcaria.net/javascript/2006/09/java...over- html-popup.html

I can recomend the open source shoping cart component Virtumart. You can turn off the payment processing part of it and use as a catalog system. It allows for downloadable goods so it'd be perfect to managed all your pdf's. You can then make every one login into your joomla site before downloading. It's used allot and is constantly being updated
Bambi
Moderator
Posts: 343
graphgraph
User Offline Click here to see the profile of this user
Gender: Male bambii7@msn.com Location: New Zealand Birthday: 12/21
The administrator has disabled public write access.
 
#227
Re:Download only after email has been submitted 4 Years, 6 Months ago Karma: 0
Bambi wrote:
Yeah sorry I couldn't help more, i'm only just getting my head around javascript myself. It's a great asset to know if you're doing allot of web administration.

I followed this tutorial for on hover popups
www.calcaria.net/javascript/2006/09/java...over- html-popup.html

I can recomend the open source shoping cart component Virtumart. You can turn off the payment processing part of it and use as a catalog system. It allows for downloadable goods so it'd be perfect to managed all your pdf's. You can then make every one login into your joomla site before downloading. It's used allot and is constantly being updated


Thanks for the link and the suggestion. However, with regards to the shopping cart I did consider this before. But it is important to the site owner that people don't have to login to download the articles.

When I have the javascript sorted I'll post it here for you to have a look at - I'm told it'll be simple to do
johnmc
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#229
Re:Download only after email has been submitted 4 Years, 6 Months ago Karma: 12
So you want the emails but no one has to login?
I'm sure you could make downloads avalible to the public but no emails :(
Yeah you could try the doc man, I haven't installed it before but it shouldn't be too much effort.... I think
Bambi
Moderator
Posts: 343
graphgraph
User Offline Click here to see the profile of this user
Gender: Male bambii7@msn.com Location: New Zealand Birthday: 12/21
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Support
 
JOOMLA TEMPLATES Joomla Templates By JoomlaBear