WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-02-2006, 08:35 AM
WebProWorld Member
 

Join Date: Jan 2006
Location: London
Posts: 77
WomenXtra RepRank 0
Default Images issue - not showing php menu

Hi All,

i am very new to this and not too sure how to approach this problem. I have created a site with header, footer and a left menu. the site has different folders and I have managed to get the links in the menu to work across all folders. My only problem is the logo in the header and the image in the LHS menu. they keep breaking when I access the pages under the different folders..

I noticed that my virtual directory is disabled - http://www.womenxtra.co.uk/manor-farm/version.php

what do I need to do for the images in order for them to show in the sub-folders?

the site is: http://www.womenxtra.co.uk/manor-farm/

At the moment, i resolved the issue with the menu links to work across the site using these:

<?php $root = '../'; ?>

<?php include ("../left_menu.php"); ?>


for some reason they are not doing the same effect with the images...

below is my header file:



<TABLE style="BORDER-BOTTOM: #6a94cc 1px solid" cellSpacing="0" cellPadding="0" width="100%" align="center" bgColor="#ffffff">
<TBODY>
<TR bgColor="#ffffff">
<TD align="left">
<a href="<?php echo $root ?>index.php">
[img]images/LBHLogo.gif[/img]</a>
<a href="<?php echo $root ?>index.php">
[img]images/lbh_title.gif[/img]

</a>



</TD>
<TD class="num" align="right"></TD></TR>
<TR>
<TD class="top" align="right" colSpan="2">
Home
About Us
Contact Us
Site Map
</TD>
</TR>
</TBODY></TABLE>


thank you in advance.
Tala
__________________
www.womenxtra.co.uk
Join our new community and take part in the discussions!
Reply With Quote
  #2 (permalink)  
Old 09-02-2006, 09:10 AM
arvana's Avatar
WebProWorld Pro
 

Join Date: Jul 2003
Location: Guelph, Ontario, Canada
Posts: 157
arvana RepRank 0
Default

Hi Tala,

It might not be the most elegant solution, but one method would be to use absolute URL's for the images, eg:

img src="http://www.womenxtra.co.uk/manor-farm/images/LBHLogo.gif"
__________________
Arvana
arvanadesign.com
Reply With Quote
  #3 (permalink)  
Old 09-04-2006, 04:08 PM
WebProWorld Pro
 

Join Date: Sep 2005
Location: Manchester, UK
Posts: 257
mikesmith76 RepRank 0
Default

How about just using

/manor-farm/images/LBHLogo.gif

That should work no matter what directory you are in
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0