Solve this design problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wolfy
    Confirmed User
    • Dec 2003
    • 3574

    #1

    Solve this design problem

    I'm trying to make a custom menu that only gives you the options once you have walked through my tour page by page, step by step.

    So if you've been to page 3, you can see the links to page 1 and 2 - but not 5 or 6.

    As you go through the site, your options increase.
    1. Homepage.
    2. Homepage - Page 1
    3. Homepage - Page 1 - Page 2
    4. Homepage - Page 1 - Page 2 - Page 3

    etc etc

    How would you accomplish this?
  • wanted
    Certified Asshole
    • Jan 2003
    • 896

    #2
    Cookies + javascript.
    Living the dream.

    Comment

    • Elli
      Reach for those stars!
      • Apr 2003
      • 17991

      #3
      If
      Then
      Do

      email: [email protected]

      Comment

      • CurrentlySober
        Too lazy to wipe my ass
        • Aug 2002
        • 38944

        #4
        I
        Like
        Poo

        Last edited by CurrentlySober; 04-30-2008, 10:26 AM. Reason: Because I want to have sexual relations with a female elephant...


        👁️ 👍️ 💩

        Comment

        • Wolfy
          Confirmed User
          • Dec 2003
          • 3574

          #5
          The if then do thing could be good...

          How would I do that? I'm not a coder.

          Comment

          • brandonstills
            Confirmed User
            • Dec 2007
            • 1964

            #6
            This can be done without code but I wouldn't recommend it. You would have to create pages that were exactly identical expect for those options. Are you trying to do some kind of progressive from? Usually that's not the way you handle it.

            Brandon Stills
            Industry and programming veteran
            [email protected] | skype: brandonstills | ICQ #495-171-318

            Comment

            • AsianDivaGirlsWebDude
              Purveyor, Fine Asian Porn
              • Jul 2004
              • 38323

              #7
              Hire Dickman's Design - problem solved!!!

              ADG
              Asian Diva Girls - Exclusive Photos and Videos



              Asian Diva Girls Affiliate Program (50% ccBill Revshare)

              Comment

              • Wolfy
                Confirmed User
                • Dec 2003
                • 3574

                #8
                Originally posted by brandonstills
                This can be done without code but I wouldn't recommend it. You would have to create pages that were exactly identical expect for those options. Are you trying to do some kind of progressive from? Usually that's not the way you handle it.

                No, it's for a tour of sorts. People have to read part 2 before part 3 etc...

                For a client. I hate the idea, but he wants it.

                Comment

                • mrkris
                  Confirmed User
                  • May 2005
                  • 2737

                  #9
                  Originally posted by Wolfy
                  No, it's for a tour of sorts. People have to read part 2 before part 3 etc...

                  For a client. I hate the idea, but he wants it.
                  Easiest way is to use Cookies/Sessions.

                  PHP-MySQL-Rails | ICQ: 342500546

                  Comment

                  • Wolfy
                    Confirmed User
                    • Dec 2003
                    • 3574

                    #10
                    Originally posted by mrkris
                    Easiest way is to use Cookies/Sessions.
                    Got a link?

                    Comment

                    • Nookster
                      Confirmed IT Professional
                      • Nov 2005
                      • 3744

                      #11
                      Originally posted by Wolfy
                      Got a link?
                      Easiest is with PHP, but you could also use javascript to produce the cookies. Sessions are over-rated and actually have several flaws upon creation...not to mention you need to watch your coding habits while working with sessions. I prefer cookies because of those reasons.

                      <?php
                      // for page 1
                      $ipp = $_SERVER['PHP_SELF'];
                      setcookie('my_page1', $ipp, (time()+12800), '/', '', 0);

                      // for page 2
                      setcookie('my_page2', $ipp, (time()+12800), '/', '', 0);

                      // etc

                      // to check page 1
                      if(isset($_COOKIE['my_page1'])){
                      echo 'User has viewed page 1.';
                      }

                      // to check page 2
                      if(isset($_COOKIE['my_page2'])){
                      echo 'User has viewed page 2.';
                      }

                      // etc.
                      ?>
                      You really should just hire a programmer to do it though. It's actually quite simple.
                      Last edited by Nookster; 05-02-2008, 09:07 AM.
                      The Best Affiliate Software, Ever.

                      Comment

                      • payd2purv
                        Too lazy to set a custom title
                        • Jan 2008
                        • 2727

                        #12
                        Hey this isn't a design problem!

                        I feel useless Like Usual....

                        Comment

                        • Nookster
                          Confirmed IT Professional
                          • Nov 2005
                          • 3744

                          #13
                          Doh! Line three should read:

                          $ipp = $_SERVER['REMOTE_ADDR'];
                          The Best Affiliate Software, Ever.

                          Comment

                          • Wolfy
                            Confirmed User
                            • Dec 2003
                            • 3574

                            #14
                            Originally posted by Nookster
                            It's actually quite simple.

                            In that case I have a COOL $25 via epass or paypal for the person that can make this happen! :D

                            ICQ 169-334-379 or email wolfy man at g mail dot com thankssssssssss!

                            Comment

                            Working...