vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Problem with HTML. (https://vborg.vbsupport.ru/showthread.php?t=70685)

Blam Forumz 10-17-2004 12:27 PM

Problem with HTML.
 
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 12:50 PM

use

HTML Code:

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

Blam Forumz 10-17-2004 01:13 PM

:/ *cringe* I have to edit many a files now

thanks anyway

Xenon 10-17-2004 01:30 PM

there is also another trick, you can put into your header iirc:

HTML Code:

<base href="../" />
that should work for all links and images iirc

Blam Forumz 10-18-2004 04:52 PM

When you say that, do you mean like this?

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

Xenon 10-18-2004 05:51 PM

nope i meant

HTML Code:

<base href="../blahblahblah/" />
as said, it should work, but not 100% sure :)

Blam Forumz 10-19-2004 02:44 PM

Thanks :/ but it didnt work :( Oh well, may as well give up :/

Xenon 10-19-2004 03:10 PM

well, no other idea then :(

filburt1 10-19-2004 03:15 PM

Quote:

Originally Posted by Blam Forumz
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 04:08 PM

Quote:

Originally Posted by filburt1
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


All times are GMT. The time now is 01:09 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01604 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete