Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 PHP Coding Difficulties 2
Index -> Web Design
Goto page Previous  1, 2, 3
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
DemonWasp




PostPosted: Fri Jul 25, 2008 9:56 am   Post subject: RE:PHP Coding Difficulties 2

Turing is really dumb about letting you link things in. Don't use their design for anything but learning the basics - it's not a standard, and not particularly great in a lot of areas.

It looks like you just need to fix some links. I don't know what your setup looks like, so I can't really help you with that. I will say, however, that using relative links is a better ideal than absolute links...so instead of "http://www.smb.zeldaoracles.net/wp-content/themes/tlom1/style.css", I would recommend "wp-content/themes/tlom1/style.css" or similar. This makes it easier to test on your home machine, then just upload the completed / testing version.

Quick note: It's not valid to have a <table> tag in the <head> section. The <head> section is just information about the page, and what the browser should do in the background. The <body> section is what you're looking for - the section that describes what the browser should show.
Sponsor
Sponsor
Sponsor
sponsor
jeffgreco13




PostPosted: Fri Jul 25, 2008 10:39 am   Post subject: Re: PHP Coding Difficulties 2

Yes absolutely your paths are incorrect so ill take you thru a little tutorial on them...

This path goes to a file in the SAME directory as the file that's calling it (just the filename)
Quote:
<img src="filename.jpg">


This path goes to file within a folder WITHIN the folder that the current file resides (no backslash in front)
Quote:
<img src="foldername/filename.jpg">


This path directs to your root directory, for example if your root is http://www.sitename.com/ and your within a couple folders this takes you right to the top (the backslash in front of the filename)
Quote:
<img src="/filename.jpg">


And finally this path will take you up one folder from where you are. So say page.php is in /folder1/folder2/ but you want to access a picture in /folder1/ you do this (the 2 periods tell the browser to look one folder up)
Quote:
<img src="../filename.jpg">


Well there's my brief tutotial on paths have fun.
mario64mario




PostPosted: Fri Jul 25, 2008 12:47 pm   Post subject: Re: PHP Coding Difficulties 2

Thanks, everyone.

@ octopi - I just upload the contained file into the FTP?
Display posts from previous:   
   Index -> Web Design
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 3 of 3  [ 33 Posts ]
Goto page Previous  1, 2, 3
Jump to:   


Style:  
Search: