View Full Version : Newbie
Shazzy
01-08-2009, 10:01 AM
Hello,
I am new to the site. I have a couple of questions which I hope you don't mind me asking.
1) do you know how to create a link in the public_html folder. i.e I want to link one page to another internal page but I'm unsure how to do this. Also is it easy to link to another external page.
2) I have installed coppermine photogallery and it is showing in the public directory - but how do I go about using this on the actual site.
Thanks for your help.
Shazzy
pghcollectibles
01-08-2009, 11:45 AM
this question has been asked many times in this forum. here (http://www.hostmonsterforums.com/showthread.php?t=4842) is an example. does that help you?
alreadyhosting
01-08-2009, 05:07 PM
Yep, phhcollectibles is right... Good luck solving your problem.
Shazzy
01-09-2009, 09:23 AM
Thanks. I'm having problem creating a link with an image. Does anyone know how to do this?
Also, I want to embed a youtube video on to my site. Usually you copy and paste the embed code. But I can't seem to find the widget in the public html editor. Thanks for your help. Sharon
jimatit32
01-09-2009, 09:45 AM
Thanks for the help. I was having trouble for a few minutes with this tell I came accross this thread yesterday. Thanks
pghcollectibles
01-09-2009, 10:30 AM
i would not use an html editor to actually insert code (or for any reason anymore actually) but the easiest way would be to use file manager from your cpanel, navigate to the file then right click and select code editor. paste your code where you want it to appear in your page.
i need some information on the image link you are trying to make. tell me where the page is you are placing the link code in with reference to your /home/username/public_html/ folder. where the image is located with the same reference and where the page you are linking to is located with the same reference or include the entire url as reference if you are linking to a page outside of your domain or webserver pages or using an outside image etc.
have i suggested to look here (http://www.w3schools.com/html/html_links.asp) for help yet? i may have in the other thread, i cant remember
Shazzy
01-10-2009, 02:46 AM
Thank you so much for your help. :) I will give the embedding a try soon.;)
I am trying to link an image which is stored in the images folder. To an outside URL http://shanefilanforever.proboards104.com/.
pghcollectibles
01-10-2009, 06:02 AM
you didnt answer 2 of the three questions though so i guess you will have to fill in your own filenames in this code:
<a href='http://shanefilanforever.proboards104.com' target='_new'><img border='0' src='images/yourpicture.jpg'></a>that is assuming this link is going in a file located inside your public_html folder.
Shazzy
01-21-2009, 04:14 AM
Hi,
Sorry I still cannot get it to work.
I am trying to link an ad to a site and used this reference...
<a href='www.play.com' target='_new'><img border='0' src='images/BH.jpg'></a>
I added the reference in the code edit. But when I click on the picture on the test page it adds my site url to the address as well. e.g www.westlifeforever.com/test.htm.
I am not sure what I am doing wrong so any help would be gratefully received.
Thanks,
Sharon
Shazzy
01-21-2009, 05:38 AM
I have figured out what I did wrong - didn't add the http://. ;)
Shazzy
01-23-2009, 06:56 AM
I am sorry but I am still having problems. It was working but then when I added some more sites - it is not showing the picture but when you click on it the link is there (as shown - www.westlifeforever.com/affiliates.htm.
Here are the two references for the files...
<a href='http://www.nishakimabry.de.vu' target='_new'><img border='0' src='Affiliates/SWB.gif'></a>
<a href='http://top100westlifesites.gotop100.com/' target='_new'><img border='0' src='images/57593.jpg'></a>
I have tried seeing whether anything in the code looks wrong but can't see anything. Any ideas? thanks Shaz
Falcon1986
01-23-2009, 07:11 AM
Please recheck your image paths.
Your SWB.gif and 57593.jpg files are located in your /images/Affiliates/ directory. So your first link should look like:
<a href="http://www.nishakimabry.de.vu/" target="_new"><img border="0" src='images/Affiliates/SWB.gif'></a>
Your second image will have a similar source path.
BTW, I was able to see this because your site is configured to allow viewing of directories, which can be a security issue. To turn this off simply add the following statement to your root .htaccess file:
# Directory index protection
Options -Indexes
Shazzy
01-23-2009, 07:32 AM
Thank you it worked.
I can't seem to find the ht access file - I found it on the search in the html file but can't find the folder. Is there a way to show hidden files?
Falcon1986
01-23-2009, 03:34 PM
If you do not see an .htaccess file within your public_html directory then you can simply create one.
cPanel's File Manager will only allow you to see hidden files (i.e. those whose names begin with a period) if you enable viewing of hidden files. When you first click on File Manager you are usually greeted with a pop-up that asks you if you want to enable it or not. Once it is activated you can create/view the .htaccess file using the built-in text editor. FTP client software are normally configured to show hidden files by default.
When creating or editing your .htaccess file ensure that you use a simple text editor that applies absolutely no formatting. Furthermore, the file name should be saved as .htaccess. Notice that the file is extensionless.
turkeycaller
02-26-2009, 10:53 AM
I created a one page Website with Microsoft Publisher, I tried to upload it with File Manager. I keep getting an error message. Unknown error. I can't seem to figure this process out. When I go to Cpanel it looks like website uploaded , but I'm not sure it uploaded to the right place. I go to CPanel click on FM, Click on Upload, Browse to my Site in MSPub, click on open and it seems to start uploading. Then I get the error message.
Where should I be uploading it to and do I have to save my site as a certain type of file in my computer or will it upload as a MSPub file? See what I mean by bewildered?
shadmego
02-26-2009, 12:42 PM
You have to save your files as .htm or .html pages before you upload them to your web server.
You have to upload your .html pages to the public_html directory before they can be seen in a browser.
Note: Using Publisher to create your web pages is going to severely limit your audience to those with Internet Explorer. It is not recommended to use this program to produce web pages.
~regards, and welcome to the community
P.S. For future reference, it would be best if you started a new thread for every issue you have. That way we can better sort out the issues and quickly answer your questions.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.