Brennan Posted February 14, 2007 Share Posted February 14, 2007 I have 2 question 1) How do I create a Download link 2) How to make a section of my site secure (username & password) Quote Link to comment Share on other sites More sharing options...
VaKo Posted February 14, 2007 Share Posted February 14, 2007 1: <a href="files/test.file">Download Link</a> 2: You use a .htaccess file . Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted February 14, 2007 Share Posted February 14, 2007 1) http://www.w3.org/TR/html401/struct/links.html 2) http://www.freewebmasterhelp.com/tutorials/htaccess/ damn you VaKo and your 3 seconds before me! Quote Link to comment Share on other sites More sharing options...
Sparda Posted February 14, 2007 Share Posted February 14, 2007 1) How do I create a Download link Just use a normal link to point to the file you want to be downloadable. 2) How to make a section of my site secure (username & password) You will have to use .htaccess (assuming Apache) files to tell the web server that that specific directory (and all it's children) require basic http authentication to access. http basic auth how to: http://httpd.apache.org/docs/1.3/howto/auth.html .htaccess password encrypter: http://www.4webhelp.net/us/password.php Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 14, 2007 Author Share Posted February 14, 2007 I already tried doing a normal link but if it is a video it will play in the browser Quote Link to comment Share on other sites More sharing options...
Sparda Posted February 14, 2007 Share Posted February 14, 2007 I already tried doing a normal link but if it is a video it will play in the browser That's only if you have the plug-in installed. I have to download and open all non-flash videos in VLC because those plugins suck :P Quote Link to comment Share on other sites More sharing options...
SomeoneE1se Posted February 14, 2007 Share Posted February 14, 2007 I already tried doing a normal link but if it is a video it will play in the browser That's only if you have the plug-in installed. I have to download and open all non-flash videos in VLC because those plugins suck :P ditto i have all plug-in diabled(they mostly suck anyways) just add the link and tell you're users to "right mouse click > save (target) as" Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 14, 2007 Author Share Posted February 14, 2007 Alright thanks Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 17, 2007 Author Share Posted February 17, 2007 OK I have one more question How would I be able to make the background centeredI tried the css code below but no help. <style type="text/css"> body { background-image: url("./pics/bg.jpg"); background-repeat: no-repeat background-attachment: fixed background-position: center } </style> This is the site http://redwind.servehttp.com:8080 and I know the background is to big I am working on that but it looks good in 1280x960 Quote Link to comment Share on other sites More sharing options...
Oberon Posted February 17, 2007 Share Posted February 17, 2007 It might just be a typo, but you're missing the semi-colons on all but the first line.. Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 17, 2007 Author Share Posted February 17, 2007 yeah I just noticed that and I was about to say I figured it out But thatnks anyway as you can see I fixed it by clickin here http://redwind.servehttp.com:8080 Quote Link to comment Share on other sites More sharing options...
Oberon Posted February 17, 2007 Share Posted February 17, 2007 ok. lol. Just so you know, it's horribly broken in Opera 9.10 on Windows. There's a big blank right in the center. Looks great in FF though! Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 17, 2007 Author Share Posted February 17, 2007 alright thanks I will have to download Opera to see wut I could do to fix it Quote Link to comment Share on other sites More sharing options...
Deveant Posted February 17, 2007 Share Posted February 17, 2007 hmm just wondering are u hard coding or soft coding (using progs, such as Front page, Dreamweaver)? Quote Link to comment Share on other sites More sharing options...
Brennan Posted February 17, 2007 Author Share Posted February 17, 2007 ok I know wut that is, its my iframe.I dont know how I fix it So I am throwing it out there if anyone this is wut is wrong here is my code some can tweek it so it works <html> <head> <style type="text/css"> body { background-image: url("./pics/bg.jpg"); background-repeat: no-repeat; background-attachment: fixed; background-position: center; } </style> <title>RED WIND</title> </head> <div align="center"> <body bgcolor="000000" text="ff0000"> <table border="0" cellpadding="0" cellspacing="0"> Â Â Â Â <tr> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="home.htm" target="main"><img src="./pics/home.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="http://zetarsoft.net/koh/index.php" target="_blank"><img src="./pics/forum.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="usb.htm" target="main"><img src="./pics/usb.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="linux.htm" target="main"><img src="./pics/linux.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="school.htm" target="main"><img src="./pics/school.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â Â Â Â Â <td align="center"> Â Â Â Â Â Â Â Â Â Â Â Â <a href="links.htm" target="main"><img src="./pics/links.jpg" border="0"></a> Â Â Â Â Â Â Â Â </td> Â Â Â Â </tr> Â Â Â Â Â Â Â Â <td colspan="6"> Â Â Â Â Â Â Â Â Â Â Â Â <iframe name="main" frameborder="0" height="430" width="800"></iframe> Â Â Â Â Â Â Â Â </td> Â Â Â Â </tr> Â Â Â Â <tr> Â Â Â Â Â Â Â Â <td colspan="6" align="center">Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </td> Â Â Â Â </tr> </table> </body> </div> </html> Quote Link to comment Share on other sites More sharing options...
Oberon Posted February 17, 2007 Share Posted February 17, 2007 iframes work differently in almost every browser, I think. If you can, I'd suggest using javascript and a div, and change the visibility attribute of the div with the contents you want them to see. Others may have a different opinion, however :) Quote Link to comment Share on other sites More sharing options...
psychoaliendog Posted February 19, 2007 Share Posted February 19, 2007 I already tried doing a normal link but if it is a video it will play in the browser I just saw this on the php site thought you might be interested. Apparently, if you set the content-type header to "application/octet-stream" it will force a download. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.