Problem with URL link to PDF files -...

User 364143 Photo


Guest
5,410 posts

Yes, I just tested it. Unzip the file.

Rename the folder to whatever you want and upload it to your server.
FTP all the pdf documents to that folder.

When you navigate to the directory, you will see your pretty pdf files listed. You don't list the php file in the url, you list the directory.

http://www.yourwebsite.com/thefolder/
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

Tom, your link is not good.

Unzip, got that. What do you mean by rename the folder, which folder?
I have a document folder with the PDFs in it. Should I just put the unzipped files in that folder, right?

How do I get those prettly little PDFs to show on my website?
User 364143 Photo


Guest
5,410 posts

LOL. Look at the link again.

When you unzip the .zip file, it creates a folder with the files inside.
Rename that folder to what you want it to be on your server.
FTP the folder to the web server.
FTP your pdf files to that folder.

Your website link to that directory will be to the folder - not the index.php file.

So it will be:

http://www.MYWEBSITE/myfolder/

and your link tag will be:

<a href="/MYWEBSITE/myfolder/" title="pdf files">Check out my pdf files</a>
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

Thanks Tom.
Yeah, how stupid!! I did not look at the site address just the folder name. :rolleyes:

I will give that a try.
User 193638 Photo


Registered User
557 posts

Well that put a nice link on my page but I get this error message when I click on it:

Error 404 - Not found
Your browser can't find the document corresponding to the URL you typed in.


<a href="/http://bonsaitoolchest.com/documents/" title="pdf files">Bonsai Care Sheets in PDF Format</a>

Did I put in something wrong above?
User 364143 Photo


Guest
5,410 posts

I just saw it on your server. Its working. Congratulations. :)

Your link has errors. Use this.

<a href="http://bonsaitoolchest.com/documents/" title="pdf files">Bonsai Care Sheets in PDF Format</a>

Optionally, you can add target=_blank" to the tag to open the link in a new window.

When you are brave enough to try editing the index.php file, you can add a back link to your store, as well as play around with the included style sheet.
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

Yes, I see I had an extra / in front of the http

It works!!!! :D:D:D:D

I love it when a plan works.

Thanks Tom. If you looked anything like your avitar, I'd give you a kiss. :lol:
User 364143 Photo


Guest
5,410 posts

I'm glad you got it working. No kiss necessary. :)

I edited my last post for more info for you.
CoffeeCup... Yeah, they are the best!
User 193638 Photo


Registered User
557 posts

Optionally, you can add target=_blank" to the tag to open the link in a new window.

When you are brave enough to try editing the index.php file, you can add a back link to your store, as well as play around with the included style sheet.


Where exactly would I put that target in the HTML code you gave me?

And yes, I am just now looking at all the gobble de gook in the php file trying to see what I can change. I want to get rid of the header text that it puts in and do my own.

I can see that I am going to have to change the names of the PDF files so that they will be easier to read; something like: Satsuki_Azalea.pdf instead azaleasatsuki.pdf
User 38401 Photo


Senior Advisor
10,951 posts

The target code would go into your links so it would be like this:

<a href="http://www.xyzpdq.com" target="_blank" title="xyzpdq">The xyzpdq</a>

It doesn't have to be in that order at all, just so long as it's part of the link. You can find more info on link attributes here:

http://www.w3schools.com/tags/tag_a.asp

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.