Professional Web Applications Themes

Change Massive HTML Help - Macromedia Dynamic HTML

I was putting together a website in PHP using Dreamweaver this week. After I thought I was done, I checked it online. Turns out all the images are not showing up. I know what I did wrong, let me explain: I am using PHP Include, this is the code for the main page <? if (!$page) $page=allproducts; ?> <?php include("header.php"); ?> <?php include("allproducts"); ?> <?php include("footer.php"); ?> Ok, the allproducts part changes when you click on a link, I'm sure you know how this works. I put the images inside the maindirectory under the following path "images/products/large/image.jpg", "images/products/medium/image.jpg", and "images/products/thumbs/image.php" ...

  1. #1

    Default Change Massive HTML Help

    I was putting together a website in PHP using Dreamweaver this week. After I
    thought I was done, I checked it online. Turns out all the images are not
    showing up. I know what I did wrong, let me explain:
    I am using PHP Include, this is the code for the main page

    <? if (!$page) $page=allproducts; ?>
    <?php include("header.php"); ?>
    <?php include("allproducts"); ?>
    <?php include("footer.php"); ?>

    Ok, the allproducts part changes when you click on a link, I'm sure you know
    how this works. I put the images inside the maindirectory under the following
    path "images/products/large/image.jpg", "images/products/medium/image.jpg", and
    "images/products/thumbs/image.php"

    In the product files (listed under the maindirectory under the following path
    "products/pet_beds/file.php") I have the image files as "<img
    src="../../images/products/medium/brandy.jpg" width="300" height="188"
    border="0">, I have come to the conclusion by testing it with one image (which
    I should have done to begin with :-\ ) that I need to change all the img src
    tags to the following: <img src="images/products/medium/brandy.jpg" width="300"
    height="188" border="0">.
    Is there an easy way to remove the "../../" from each img src in every file?

    Please please help me. email me at [email]webrealityaol.com[/email] with any help.
    Please.... Thank you so much in advance.:o:confused;

    Webreality.net Guest

  2. #2

    Default Re: Change Massive HTML Help

    I figured out the solution, thank god for FInd and Replace. I didn't think it
    would work on a partial code, but it did. Take heed in my words, always test
    something before you spend 8 hours on mulitple files. :-D

    Webreality.net Guest

  3. #3

    Default Re: Change Massive HTML Help

    Open each include file and edit it. How hard can that be?

    ALL links in include files should always be root relative to avoid such
    problems, e.g.,

    <a href="/whatever/whatever/foo.html"

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Webreality.net" <webforumsusermacromedia.com> wrote in message
    news:dba5hp$m5k$1forums.macromedia.com...
    >I was putting together a website in PHP using Dreamweaver this week. After
    >I
    > thought I was done, I checked it online. Turns out all the images are not
    > showing up. I know what I did wrong, let me explain:
    > I am using PHP Include, this is the code for the main page
    >
    > <? if (!$page) $page=allproducts; ?>
    > <?php include("header.php"); ?>
    > <?php include("allproducts"); ?>
    > <?php include("footer.php"); ?>
    >
    > Ok, the allproducts part changes when you click on a link, I'm sure you
    > know
    > how this works. I put the images inside the maindirectory under the
    > following
    > path "images/products/large/image.jpg",
    > "images/products/medium/image.jpg", and
    > "images/products/thumbs/image.php"
    >
    > In the product files (listed under the maindirectory under the following
    > path
    > "products/pet_beds/file.php") I have the image files as "<img
    > src="../../images/products/medium/brandy.jpg" width="300" height="188"
    > border="0">, I have come to the conclusion by testing it with one image
    > (which
    > I should have done to begin with :-\ ) that I need to change all the img
    > src
    > tags to the following: <img src="images/products/medium/brandy.jpg"
    > width="300"
    > height="188" border="0">.
    > Is there an easy way to remove the "../../" from each img src in every
    > file?
    >
    > Please please help me. email me at [email]webrealityaol.com[/email] with any help.
    > Please.... Thank you so much in advance.:o:confused;
    >

    Murray *TMM* Guest

Similar Threads

  1. Refresh design time HTML on style change
    By TJoker .NET in forum ASP.NET Building Controls
    Replies: 11
    Last Post: March 7th, 12:01 AM
  2. Replies: 6
    Last Post: February 17th, 02:30 PM
  3. Change relative path to absolute in an HTML file
    By Chinadian in forum PERL Miscellaneous
    Replies: 9
    Last Post: August 30th, 02:50 PM
  4. change attribute in html elements
    By Linus Martinsson in forum ASP.NET General
    Replies: 2
    Last Post: July 29th, 01:46 PM
  5. Dynamically change HTML (PARAM) value in VB.NET
    By Kevin Spencer in forum ASP.NET General
    Replies: 6
    Last Post: July 14th, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139