Load pacific page into an iframe when entering a page?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Collectors-info
    General

    • Feb 2006
    • 8703

    #16
    Re: Load pacific page into an iframe when entering a page?

    Many thanks Naval,
    Got the 1st one working fine & all links work great. This will look a lot better with links direct to a product.

    But on the second one you suggested it loads the page fine, but the iframe loads the home page for the store & not the specific link?
    Would it have anything to do with iframe URL being <?php echo $link;?>.
    Should it be something like <?php strlen $link;?> (not sure)

    Put this in the html box.
    <?PHP
    @$link = addslashes($_POST[link]);
    if(strlen($link) == 0)
    {
    $link = "http://astore.amazon.co.uk/collectables-21";
    }
    ?>


    This in the frame


    Not sure if there should be a space between the ; ?>

    And this in the button.



    Saved this page as .php

    Any suggestions as to what might be wrong as this would look a lot neater.



    Many Thanks.
    Regards Chris.

    Collectables, Collecting, collectors-info.com

    www.chrismorris.co.uk

    House build project

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #17
      Re: Load pacific page into an iframe when entering a page?

      Chris, the second solution DOES NOT receive any $_POST variables, and the code should be simply

      <?PHP
      if (strlen($link) == 0)
      {
      $link = "http://astore.amazon.co.uk/collectables-21";
      }
      ?>


      Just delete the line @$link = addslashes($_POST[link]);
      Your buttons seem ok, your frame is ok, it's the code that is wrong. Since it receives no $link the link results null, so it points the frame to your homepage.

      And there is no need to save the page with the buttons as .php, though it should work the same.
      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!

      Comment

      • Collectors-info
        General

        • Feb 2006
        • 8703

        #18
        Re: Load pacific page into an iframe when entering a page?

        Hi , my apologies the code I posted was from the old page. This is the one in the page which was correct.


        <?PHP
        if (strlen($link) == 0)
        {
        $link = "http://astore.amazon.co.uk/collectables-21";
        }
        ?>


        But still no joy with the 2 new pages. (still get the home page loading)

        New Target page is this http://www.collectors-info.com/ifthree.php which works great

        New Linked from this http://www.collectors-info.com/if4.html this one should link to



        Using this link https://ifthree.php?link=http://asto...g=UTF8&node=17


        Arhhhhh Thats beter! Only Joking.
        Regards Chris.

        Collectables, Collecting, collectors-info.com

        www.chrismorris.co.uk

        House build project

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #19
          Re: Load pacific page into an iframe when entering a page?

          Chris,

          delete the html box. Paste the code in the page html, in the Start of page Tag.
          The whole thing depends on the order they have been placed in the page. If you paste the code in the start of page, i think you should have no problem.
          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!

          Comment

          • Collectors-info
            General

            • Feb 2006
            • 8703

            #20
            Re: Load pacific page into an iframe when entering a page?

            Hi Naval, really appreciate the help, but for some reason I can’t get the second one to work, Place it at the start/head/inside, naturally deleting the previous 1st. I even made an iframe & placed it in body. But with no luck.
            But for this situation I only need one button for each of the pages so the submit/form button way will be fine.

            Once again, thanks for the help.

            Chris.
            Regards Chris.

            Collectables, Collecting, collectors-info.com

            www.chrismorris.co.uk

            House build project

            Comment

            • navaldesign
              General & Forum Moderator

              • Oct 2005
              • 12080

              #21
              Re: Load pacific page into an iframe when entering a page?

              Hi Chris,

              the above doesn't work because the & sign breaks the link. However, it can also be done without a form. Have a look at http://www.navaldesign.info/Tips/c-info1.html
              If you need instructions, let me know.
              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!

              Comment

              • Collectors-info
                General

                • Feb 2006
                • 8703

                #22
                Re: Load pacific page into an iframe when entering a page?

                Originally posted by navaldesign
                Hi Chris,

                the above doesn't work because the & sign breaks the link. However, it can also be done without a form. Have a look at http://www.navaldesign.info/Tips/c-info1.html
                If you need instructions, let me know.
                Like it! Yes please.

                Thanks.
                Regards Chris.

                Collectables, Collecting, collectors-info.com

                www.chrismorris.co.uk

                House build project

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #23
                  Re: Load pacific page into an iframe when entering a page?

                  Chris, please send me your email (i have it in my office, but not here)
                  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!

                  Comment

                  • Collectors-info
                    General

                    • Feb 2006
                    • 8703

                    #24
                    Re: Load pacific page into an iframe when entering a page?

                    Hi, you can reach me on this one.


                    Or I have sent my private one to navaldesign.it
                    Regards Chris.

                    Collectables, Collecting, collectors-info.com

                    www.chrismorris.co.uk

                    House build project

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #25
                      Re: Load pacific page into an iframe when entering a page?

                      Chris, i have already sent you an email with the files attached.
                      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!

                      Comment

                      • Collectors-info
                        General

                        • Feb 2006
                        • 8703

                        #26
                        Re: Load pacific page into an iframe when entering a page?

                        Hi, I will try this in the morning, but I assume that I extend the php in the page like bellow.

                        <?PHP
                        if ($link == 1) {
                        $link= "http://astore.amazon.co.uk/collectables-21/026-3481376-7171665?%5Fencoding=UTF8&node=42";
                        }
                        if ($link == 2) {
                        $link= 'http://astore.amazon.co.uk/collectables-21/026-3481376-7171665?%5Fencoding=UTF8&node=17';
                        }
                        if ($link == 3) {
                        $link= 'http://astore.amazon.co.uk/collectables-21/203-6656348-4462346?%5Fencoding=UTF8&node=23';
                        }

                        if (strlen($link) == 0)
                        {
                        $link = "http://astore.amazon.co.uk/collectables-21";
                        }
                        ?>

                        And add extra link like this

                        </DIV>
                        <DIV style="position:absolute;left:9px;top:163px;width: 720px;height:39px;z-index:2" align="center">
                        <BUTTON type="button" onClick="window.location='c-info2.php?link=3'" style="width:720px;height:39px"><P><FONT style="font-size:13px" color="#000000" face="Arial">Double click to edit</FONT></P></BUTTON>
                        </DIV>

                        Many Thanks
                        PS
                        Might have a little bit of work for you??
                        Can you make a program or maybe purchase one & pull it apart to make menus like this

                        The image above came from this site. http://www.all-linksite.com/
                        IE: A databas for URL's with maybe 3 style sheets. It would work just like a link directorys menu, but end up at a url of your own choice. Will make up some web pages to explain a little clearer if its the sort of work you might do.

                        Thanks again.
                        Regards Chris.

                        Collectables, Collecting, collectors-info.com

                        www.chrismorris.co.uk

                        House build project

                        Comment

                        • navaldesign
                          General & Forum Moderator

                          • Oct 2005
                          • 12080

                          #27
                          Re: Load pacific page into an iframe when entering a page?

                          Hi Chris,

                          1. Just add in the first page, another button, make it on Click, with the Onclick action set to "Go to the specified URL" and Onclick Value "c-info2.php?link=3"

                          Then, in the frame page, you add the third "if" statement as you have it above.

                          2. Yes, it can be done. It requires a Database as you said. It has to be designed in a certain way, in order to be efficient, but i can do it. I don't understand though, what you mean be "but end up at a url of your own choice".
                          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!

                          Comment

                          • Collectors-info
                            General

                            • Feb 2006
                            • 8703

                            #28
                            Re: Load pacific page into an iframe when entering a page?

                            Hi Naval. Many thanks for the above. You must be on the night shift?
                            I have looked all over the net & was looking for a better menu system for large menus. This is the closest I have come across.

                            Front end http://www.gentlesource.com/demos/demo-link-manager/
                            Back end http://www.gentlesource.com/demos/de...manager-admin/
                            Home page http://www.gentlesource.com/link-manager/

                            & this may do the trick. But if the menu’s got to large it would be much better to be able to drill down the menu like some of the reciprocal links type software.
                            The most important part would be to see how many files/url are in each area.
                            IE:
                            1st page of menu. Click on website hosts. (Go to new menu)

                            Websites Hosts (19) Website Engineers (46) Website software (123)

                            Websites hosts. Click on Unix. (Go to new menu)

                            Do it your self Hosts (07) Microsoft Hosts (06) Unix (06)

                            Unix
                            Click link. Go to url

                            Link unix host 1?????
                            Link unix host 2?????
                            Link unix host 3?????
                            Link unix host 4?????
                            Link unix host 5?????
                            Link unix host 6?????


                            A small bonus on the software above is that it also tells you how many visits a url has had. This one is only an inexpensive software & wasn’t sure if it could be adapted. If you give me a day I will set up a couple of pages on how it would be nice to work.
                            Oh! The url part was to work the same as this one, direct to a page on my site or any other site. Would be nice to have the facility to tell the link to be _blank _ self _top etcetera, as I am not sure if these menus would have to go in an iframe or could be place on a bv page another way. It would also be nice to link to my own site as _self, but to anther site as _blank.
                            Right! time for some Zzzzz's the birds have just got out of bed over here.lol

                            Cheers.
                            Regards Chris.

                            Collectables, Collecting, collectors-info.com

                            www.chrismorris.co.uk

                            House build project

                            Comment

                            Working...
                            X