3 of 14
3
Linklocker Free (encrypt download links)
Posted: 20 June 2008 07:02 AM   [ Ignore ]   [ # 37 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Darn and I thought you did mean thousands of pounds, oh well!! wink

Also don’t drink. Not one of my vices I’m afraid. If you really really really really really really really want to donate something to me then (if it’s okay with you) will put it into my charity fund that I place money into and then send it off when it is of a high enough value.

You can PM me for Paypal details or anything else you like. You don’t have to donate though so no worries if you don’t. I like to help people out on the forums here with anything I can do as people have helped me out in the past so just like to give back whenever I can.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 07:09 AM   [ Ignore ]   [ # 38 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Hi Mark, I will PM you soon asking for the details. Right now I’m getting pissed off because I don’t know why I can’t make this work :(

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 20 June 2008 07:31 AM   [ Ignore ]   [ # 39 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hiya,

Oops sorry missed your post before about the problems you’re having. No problems here with ExpressionEngine 1.6.3 PHP 4.4.4 and removing index.php using this method below :

RewriteEngine On 
RewriteCond 
%{REQUEST_FILENAME} !-
RewriteCond 
%{REQUEST_FILENAME} !-
RewriteRule 
^(.*)$ /index.php/$1 [L] 

Not sure about MSM though as I have never used that on any sites. Don’t know if that would be related or not.

What is the code you are using to try this out with? Are you using something like this :

<a href="{exp:linklocker url="http://www.example.com/images/logo.jpg" expires="10" iplock="on"}" title="Download File">Download file&hellip;</a> 

Obviously change the link to a file on your server but if you place that in a template what URL do you get? If you are removing the index.php part from your URLs using a .htaccess file then you also need to remove the index.php part from :

Admin->System Preferences->General Configuration->Name of your site’s index page

Ensure that is blank and then hopefully it should work?

Don’t know if any of that helps perhaps?

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 07:39 AM   [ Ignore ]   [ # 40 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Hey mediavilla,

I can’t imagine why you’re getting a blank page when clicking on links. I’ve used it on a site where I rewrite urls to remove index.php. Just make sure that if the files are stored on the same site (ie. have a url of www.thissite.com) that the folder that is being accessed is included in your .htaccess file. For example, if I have an EE site (www.here.com) and my files are in a folder called MP3 (www.here.com/MP3) make sure that this path is allowed in your rewrite rules - for example, if using the “Exclude” rewrite method :

RewriteEngine on 
RewriteCond 
$!^(MP3|images|system|themes|favicon\.ico|robots\.txt|index\.php[NC]
RewriteRule 
^(.*)$ /index.php/$1 [L] 

Also, make sure that the file actually exists and is at the url you are providing - I know it seems obvious, but could be one of those simple things that will bite you. Try to visit the URL of the file in your browser.

Hope that helps. If not, lemme know and we’ll look at other issues. If you’d still like to donate to the project, please PM me and I’ll provide Paypal email.

Thanks

Profile
 
 
Posted: 20 June 2008 07:42 AM   [ Ignore ]   [ # 41 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Haha Mark!

Just posted & saw you beat me to the draw. You know, that’s what I like best about you - well informed, on the ball, and always willing to help. You’re truly an asset to the EE community.

Profile
 
 
Posted: 20 June 2008 07:43 AM   [ Ignore ]   [ # 42 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006
Brad Street - 20 June 2008 11:42 AM

Haha Mark!

Just posted & saw you beat me to the draw. You know, that’s what I like best about you - well informed, on the ball, and always willing to help. You’re truly an asset to the EE community.

You’re too kind, kind sir wink

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 08:10 AM   [ Ignore ]   [ # 43 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Brad, Mark, I can’t thank you enough for all your time and help… I’ve tried both changes on my .htacess but the problem is still there…

Here is the code:

{if logged_in}
        {exp
:weblog:entries weblog="icebreaker" dynamic="off"}
        {exp
:scm_entry_access entry_id="{entry_id}"}
        You have already purchased this item 
- <a href="{exp:linklocker url="http://www.bablingua.com/zipfiles/{cf_ib_zip}"}">Download {cf_ib_zip}</a><br /><br />
        
{/exp:scm_entry_access}
        {
/exp:weblog:entries}
{
/if} 

If you wanna see it with your own eyes you can login here:

Login_register

Username: test
Password: test5

And the page with the links is here: Downloads Area

Maybe related to the Multiple Site Manager??

Thanks again,

Rgds,

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 20 June 2008 08:32 AM   [ Ignore ]   [ # 44 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Echo the value of {cf_ib_zip} out to the screen - make sure it contains what you expect - I can’t see this with the test account you provided as it has no purchases. Also, make sure that the field type for this is text only, not xhtml. Furthermore, since you are using this as part of the url, make sure it is url encoded (if there are spaces in it, they should be replaced with   and so forth).

Profile
 
 
Posted: 20 June 2008 08:35 AM   [ Ignore ]   [ # 45 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

My bad - didn’t notice the link to the Downloads Area. When I click the direct link, I get transferred to your blog - not a download. What does your .htaccess look like? I just checked and it appears that if i go to the zipfiles directory I get your blog as well - perhaps this blog page is the index template for this directory? Either way, it would appear that the problem at this moment is with the .htaccess.

Profile
 
 
Posted: 20 June 2008 09:14 AM   [ Ignore ]   [ # 46 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Hi Brad,

The value of {cf_ib_zip} is there, where it says “Download Comp1.zip” or “Download zipfile.zip”. Comp1.zip and zipfile.zip are the names of the files.

The field type is text only and there aren’t any spaces in the file name…

When I click on the direct link I get a download, try with the link below (is the same):

http://www.bablingua.com/zipfiles/zipfile.zip

My .htacess:

RewriteEngine on
RewriteCond 
$^(zipfiles|bablingua|forum|bl_includes|bl_css_js|P[0-9]{2,8}[NC]
RewriteRule 
^(.*)$ /index.php/$1 [L] 


Thanks again,

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 20 June 2008 09:23 AM   [ Ignore ]   [ # 47 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Ok, let’s take a different direction. Have you tried an uninstall/reinstall of the LinkLocker module? Also, have you checked the error log on your server?

Profile
 
 
Posted: 20 June 2008 09:28 AM   [ Ignore ]   [ # 48 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hiya,

There’s definitely something odd going on there. I just tried logging in and can see the download links but none of them work. Also the direct ZIP download link just takes me to a template instead of downloading a file.

I know it sounds silly but have you double-checked that the file is definitely in there? Also as an aside you don’t have a template group called zipfiles do you?

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 09:33 AM   [ Ignore ]   [ # 49 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Yep, I’ve reinstalled the plugin and I noticed that there was a different linklocker URL, before was www.bablingua.com/?ACT=38&url;=... and after www.bablingua.com/?ACT=39&url;=...

I haven’t checked the Log files… what should I look for?

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 20 June 2008 11:52 AM   [ Ignore ]   [ # 50 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Ok, well I’m about stumped. Let’s try this - can you remove the {cf_ib_zip} from the link and hard code in the path to the linklocker call & see if it works?

Profile
 
 
Posted: 20 June 2008 02:18 PM   [ Ignore ]   [ # 51 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

I’m sorry, I’m stumped as well, I tried to hardcode the link as follows and this is how the code looks:

{if logged_in}
    {exp
:weblog:entries weblog="icebreaker" dynamic="off"}
    {exp
:scm_entry_access entry_id="{entry_id}"}
    You have already purchased this item 
- <a href="{exp:linklocker url="http://www.bablingua.com/zipfiles/{cf_ib_zip}"}">Download {cf_ib_zip}</a><br /><br />
    
hardcoded link 1 - <a href="{exp:linklocker url="http://www.bablingua.com/zipfiles//zipfile.zip"}">Download {cf_ib_zip}</a><br /><br />
    
hardcoded link 2 - <a href="{exp:linklocker url="http://www.bablingua.com/zipfiles//Comp1.zip"}">Download {cf_ib_zip}</a><br /><br />
    
{/exp:scm_entry_access}
    {
/exp:weblog:entries}
{
/if} 

Still not working though… now I’m on another computer and you were right, the link is going to the blog page instead of start the download so maybe it’s related to the .htacess file…

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 23 June 2008 12:18 PM   [ Ignore ]   [ # 52 ]  
Grad Student
Avatar
Rank
Total Posts:  71
Joined  05-12-2007

Hi Brad,

do you think it’d be easy to implement one more feature (always one more)?

I’m using the Yahoo Media Player for playing mp3 on my website.
The player plays the files that have an mp3 extension.

Your module allows to hide the location of the file which is awesome but do you think there’d be an easy to be able to add the mp3 extension after your generated garbage so that the file could be played on the player instead of being downloaded?

I looked at the code but my PHP skills are not good enough, I guess.

Thanks again for your module, it’s awesome the way it is grin
Vincent

Profile
 
 
Posted: 23 June 2008 12:30 PM   [ Ignore ]   [ # 53 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Hey Vincent,

I must admit that I’ve never used the Yahoo Media Player, although I am a fan of the YUI. At any rate, after a brief look at their documentation I’ve come up with this:
Set the MIME type of the file in the link - such as:

<a href="http://example.com/mysong" type="audio/mpeg">a song</a

Of course, the href would be the link generated by the LinkLocker module. This way, the media player will know that the link is playable. For more info, check out this page in the Media Player Wiki.

Please leave a comment here if this works (I suspect it should) in case others have a similar issue, and thanks for using my module.

Brad

Profile
 
 
Posted: 23 June 2008 01:13 PM   [ Ignore ]   [ # 54 ]  
Grad Student
Avatar
Rank
Total Posts:  71
Joined  05-12-2007

Hi Brad,

Thanks for the quick reply.

Unfortunately this doesn’t work, or at least not the way I expect it.

When I did what you said, the text link works well as expected (ie it opens the download link with the correct file that’s hidden).
But when I press the “Play” button next to the text link, this doesn’t launch the player.

I think it’s because the file doesn’t contain the .mp3 extension on the generated file which the Yahoo player needs.

Vincent

Profile
 
 
   
3 of 14
3