 |
| Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more. |
|
 |
06-27-2009, 02:32 PM
|
#1 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
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
|
|
|
06-27-2009, 06:08 PM
|
#2 (permalink)
|
|
Meeow!
Join Date: 04-13-07
Location: Romania
Posts: 3,235
Latest Blog: None
|
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
|
|
|
06-27-2009, 07:06 PM
|
#3 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
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"> </td>
<td width="768" valign="top"><img src="../images/mm_spacer.gif" alt="" width="305" height="1" border="0" /><br />
<br />
<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--> </td>
</tr>
<tr>
<td width="14" height="389"> </td>
<td width="176" valign="top">
<?php include ("../includes/_searchbox.php"); ?>
<?php include ("../includes/_sidebarRight.php"); ?></td>
</tr>
</table> </td>
<td width="4"> </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 />
• Spiritual being, divine messenger<br />
• Have never lived a physcial incarnation <br />
• 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 • arch•an•gel</em><br />
• High-ranking angels (overseers of guardian angels) found in many major religions and spiritual philosophies<br />
• Messengers of the divine: <br />
• Helpers to those of us on the physical plane </p>
<p><strong><a name="gabriel" id="gabriel"></a>Gabriel</strong><br />
Noun • <strong>Gae</strong>•bree•ael<br />
• 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 />
•
Archangel of communication: "Messenger of God"<br />
• Helps earthly messengers such as artists, writers, journalists & teachers <br />
• Archangel of communication also through intuition, prophecy and dreams<br />
• Look to Gabriel for assistance in writing, to help children and communication endeavors <br />
• Also see “<a href="#guardian_angel">Guardian Angel</a>” and “<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.”</p>
<p><strong><a name="michael" id="michael"></a>Michael</strong><br />
• 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> & <a href="http://www.mysticalpedia.com/spiritual-dictionary-uvw.php#uriel">Uriel</a> <br />
• Archangel of protection: Patron Saint of Police Officers<br />
• Seek assistance from Michael for protection & courage, & to release fear and negativity<br />
• Also see “<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>” and “<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.”</p>
<p class="bodyText"></p>
<?php include ("../includes/_body_ad.php"); ?>
<strong><a name="raphael" id="raphael"></a>Raphael</strong><br />
<em>noun • rah•fi•<strong>el</strong></em><br />
• 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 />
•
Archangel of healing<br />
• Heals and assists healers on the Earthly plane<br />
• Seek assistance from Raphael if you need healing or seek to become a healer <br />
• Also see “<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>” and “<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.”</p>
<p><strong><a name="uriel" id="uriel"></a>Uriel</strong><br />
<em>noun • <strong>yur</strong>•ee•el</em><br />
• 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 />
• The archangel of wisdom, philosophy and insight<br />
• Seek Uriel assistance for brainstorming & problem-solving<br />
• Also see “<a href="http://www.mysticalpedia.com/metaphysical-definitions-g.php#guardian_angel">Guardian Angel</a>” and “<a href="http://www.mysticalpedia.com/index.php#archangel">Archangel</a>.”</p>
<p class="bodyText"><br />
<p> </p>
</blockquote> </td>
<td> </td>
</tr>
<tr>
<td height="24" colspan="2" valign="top"><div align="center"> <br />
<?php include ("../includes/_footer.php"); ?><br />
</div></td>
<td> </td>
</tr>
<tr>
<td height="19"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
|
|
|
06-27-2009, 08:24 PM
|
#4 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
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
|
|
|
06-27-2009, 08:26 PM
|
#5 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
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.)
|
|
|
06-27-2009, 08:27 PM
|
#6 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
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.
|
|
|
06-27-2009, 08:28 PM
|
#7 (permalink)
|
|
Junior Member
Join Date: 06-27-09
Location: Encinitas, CA
Posts: 7
|
There we go.  I guess I need to do it through quick reply. Seems it wouldn't post the other way.
|
|
|
06-28-2009, 07:54 AM
|
#8 (permalink)
|
|
Meeow!
Join Date: 04-13-07
Location: Romania
Posts: 3,235
Latest Blog: None
|
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.
__________________
...to be continued
|
|
|
07-04-2009, 04:15 AM
|
#9 (permalink)
|
|
Junior Member
Join Date: 07-04-09
Location: London
Posts: 22
Latest Blog: None
|
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
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:39 AM.
© Copyright 2008 V7 Inc Powered by vBulletin Copyright © 2000-2009 Jelsoft Enterprises Limited.
|
|
|