8 Replies Latest reply on Feb 1, 2013 8:36 AM by Bryan Andrew Rymer

    Menu Button

    Bryan Andrew Rymer

      Hello All...

       

      My wife hired a guy to build her website for her travel photography hobby... However  he took most of our money give us a half finish site and is nowhere to be found...

       

      Withe the VERY LITTLE technology knowledge I have and with the help of the web. I have been able to help her get the site to a state where we are about to publish it....

       

      Here's where we are having some problems... We have a menu bar --- Home --- About US --- Events --- Etc

       

      When the user click on the menu it should take you the page the click on... However nothing happens :-( My my limited knowledge I believe a "php class" is missing.... Please take a look at the code below and if you can offer any advice it would be really helpfull

       

       

      <aside>

          <span class="lft-btn"><a href="" title="HOME-1">HOME</a></span><br>

              <span class="lft-btn"><a href="index.php?view=cms&id=1" title="ABOUT">ABOUT</a></span><br>       

              <span class="lft-btn"><a href="index.php?view=cms&id=3" title="SERVICES">SERVICES</a></span><br>

          <ul class="topnav">

          <li><a style="cursor:pointer" >GALLERY</a>

              <ul>

                           <li><a  style="cursor:pointer" >

                   Portraits             </a>

                                <ul>

                                   <li><a href="index.php?view=common_gallary&id=6">abc</a></li>

                                      </ul>

                                </li>

                           <li><a   href="index.php?view=common_gallary&id=2" >

                   Events and Media             </a>

                                </li>

                           <li><a   href="index.php?view=common_gallary&id=3" >

                   Party Design             </a>

                                </li>

                           <li><a   href="index.php?view=common_gallary&id=4" >

                   Artistic             </a>

                                </li>

                           <li><a   href="index.php?view=common_gallary&id=5" >

                   Candids             </a>

                                </li>

                  

              </ul>

          </li>

      </ul>

          <span class="lft-btn"><a href="index.php?view=films_list" title="FILMS">FILMS</a></span><br>

          <span class="lft-btn"><a href="index.php?view=events" title="EVENTS">EVENTS</a></span><br>               

             

             

                      <span class="lft-btn"><a href="index.php?view=testimonial" title="TESTIMONIALS">TESTIMONIALS</a></span><br>   

                      <span class="lft-btn"><a href="index.php?view=contact" title="CONTACT">CONTACT</a></span><br>

       

       

       

      Totally unrelated --- But she would also like to add a blog to this site.... Can anyone point me the right direction on how to do that..

       

       

      Thank You

        • 1. Re: Menu Button
          osgood_ Level 8

          You only have one page index.php. This one page acts as a template for the other pages which get their information from a database

           

          The link passes variables (view=cms&id=1) to the index.php page and the page should then retrieve the information which is stored in the database.

           

          It obviously is not doing that.

           

          What happens when you click on FILMS, EVENTS, TESTIMONIALS? Does it retrieve the correct information? Or are you saying none of the links work?

          • 2. Re: Menu Button
            Bryan Andrew Rymer Level 1

            Thank you for your respond...

             

            Yes none of the link works...

             

            Are you saying I will have to create a DB? How do I do that? And what type of DB would I need to create..

             

            Thanks..

            • 3. Re: Menu Button
              osgood_ Level 8

              Bryan Andrew Rymer wrote:

               

              Thank you for your respond...

               

              Yes none of the link works...

               

              Are you saying I will have to create a DB? How do I do that? And what type of DB would I need to create..

               

              Thanks..

               

              I'm assuming whoever did the work in the first place created the database otherwise there would be little point in passing php variables via the links.

               

              Can you post the whole of the index.php pages code here because it should have something in the top section of that page which refers to a database connection and/or the variables associated with the links.

              • 4. Re: Menu Button
                Bryan Andrew Rymer Level 1

                I guess he did... Please see the code below...  Any help I can get on this would be AWESOME... Tomorrow is my wife's bday and would like to have this up and running for her... :-(

                 

                Would a simple MS Access DB work if I need to create a DB?

                 

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                <html xmlns="http://www.w3.org/1999/xhtml">

                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

                <title>Main_Page</title>

                <base href="Home-1.html" />

                <style type="text/css">

                body,td,th {

                    color: #0620A3;

                }

                </style>

                <head>

                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

                <meta name="keywords" content=""  />

                <meta name="description" content=""  />

                <link href="../CSS/master.css" rel='stylesheet' type="text/css" />

                <link href="../CSS/nf.lightbox.css" rel="stylesheet" type="text/css" />

                <link href="../CSS/np_style.css" rel="stylesheet" type="text/css" />

                <link href="../CSS/facebox.css" rel="stylesheet" type="text/css" />

                <link href="../CSS/feature-carousel.css" rel="stylesheet" type="text/css" />

                <!--[if IE]><link rel="stylesheet" type="text/css" href="css/all-ie-only.css" /><![endif]-->

                <script type="text/javascript" src="../JS/1jquery_min.js"></script>

                <script type="text/javascript" src="../JS/NFLightBox.js"></script>

                <script type="text/javascript" src="../JS/facebox.js" ></script>

                <script type="text/javascript" src="../JS/general_functions.js"></script>

                <script type="text/javascript" src="../JS/jquery-1.3.2.min.js"></script>

                <script type="text/javascript" src="../JS/jquery-1.7.1.min.js"></script>

                <script type="text/javascript" src="../JS/featureCarousel.min.js" ></script>

                <script type="text/javascript" src="../JS/jquery.js"></script>

                <script type="text/javascript" src="../JS/jquery.k3dCarousel.js"></script>

                <script type="text/javascript" src="../JS/jquery.min.js"></script>

                <script type="text/javascript" src="../JS/jquery.slidingGallery-1.2.min.js"></script>

                <script type="text/javascript" src="../JS/jwplayer.js"></script>

                <script type="text/javascript" src="../JS/moo.ajax.js"></script>

                <script type="text/javascript" src="../JS/scriptbreaker-multiple-accordion-1.js"></script>

                <script type="text/javascript" src="../JS/util.js"></script>

                <script type="text/javascript" src="../JS/validator.js"></script>

                </head>

                <body>

                <script src="../JS/jquery.featureCarousel.min.js" type="text/javascript" charset="utf-8"></script>

                <script type="text/javascript">

                      $(document).ready(function() {

                        var carousel = $("#carousel").featureCarousel({

                          // include options like this:

                          // (use quotes only for string values, and no trailing comma after last option)

                          // option: value,

                          // option: value

                        });

                      });

                    </script>

                    <div class="wrapper">

                    

                <header>

                       <div class="wrapper-sb">

                           

                                <div class="logobx"></div>

                               

                 

                                <div id="radioforma" style="float:right; margin:30px 0px 0px 15px;">

                 

                <object type="application/x-shockwave-flash" data="http://177.255.58.4/~photo/player.swf" width="200" height="26" id="swfe0751" style="visibility: visible; "><param name="wmode" value="transparent"><param name="menu" value="false"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><param name="allowScriptAccess" value="always"><param name="flashvars" value="putanjaxml=http://177.255.58.4/~photo/playlist.xml&putanjapjesme=http://177.255.58.4/~photo/uploads/a udio/"></object>

                <script type="text/javascript">

                    swfobject.embedSWF("http://177.255.58.4/~photo/player.swf", "swfe0751", "200", "26", "9.0.0", "", {putanjaxml: "http://177.255.58.4/~photo//playlist.xml", putanjapjesme: "http://177.255.58.4/~photo/uploads/audio/"}, {wmode: "transparent", menu: "false", quality: "high", bgcolor: "#FFFFFF", allowScriptAccess: "always"}, {});

                </script>

                </div>

                                <a  ><div class="store-btn"></div></a>

                                <a href="index.php?view=login"><div class="login-btn"></div></a>            </div>

                        </header>

                       

                       

                                       

                        <div class="wrapper-sb">

                            <section>

                                <article>

                                    <style>

                .topnav {

                   

                    padding: 40px 28px 25px 0;

                    font-family: "CenturyGothicRegular", "Century Gothic", Arial, Helvetica, sans-serif;

                }

                 

                ul.topnav {

                    padding: 0;

                    margin: 0;

                    font-size: 1em;

                    line-height: 0.5em;

                    list-style: none;

                }

                ul.topnav li {}

                 

                ul.topnav li a {

                    line-height: 10px;

                    font-size: 15px;

                    padding: 10px 5px;

                    color: #fff;

                    display: block;

                    text-decoration: none;

                    font-weight: bold;

                }

                 

                ul.topnav li a:hover {

                   

                    color:white;

                }

                 

                ul.topnav ul {

                    margin: 0;

                    padding: 0;

                    display: none;

                }

                 

                ul.topnav ul li {

                    margin: 0;

                    padding: 0;

                    clear: both;

                }

                 

                ul.topnav ul li a {

                    padding-left: 20px;

                    font-size: 12px;

                    font-weight: normal;

                    outline:0;

                }

                 

                ul.topnav ul li a:hover {

                   

                    color:#fff;

                }

                 

                ul.topnav ul ul li a {

                    color:silver;

                    padding-left: 40px;

                }

                 

                ul.topnav ul ul li a:hover {

                   

                   

                }

                 

                 

                </style>

                 

                <script language="JavaScript">

                 

                $(document).ready(function() {

                    $(".topnav").accordion({

                        accordion:true,

                        speed: 500

                    });

                });

                 

                </script>

                 

                     

                <aside>

                    <span class="lft-btn"><a href="" title="HOME-1">HOME</a></span><br>

                        <span class="lft-btn"><a href="index.php?view=cms&id=1" title="ABOUT">ABOUT</a></span><br>       

                        <span class="lft-btn"><a href="index.php?view=cms&id=3" title="SERVICES">SERVICES</a></span><br>

                    <ul class="topnav">

                    <li><a style="cursor:pointer" >GALLERY</a>

                        <ul>

                                     <li><a  style="cursor:pointer" >

                             Portraits             </a>

                                          <ul>

                                             <li><a href="index.php?view=common_gallary&id=6">abc</a></li>

                                                </ul>

                                          </li>

                                     <li><a   href="index.php?view=common_gallary&id=2" >

                             Events and Media             </a>

                                          </li>

                                     <li><a   href="index.php?view=common_gallary&id=3" >

                             Party Design             </a>

                                          </li>

                                     <li><a   href="index.php?view=common_gallary&id=4" >

                             Artistic             </a>

                                          </li>

                                     <li><a   href="index.php?view=common_gallary&id=5" >

                             Candids             </a>

                                          </li>

                            

                        </ul>

                    </li>

                </ul>

                    <span class="lft-btn"><a href="index.php?view=films_list" title="FILMS">FILMS</a></span><br>

                    <span class="lft-btn"><a href="index.php?view=events" title="EVENTS">EVENTS</a></span><br>               

                       

                       

                                <span class="lft-btn"><a href="index.php?view=testimonial" title="TESTIMONIALS">TESTIMONIALS</a></span><br>   

                                <span class="lft-btn"><a href="index.php?view=contact" title="CONTACT">CONTACT</a></span><br>

                   

                       

                        </aside>                    <div class="album-p">

                                    <div class="album-bx">

                                        <div class="carousel-container"> 

                                              <div id="carousel">

                                                                                                          <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345664467.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345664502.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345664538.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345664570.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345664599.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1345738331.JPG"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1346597182.jpg"  ></a>

                                                 

                                                </div>

                                                                                                        <div class="carousel-feature" >

                                                  <a href="#"><img class="carousel-image" alt="Image Caption" src="uploads/resize_image/1346597231.jpg"  ></a>

                                                 

                                                </div>

                                              

                                               

                                               

                                              </div>  

                                        </div>

                                    </div>

                                   </div>

                                </article>

                            </section>

                        </div>

                       

                        <footer>

                            <div class="footer">

                                <div class="wrapper-sb">

                                   

                <div class="foot-mainbx1">

                                        <div class="foot-lft">

                                            <div class="fo-tit-txt">Welcome to Off The Wall Photography's showroom</div>

                                            <div class="fo-photo-bx"></div>

                                            <div class="fo-dtltxt">

                                                Specializing in a unique style of artistic photography with the combination of Travel and Food. Our service is unparalleled and second to none. We take pride and are famous in our unique style of communications, non intrusive and patient approach with kids and adults. We pride ourselves that all our clients walk out from their event with greater smiles they walked in with.

                                            </div>

                                        </div>

                                        <div class="sep-line"></div>

                                        <div class="foot-mid">

                                            <div class="fo-tit-txt">Events</div>

                                                                        <a href="index.php?view=events">

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="uploads/thumb_images/1345227247.jpg" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">misc<!--<br> --></div>

                                            </div>

                                            </a>

                                                                        <a href="index.php?view=events">

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="uploads/thumb_images/1344848628.jpg" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">ketu<!--<br> --></div>

                                            </div>

                                            </a>

                                                                        <a href="index.php?view=events">

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="uploads/thumb_images/1344633077.jpg" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">Test Developer<!--<br> --></div>

                                            </div>

                                            </a>

                                                                        <a href="index.php?view=events">

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="uploads/thumb_images/1344504949.jpg" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">Human<!--<br> --></div>

                                            </div>

                                            </a>

                                                                        <!--<div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="images/img2.png" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">Malik-Goldstein<br>03/19/2012</div>

                                            </div>

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="images/img2.png" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">Malik-Goldstein<br>03/19/2012</div>

                                            </div>

                                            <div class="eve-mainbx">

                                                <div class="eve-imgbx"><img src="images/img2.png" width="104" height="70" alt=""></div>

                                                <div class="eve-txtbx">Malik-Goldstein<br>03/19/2012</div>

                                            </div> -->

                                        </div>

                                        <div class="sep-line"></div>

                                        <div class="foot-rht">

                                            <div class="fo-tit-txt">"Testimonials"</div>

                                            <div class="box">

                                                <marquee direction="up" scrolldelay="150" ONMOUSEOVER="this.stop();" ONMOUSEOUT="this.start();">

                                                                               

                                                <p class="p1">Thank you so much for your beautiful work!! We still are amazed at how quickly we got our proofs! Thanks for your efficiency!</p>

                                               

                                                <p class="read-btn">- Benjaminson & Rapoport</p>

                                               

                                                                               

                                                <p class="p1"> Thank You for a beautiful job </p>

                                               

                                                <p class="read-btn">- Marrus & Dubinsky</p>

                                               

                                                                               

                                                <p class="p1">testing Wonder full experiences with this service ! i doesnt work</p>

                                               

                                                <p class="read-btn">- Beata</p>

                                               

                                                                                </marquee>

                                                <span class="read-btn"><a href="#" title="Read More">Read More</a></span>

                                            </div>

                                        </div>

                                    </div>

                 

                                    <div class="foot-mainbx2">

                                        <span class="foot2"><a href="#" title="Offthewallphotography.com">Offthewallphotography.com</a></span>

                                        <div class="foot2">All rights reserved &copy; 2013  </div>

                                    </div>                   

                                </div>

                            </div>

                        </footer>

                    </div>

                    </body>

                </html>

                • 5. Re: Menu Button
                  osgood_ Level 8

                  Nope, I can't see any reference to a database connection in that page. Maybe that's as far as the person got and then disappeared?

                   

                  They obviously had something in mind by inserting variables (index.php?view=testimonial) as part of the link. Usually this would indicate the page is meant to get some dynamic data from a database and fetch it to the page.

                   

                  I'd say you have been stuffed by whoever got it this far. Without the necessary knowledge of what was intended this isn't going very far at all.

                   

                  If the index page works but the links dont function then you may well only be left with the option of  creating individual pages associated with each link.

                  • 6. Re: Menu Button
                    Bryan Andrew Rymer Level 1

                    I have individual pages how do I get it to switch to the page once click on the link...

                     

                    Thanks for your help..

                     

                    Do you maind explainging what the following block of code doing... It look as tho its referencing to a server or some sort...

                     

                     

                    <object type="application/x-shockwave-flash" data="http://177.255.58.4/~photo/player.swf" width="200" height="26" id="swfe0751" style="visibility: visible; "><param name="wmode" value="transparent"><param name="menu" value="false"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF"><param name="allowScriptAccess" value="always"><param name="flashvars" value="putanjaxml=http://177.255.58.4/~photo/playlist.xml&putanjapjesme=http://177.255.5 8.4/~photo/uploads/audio/"></object>

                    <script type="text/javascript">

                        swfobject.embedSWF("http://177.255.58.4/~photo/player.swf", "swfe0751", "200", "26", "9.0.0", "", {putanjaxml: "http://177.255.58.4/~photo//playlist.xml", putanjapjesme: "http://177.255.58.4/~photo/uploads/audio/"}, {wmode: "transparent", menu: "false", quality: "high", bgcolor: "#FFFFFF", allowScriptAccess: "always"}, {});

                    </script>

                    </div>

                    • 7. Re: Menu Button
                      osgood_ Level 8

                      If you have individual pages then you need to change the links.

                      At the moment the 'Party Design' link is going to index.php. If you have a page for 'Party Design' change the links from:

                       

                       

                      <li><a  href="index.php?view=common_gallary&id=3" >Party Design</a></li>

                       

                      To:

                       

                       

                      <li><a  href="party_design.php?view=common_gallary&id=3" >Party Design</a></li>

                       

                       

                      Obviously change the link to the name of your associated page (in the example above I've just called it 'party_design.php')

                       

                       

                      The block of code you posted is a sourcing some audio plugin for the page. Do you have sound on the page?

                      • 8. Re: Menu Button
                        Bryan Andrew Rymer Level 1

                        Thank You... Will try this and let you know the result

                         

                        She wanted sound but there's no sound on the page..