Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: PHP script problem

  1. #21
    Junior Member
    Join Date
    Jul 2011
    Posts
    14

    Default

    The master border is the same on all the pages of the site. When I make a change to it the changes are reflected on all pages including the home page. The only exception is the script, it displays on all pages except the home page.

  2. #22
    Charles Edmonds
    Guest

    Default Re: PHP script problem

    On Sun, 17 Jul 2011 23:05:38 +0000, themcnabs wrote:

    > The master border is the same on all the pages of the site. When I make
    > a change to it the changes are reflected on all pages including the home
    > page. The only exception is the script, it displays on all pages except
    > the home page.


    That is exactly what I have been trying to tell you.

    Unless the folder where the script resides is off the ROOT folder of the
    website and you use an absolute path to it, then it will work on the home
    page, or on all other pages - but not both.

    This means that if you want it to work on all pages, you will need a
    different (a copy is fine) master border for the home page, and when you
    enter the path to the script on that page - it will need to have the
    correct path to the script.

    Again this is because the home page and the other pages are NOT in the same
    folder (unless you changed NOF to publish "flat").

    Therefore the path to the script IS going to be different from the home vs
    the other pages.

    A copy of the master border set as the master border for the home page, and
    then an adjustment of how the script is called from there should get you
    going.

    For an example of this in real life, look at the "Centered" page tutorial
    for EZRound at this URL:

    http://www.ezround.com/centered/

    You will see that when we put the border for the home page in place, it
    requires a copy of the master border set as the border for the home page -
    and that the path to the images has be adjusted ( one dot vs two dots ).

    Good luck on your projects!

    Charles


    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    cjeByteMeSpammers@lansrad.com (remove the "ByteMeSpammers" to email me)
    www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
    for Windows 7 and Vista!"
    www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
    www.setupcast.com - "A revolutionary new publishing system for software
    developers - enhanced for SetupBuilder users!"
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious tools for Clarion Developers"
    www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
    and Forms - Now with PNG support!
    www.lansrad.com - "Intelligent Solutions for Universal Problems"
    www.fotokiss.com - "World's Best Auction Photo Editor"
    -------------------------------------------------------------------------------------------------------

  3. #23
    Senior Member LBA's Avatar
    Join Date
    Jan 2010
    Location
    California
    Posts
    543

    Default

    ...or use an Absolute, instead of Relative, path to the script. Instead of "/search.inc.php", use "http://www.sierravistarealestateaz.com/search.inc.php"... that way it will work no matter where the page is located. But that's not the whole problem because none of that CSS code that's associated with the script is showing up on the home page, either, and that's not part of the include statement. This still makes me suspicious of the masterborder. Totally sure they've got the same masterborder?

  4. #24
    Junior Member
    Join Date
    Jul 2011
    Posts
    14

    Default

    Quote Originally Posted by LBA View Post
    ...or use an Absolute, instead of Relative, path to the script. Instead of "/search.inc.php", use "http://www.sierravistarealestateaz.com/search.inc.php"... that way it will work no matter where the page is located. But that's not the whole problem because none of that CSS code that's associated with the script is showing up on the home page, either, and that's not part of the include statement. This still makes me suspicious of the masterborder. Totally sure they've got the same masterborder?
    I put in an absolute path and it is now working. I tried all the dot combinations and it did not work, and I understand how they work completely. It doesn't make sense but it is working now.

Posting Permissions

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