Darn and I thought you did mean thousands of pounds, oh well!!
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.
Oops sorry missed your post before about the problems you’re having. No problems here with ExpressionEngine 1.6.3PHP 4.4.4 and removing index.php using this method below :
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?
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 $1 !^(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.
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.
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.
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).
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.
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?
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?
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?
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?
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…
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
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:
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.
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.