Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 06-27-2009, 02:32 PM   #1 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
Problem with hierarchy

Hi.

I'm new here.

I have a website which is a php site. I'm not very good at coding, my husband set up the php part of it after I designed the site in html. I know enough how to use the includes and such.

I would like to add some things to it which will make it a relatively large site. Right now all my pages are on the first level. I would like, however, to create some folders that will contain more pages for each topic.

Example: it's a metaphysical dictionary site. I've got all of the individual pages: A-Z on the top level. I want to offer, however, more detailed information about certain things, so instead of having http://www.mysite.com/angels.php - I want http://www.mysite.com/angels/angels.php

My problem is that even though Dreamweaver says it's converting all the includes, it is not. It does not convert the header properly, and it does not convert one gif in the menu properly. The menu it sees, but it doesn't see the gif.

When I look at the code, it looks like it's calling the header right, but it doesn't. (I haven't looked at the gif problem yet.) I finally got around the header problem, iirc, by putting a copy of the header include in the folder, but it doesn't seem like I should have to do that.

I'm new here so I'm not sure if I can link to my page or not, but if any of you have any ideas on why this is happening, I'd really appreciate it.

Best,
Caat
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 06:08 PM   #2 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
First off, welcome to v7n!

#1. My advice is to not use DW's link update feature. It tends to get messy. When that little window appeared you should select ALL pages you want updated and then click on the Update links button. By just clicking the button without having a page selected will have no effect.

#2. You should be able to have your hierarchy as deep as you want, all that's required from you is to set the path correctly. Maybe if you can be more specific about your problem or maybe you can post here the code that doesn't work so we can have a look at it?

__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 07:06 PM   #3 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
Okay. I started from scratch and copied the page into the folder I want. I selected all the pages in my files list before I clicked the update links button. I still am having problems.

The menu is there, but the links don't work.
The header isn't there.
The give in the menu isn't there.
The links on the page work, but the links in the includes (links in the body_header include) do not.
The google and amazon ads are there.
The google search box is there and works.
The self-made ads on the right sidebar are there and work, even though those are also in an include.

Thanks for looking at this.

Caat



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<title>Metaphysical - Spiritual - Healing Dictionary</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="images/mm_spa.css" type="text/css" />
</head>
<body bgcolor="#990000" background="../images/mm_bg_red.gif">
<table border="0" cellspacing="0" cellpadding="0">
<!--DWLayoutTable-->
<?php include ("../includes/_header.php"); ?>


<tr bgcolor="#ffffff">
<td height="1" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<tr bgcolor="#ffffff">
<td height="2" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>

<tr bgcolor="#ffffff">
<td height="1" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<tr bgcolor="#ffffff">
<td height="18" colspan="5" bgcolor="#568C8E"></td>
</tr>

<tr bgcolor="#ffffff">
<td height="1" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<tr bgcolor="#ffffff">
<td height="2" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="2" border="0" /></td>
</tr>

<tr bgcolor="#ffffff">
<td height="1" colspan="5"><img src="../images/mm_spacer.gif" alt="" width="1" height="1" border="0" /></td>
</tr>

<?php include ("../includes/_menu.php"); ?>
<?php include ("../includes/_amazonLeft.php"); ?>
</table> </td>
<td width="12" height="25">&nbsp;</td>
<td width="768" valign="top"><img src="../images/mm_spacer.gif" alt="" width="305" height="1" border="0" /><br />
&nbsp;<br />
&nbsp;<br /> </td>
<td width="210" rowspan="4" valign="top"><br />
<table border="0" cellspacing="0" cellpadding="0" width="190" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td height="18" colspan="2" align="center" class="columnHeader"><!--DWLayoutEmptyCell-->&nbsp;</td>
</tr>

<tr>
<td width="14" height="389">&nbsp;</td>
<td width="176" valign="top">
<?php include ("../includes/_searchbox.php"); ?>
<?php include ("../includes/_sidebarRight.php"); ?></td>
</tr>
</table> </td>
<td width="4">&nbsp;</td>
</tr>
<?php include ("../includes/_body_header.php"); ?>
<h2 align="left">ANGELS</h2>
<p><img src="../images/angels/angels_sun_sm.jpg" width="253" height="279" hspace="6" vspace="6" align="right" />Angels are messengers from God who help all areas of life of those of us on the physical plane. They hold no judgements, love unconditionally and see the good in all of us. </p>
<p>While many people eschew many parts of metaphysical beliefs, angels are the exception to that rule. Angels are seen in practically every organized religion, yet you don't have to hold dogmatic religious beliefs to appreciate the presence of angels. </p>
<p>And although spirit guides and angels both help us here on earth, angels differ from spirit guides in that, angels have never had a physical existence, whereas our spirit guides have. </p>
<p>Angels protect us when needed, help us when asked, but will not interfere with our free will. To connect with your angels you need simply to say it, think it, write it, visualize what you want, or say an affirmation expressing your gratitude for their help. [Angels 101, Doreen Virtue].</p>
<?php include ("../includes/_body_ad.php"); ?>
<p><strong>Angel</strong><br />
<em>noun</em><br />
&bull; Spiritual being, divine messenger<br />
&bull; Have never lived a physcial incarnation <br />
&bull; Protector (See also <a href="#archangel">archangel</a>; <a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">guardian angel</a>)</p>
<p><strong><a name="archangel" id="archangel"></a>Archangel</strong><br />
<em>noun &bull; arch&bull;an&bull;gel</em><br />
&bull; High-ranking angels (overseers of guardian angels) found in many major religions and spiritual philosophies<br />
&bull; Messengers of the divine: <br />
&bull; Helpers to those of us on the physical plane </p>
<p><strong><a name="gabriel" id="gabriel"></a>Gabriel</strong><br />
Noun &bull; <strong>Gae</strong>&bull;bree&bull;ael<br />
&bull; One of the four major archangels, along with <a href="http://www.mysticalpedia.com/metaphysical-dictionary-m.php#michael">Michael</a>, <a href="http://www.mysticalpedia.com/spiritual-dictionary-r.php#raphael">Raphael</a> and <a href="http://www.mysticalpedia.com/spiritual-dictionary-uvw.php#uriel">Uriel</a> <br />
&bull;
Archangel of communication: &quot;Messenger of God&quot;<br />
&bull; Helps earthly messengers such as artists, writers, journalists &amp; teachers <br />
&bull; Archangel of communication also through intuition, prophecy and dreams<br />
&bull; Look to Gabriel for assistance in writing, to help children and communication endeavors <br />
&bull; Also see &ldquo;<a href="#guardian_angel">Guardian Angel</a>&rdquo; and &ldquo;<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.&rdquo;</p>
<p><strong><a name="michael" id="michael"></a>Michael</strong><br />
&bull; One of the four major archangels, along with <a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#gabriel">Gabriel</a>, <a href="http://www.mysticalpedia.com/spiritual-dictionary-r.php#raphael">Raphael</a> &amp; <a href="http://www.mysticalpedia.com/spiritual-dictionary-uvw.php#uriel">Uriel</a> <br />
&bull; Archangel of protection: Patron Saint of Police Officers<br />
&bull; Seek assistance from Michael for protection &amp; courage, &amp; to release fear and negativity<br />
&bull; Also see &ldquo;<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>&rdquo; and &ldquo;<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.&rdquo;</p>
<p class="bodyText"></p>
<?php include ("../includes/_body_ad.php"); ?>
<strong><a name="raphael" id="raphael"></a>Raphael</strong><br />
<em>noun &bull; rah&bull;fi&bull;<strong>el</strong></em><br />
&bull; One of the four major archangels, along with <a href="http://www.mysticalpedia.com/metaphysical-dictionary-m.php#michael">Michael</a>, <a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#gabriel">Gabriel</a> and <a href="http://www.mysticalpedia.com/spiritual-dictionary-uvw.php#uriel">Uriel</a> <br />
&bull;
Archangel of healing<br />
&bull; Heals and assists healers on the Earthly plane<br />
&bull; Seek assistance from Raphael if you need healing or seek to become a healer <br />
&bull; Also see &ldquo;<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>&rdquo; and &ldquo;<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.&rdquo;</p>
<p><strong><a name="uriel" id="uriel"></a>Uriel</strong><br />
<em>noun &bull; <strong>yur</strong>&bull;ee&bull;el</em><br />
&bull; One of the four major archangels, along with <a href="http://www.mysticalpedia.com/metaphysical-dictionary-m.php#michael">Michael</a>, <a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#gabriel">Gabriel</a> and <a href="http://www.mysticalpedia.com/spiritual-dictionary-r.php#raphael">Raphael</a><br />
&bull; The archangel of wisdom, philosophy and insight<br />
&bull; Seek Uriel assistance for brainstorming &amp; problem-solving<br />
&bull; Also see &ldquo;<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>&rdquo; and &ldquo;<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.&rdquo;</p>
<p class="bodyText"><br />
<p>&nbsp;</p>
</blockquote> </td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="24" colspan="2" valign="top"><div align="center">&nbsp;<br />

<?php include ("../includes/_footer.php"); ?><br />
</div></td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="19">&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 08:24 PM   #4 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
From the Moderator:
Message was hung up in Moderation.

This post is your second try.

I'm deleting the other tries that didn't get through. <wink>

Last edited by htmlbasictutor; 06-28-2009 at 12:22 AM.. Reason: This is the second time he tried
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 08:26 PM   #5 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
Okay, I'll try like this: I've tried to post a reply twice, but it's not posting. I'll just try this one to see if I had too much in there. (I was trying to post the code to my page.)
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 08:27 PM   #6 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
Gosh darnit. I wrote a big long reply and for some reason it didn't post. Let me think of what I said.

I selected all the pages before I updated the links.
The header is still not showing up.
The menu is showing up but the links don't work
The body header is showing up but the links don't work
The amazon and google ads (includes) are showing up, I can't test the links because of the contract.
My self-made ads in left sidebar (includes) are showing up and working
Links within the page are working.

Thanks so much for looking at this.

Caat

************

I'll try it with and without the code.
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-27-2009, 08:28 PM   #7 (permalink)
Junior Member
 
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
iTrader: 0 / 0%
bigcaat is liked by many
There we go. I guess I need to do it through quick reply. Seems it wouldn't post the other way.
bigcaat is offline  
Add Post to del.icio.us
Reply With Quote
Old 06-28-2009, 07:54 AM   #8 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,235
iTrader: 0 / 0%
Latest Blog:
None

Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
I think the attached image would explain better what I want to say.

You just have to make sure that all your links from the included files are relative to the page that hosts the included file.
Attached Thumbnails
Problem with hierarchy-iscreenshot.jpg  
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-04-2009, 04:15 AM   #9 (permalink)
Junior Member
 
Join Date: 07-04-09
Location: London
Posts: 22
iTrader: 0 / 0%
Latest Blog:
None

webopius is liked by many
Send a message via Skype™ to webopius
Hi.

I think you just need to change your image links to be absolute rather than relative.
So, instead of ../images/imagename.jpg, use /image/imagename.jpg.

Then, when you move pages to subfolders, your image references will be based from the site root (/) rather than relative to your subfolder.

If I was developing such a large site, I would be using a Content Management System such as Joomla or Drupal to manage my pages and hierarchy. Editing individual php files is going to create a massive maintenance challenge for you later.
__________________
Webopius.com. London
webopius is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google's China Problem (and China's Google Problem) - NYTimes Sunday Mag (4/23/06) Julie Google Forum 4 10-26-2009 03:54 PM
Problem with text looking funky on windows… maybe an anti aliasing problem? jpf566 Web Design Lobby 2 07-09-2008 07:40 AM
301 redirect and URL hierarchy Forsh SEO Forum 1 02-17-2008 06:07 PM
Page hierarchy kushty Google Forum 3 06-29-2007 07:27 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:43 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.