Results 1 to 9 of 9

Thread: php include image shows on some of my pages not all need help please
      
   

  1. #1
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default php include image shows on some of my pages not all need help please

    Hi all.. i seem to have a glitch and i dont knwo how to fix it.. I learnt how to add single menu php code from navaldesigns thread.. and it works fine..

    well i made one with an image and menu and it seem to be working.. on the some pages the image and menu will show and on others only the menu will show.. the image will have an X on it...

    i dont understand why it is not working on al the page as i used the same include php code on al the pages.. if anyone cna help it willbe greatly appreciated...

    here are the links it does not work on..

    http://www.secretenhancers.com/Penis...s-History.php/
    http://www.secretenhancers.com/Penis...ers-Pumps.php/
    http://www.secretenhancers.com/Penis...Peyronies.php/
    http://www.secretenhancers.com/Penis...s-Surgery.php/

    here is the code i have in the html box on the php pages
    <?php
    include ("menu.php");
    menu();
    ?>

    and on the menu page start

    <? function menu() { ?>

    End of page

    <?
    }
    ?>
    so it works on some of my pages and not others..
    any advice and help will be appreciated...


    thansk Aaron

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: php include image shows on some of my pages not all need help please

    EDIT: Should have checked the page, the header image showed up after taking the "/" off the end of the link


    By chance are you including it on some pages that are in a directory under your public_html (ex. www.yoursite.com/somefolder/page.html)?

    If that is the case the reason is that the link is relative, (ex image.jpg), and needs to be absolute to work anywhere on your site (ex. http://www.yoursite.com/image.jpg).

    If this is the case that the pages where the image doesn't work is because they are in a different folder, then you just need to either open the included file and change all the links to be absolute, or upload the images to that folder so they will be where the included file is looking for them

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default Re: php include image shows on some of my pages not all need help please

    hi can you please be a little more detailed for me as i'm new to php..

    EDIT: Should have checked the page, the header image showed up after taking the "/" off the end of the link

    i published my pages using BV. i thought BV uploads all the necessary pictures of each .bvp file.

    hi all my pages where published to this directorynad they are all .php

    public_html/sesc


    i still dont understand why they are not working.. Any help will be appreciated..
    Thanks in Advnace aaron

  4. #4
    larazovich's Avatar
    larazovich is offline General
    Join Date
    Jul 2006
    Location
    near San Francisco, California
    Posts
    5,818

    Default Re: php include image shows on some of my pages not all need help please

    another possibility is this:
    If you have also published the same pages, ie same name, as html,maybe by accident or previously, whatever, then your include will maybe not work.
    If that is the case you will have to delete the html version..
    Happened to me..
    Liz
    www.sebastopolparty.com
    www.raynordescendents.com

    Ring the bells that still can ring

  5. #5
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: php include image shows on some of my pages not all need help please

    You have created folders named excactly as the pages, and published the pages there . If you take off the /, as watdaflip suggested, you will be ok. The image, in that case, appears in all 4 pages.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  6. #6
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default Re: php include image shows on some of my pages not all need help please

    hi i know it sounds easily to fix.. but i dont quite understand how.. i looked inthe ftp inthat folder and i dont have any folders named the same as my .php pages...
    also allmy pages on the secretenhancers.com are using the exact same menu.php include on everypage..

    i'm sorry i'm new to this is there anyway you can wlak me through it inmore detail..
    Thanks Aaron

  7. #7
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default Re: php include image shows on some of my pages not all need help please

    ok

  8. #8
    gabainc is offline Sergeant First Class
    Join Date
    May 2007
    Posts
    56

    Default Re: php include image shows on some of my pages not all need help please

    hi thansk for the help i finally understand what you were sayihng.. it was in the menu links in the html box that needed to be changed..

    I have another favor to ask

    Is it possibnel to mak ethe home sub menu clickable and not change to the color purpel as it is not user firendly..

    can you please look at the code i edited to see if we cna make i more userfriendly professional..

    Thanks Aaron

    <!-- Keep all menus within masterdiv-->
    <div id="masterdiv">
    <div class="menutitle" onclick="SwitchMenu('sub0')"><a href="<A href="http://www.secretenhancers.com">HOME</a></div">http://www.secretenhancers.com">HOME</a></div>
    <span class="submenu" id="sub0">
    </span>
    <div class="menutitle" onclick="SwitchMenu('sub1')">Penis Extenders</div>
    <span class="submenu" id="sub1">
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders.php">SE">http://www.secretenhancers.com/Penis-Enlargement-Extenders.php">SE Approved Products</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Work.php">How">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Work.php">How They Work</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Facts.php">Extender">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Facts.php">Extender Facts</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Size.php">Penis">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Size.php">Penis Size</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-History.php">Extender">http://www.secretenhancers.com/Penis-Enlargement-Extenders-History.php">Extender History</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Pumps.php">Extenders">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Pumps.php">Extenders vs Pumps</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Peyronies.php">Peroynies">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Peyronies.php">Peroynies Disease</a><br>
    - <a href="<A href="http://www.secretenhancers.com/Penis-Enlargement-Extenders-Surgery.php">Penis">http://www.secretenhancers.com/Penis-Enlargement-Extenders-Surgery.php">Penis Enlargement Surgery</a>
    </span>

  9. #9
    Bethers's Avatar
    Bethers is offline Major General & Forum Moderator
    Join Date
    Feb 2006
    Posts
    5,232

    Default Re: php include image shows on some of my pages not all need help please

    Nothing in the code you posted is causing the color purple - that is set in the page properties - and you can change the link colors to anything there you want.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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