Log in

View Full Version : Problem with HTML.


Blam Forumz
10-17-2004, 01:27 PM
I have this site that i made in school for an ict project (which i got 100% for)

www.blaminator.co.uk/ict

I have uploaded it to the /ict/ dir, but all the images / links are like this

/blahblahblah

All the images are in their respective folders in the /ict dir, dunno what to do, ive tried using chdir command in php, but it didnt work

thanks

Xenon
10-17-2004, 01:50 PM
use

<img src="../blahblahblah/img.gif" />

Blam Forumz
10-17-2004, 02:13 PM
:/ *cringe* I have to edit many a files now

thanks anyway

Xenon
10-17-2004, 02:30 PM
there is also another trick, you can put into your header iirc:

<base href="../" />

that should work for all links and images iirc

Blam Forumz
10-18-2004, 05:52 PM
When you say that, do you mean like this?

<base href="/home/public_html/ict/" />

Xenon
10-18-2004, 06:51 PM
nope i meant

<base href="../blahblahblah/" />

as said, it should work, but not 100% sure :)

Blam Forumz
10-19-2004, 03:44 PM
Thanks :/ but it didnt work :( Oh well, may as well give up :/

Xenon
10-19-2004, 04:10 PM
well, no other idea then :(

filburt1
10-19-2004, 04:15 PM
Thanks :/ but it didnt work :( Oh well, may as well give up :/
Use the base href trick in the head of the document. Then, make every other reference (img src, a href, etc.) relative to that base href, not to where the page is stored.

vB can get messy when you start adding folders, but it was not designed with that in mind because virtually nobody does that (although I might with a subdomain which would be interesting).

Blam Forumz
10-19-2004, 05:08 PM
Then, make every other reference (img src, a href, etc.) relative to that base href, not to where the page is stored.



Thats what i was dreading :|

But thanks, I guess i have a damn lot of editing to do, see you in a few hours lol