Announcement

Collapse
No announcement yet.

Single Menu Page with Bv and PHP

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    Re: Single Menu Page with Bv and PHP

    Hi Beth, can i have an URL of the pages with the Header and the rest ?= just curious to have a look.
    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


    • #62
      Re: Single Menu Page with Bv and PHP

      Emailing you - as I don't have the cart up and all pages up.
      Beth
      A Child's Palace - Pinata Palace - Moxie Enterprises

      SEO and Marketing Tools
      SEO - The Basics

      Comment


      • #63
        Re: Single Menu Page with Bv and PHP

        after uploading the necessary php files and publishing the header.php and footer.php files i can't get anything to show. However, I am attempting to call the login page by typing the url directly into the address bar. Is this wrong? I think I should be calling from a form button initially. Also, when I created the header/footer files and inserted the php codes at Start and End of Page..It kept giving me errors referrencing line 1 in the file specified. So I would delete that one character and try again. Then it's on line 15, so...delete. Now it's line 14, which is nothing, so at this point I have made a mess of myself.

        Next question, the php pages are in a ...hmmm gonna try something. What is the proper file permission settings for the login script I've been working with. when I FTP's them all, they keep getting set to 644.
        Robert
        www.GraphXntrix.com
        Your Visual Revolution Solution

        Comment


        • #64
          Re: Single Menu Page with Bv and PHP

          Robert
          you either need to redefine the functions yourself, or use completely new functions. If you use new functions, you need to edit the script files accordingly.
          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


          • #65
            Re: Single Menu Page with Bv and PHP

            Robert, I discovered the hard way - you cannot name a file header - as you already have a header file - that will cause a fatal error. If you have named a file header.php - change all references to it to header1.php or a completely different word.

            I was stuck on this for 3-4 days and with Naval's help last night/this morning - we finally realized I couldn't name a file header!!!
            Beth
            A Child's Palace - Pinata Palace - Moxie Enterprises

            SEO and Marketing Tools
            SEO - The Basics

            Comment


            • #66
              Re: Single Menu Page with Bv and PHP

              Originally posted by navaldesign
              Robert
              you either need to redefine the functions yourself, or use completely new functions. If you use new functions, you need to edit the script files accordingly.
              Thanks for helping me along with this. Below is the current files involved and the error I am recieving. the file structure and some notes are as follows:

              public_html/account/
                • signin.html
              • I made this page normally and simply recreated the form by using the same ACTION,METHOD and the same fields and labels using the name/value pairs as it is used in the login.php file
              public_html/account/
                • login.php
              • there are other .php files in this directory as well

              public_html/include/
                • database.php
                • pre.php --- this is defines the functions for the header and footer
                • user.php
                • header.php --- made in bluevoda
                • footer.php --- bluevoda created as well and their source images are below
                • header.jpg
                • footer.jpg.
              the signin.html page is here: http://www.graphxntrix.com/signin.html

              pre.php looks like this:

              Code:
              <?php
              function header() {
               include ($DOCUMENT_ROOT.'/include/header.php');
              }
              //the syntax of this function may be wrong because I somehow managed to delete the original .php file so I had to try to write it from memory
              function site_header("$title") {
               echo'<HEAD><TITLE>'.$title.'</TITLE><HEAD><BODY>';
              }
              function site_footer() {
               include ($DOCUMENT_ROOT.'/include/footer.php');
              }
              ?>
              login. php file looks like this:

              Code:
              <?php
              {
              include($DOCUMENT_ROOT.'/include/database.php');
              include($DOCUMENT_ROOT.'/include/pre.php');
              include($DOCUMENT_ROOT.'/include/user.php');
              if (user_isloggedin()) {
                      user_logout();
                      $user_name='';
              }
              if ($submit) {
               user_login($user_name,$password);
              }
              site_header('.Login To GraphXntrix.com.');
              if ($feedback) {
               echo '<FONT COLOR="RED"><H2>'.$feedback.'</H2></FONT>';
              }
              echo '<H3>Login To GraphXntrix.com</H3>
               <P>
               Enter your user name and password.
               <P>
               <FORM ACTION="'. $PHP_SELF .'" METHOD="POST">
               <B>User Name:</B><BR>
               <INPUT TYPE="TEXT" NAME="user_name" VALUE="" SIZE="10" MAXLENGTH="15">
               <P>
               <B>Password:</B><BR>
               <INPUT TYPE="password" NAME="password" VALUE="" SIZE="10" MAXLENGTH="15">
               <P>
               <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Login To GrapXntrix.com">
               </FORM>
               <P>
               <A HREF="register.php">[ Register A New Account ]</A>
               <P>
               <A HREF="changepass.php">[ Change Your Password ]</A>
               <P>
               <A HREF="changeemail.php">[ Change Your Email Address ]</A>';
              site_footer();
              ?>
              header.php

              Code:
              <?php
              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
              <HTML>
              <HEAD>
              <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
              <TITLE></TITLE>
              <META name="GENERATOR" content="Created by BlueVoda">
              </HEAD>
              <BODY bgcolor="#000000" text="#FFFFFF" link="#00FFFF" vlink="#FF00FF" alink="#00FF00">
              <IMG src="header.jpg" alt="" align="top" border="0" width="800" height="80" style="position:absolute;left:0px;top:0px;z-index:0">
              </BODY>
              </HTML>?>
              Parse error: syntax error, unexpected '<' in /home2/grapxcom/public_html/include/header.php on line 2

              i just now changed the image names used for the header and footer but get now:

              Fatal error: Cannot redeclare header() in /home2/grapxcom/public_html/include/pre.php on line 3

              do you mean change the actual file name: header.php ----> to something else?
              Robert
              www.GraphXntrix.com
              Your Visual Revolution Solution

              Comment


              • #67
                Re: Single Menu Page with Bv and PHP

                Robert,


                part of the problem is that you have changed the function to "header" instead of site_header, and this causes problems with html's "header" definition.

                Please follow these instructions:

                pre.php looks like this:
                Forget all about this, unless there is more code in here which you have not posted here. If there is no other code, you can even delete the pre.php file. In other case, i need the full code.




                login. php file looks like this:

                <?php
                {
                include($DOCUMENT_ROOT.'/include/site_header.php'); Add this line
                include($DOCUMENT_ROOT.'/include/site_footer.php'); Add this line
                include($DOCUMENT_ROOT.'/include/database.php');
                include($DOCUMENT_ROOT.'/include/pre.php'); Delete this line, unless there was more code, as said above.
                include($DOCUMENT_ROOT.'/include/user.php');
                if (user_isloggedin()) {
                user_logout();
                $user_name='';
                }
                if ($submit) {
                user_login($user_name,$password);
                }
                site_header(); //convert this line to what you see.
                if ($feedback) {
                echo '<FONT COLOR="RED"><H2>'.$feedback.'</H2></FONT>';
                }
                echo '<H3>Login To GraphXntrix.com</H3>
                <P>
                Enter your user name and password.
                <P>
                <FORM ACTION="'. $PHP_SELF .'" METHOD="POST">
                <B>User Name:</B><BR>
                <INPUT TYPE="TEXT" NAME="user_name" VALUE="" SIZE="10" MAXLENGTH="15">
                <P>
                <B>Password:</B><BR>
                <INPUT TYPE="password" NAME="password" VALUE="" SIZE="10" MAXLENGTH="15">
                <P>
                <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Login To GrapXntrix.com">
                </FORM>
                <P>
                <A HREF="register.php">[ Register A New Account ]</A>
                <P>
                <A HREF="changepass.php">[ Change Your Password ]</A>
                <P>
                <A HREF="changeemail.php">[ Change Your Email Address ]</A>';
                site_footer();
                ?>



                site_header.php
                You have mistaken here. Please follow these simple steps:
                You have created the header in BV. Ok, open the page in BV, now click on Page html, Start of page, and paste this code:

                <? function site_header() { ?>

                Now click on the End of page, and paste this other code:


                <?
                }

                ?>

                These steps are described in post nr 1 of this very thread.
                Save the page as "site_header" and publish it in the same folder where the pre.php was. ($DOCUMENT_ROOT/include). Attention: before publishing set the extension to php.

                site_footer.php


                Follow excactly the same steps with "site_footer.php:
                In Page html, Start of Page, paste the code:

                <? function site_footer() { ?>

                and in the End of Page tag,

                <?
                }

                ?>

                Save the page as "site_footer" and publish as php.

                Ok, you are done.
                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


                • #68
                  Re: Single Menu Page with Bv and PHP

                  okay...

                  now that all is set, before I toss out the pre.php there is one more concern.

                  site_header(); //convert this line to what you see.

                  huh?

                  okay...maybe this will help me: If I removed the HEAD tags from the script below...

                  Code:
                  <?php
                  function site_header($title) {
                   echo'[COLOR=red][B]<HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]TITLE>'.$title.'</TITLE>[COLOR=red][B]</HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]BODY>';
                  }
                  ?>
                  What will would an instance of the following do:

                  Code:
                  site_header('.Login To GraphXntrix.com.');
                  WOW, I sincerely hope that I am not making an easy task difficult, and I thank everyone who has contributed to this thread.
                  Robert
                  www.GraphXntrix.com
                  Your Visual Revolution Solution

                  Comment


                  • #69
                    Re: Single Menu Page with Bv and PHP

                    Robert, you are really confusing me. The site_header function, as it was before, simply presented the phrase "Login to GraphXntrix.com" as a header. Now we have rebuilt it, making use of the BV page that you have built. We have done the same for the footer. And, we include the two functions separately, instedd of having them both in the pre.php page. So everything should work just fine. I don't understand what you mean by

                    What will would an instance of the following do:


                    Code:
                    site_header('.Login To GraphXntrix.com.');



                    Thsi code doesn't exist anymore, we have converted it . It used the old site_header function, using "Login To GraphXntrix.com" as argument, to place this frase on top of your login page. Now, you don't have it anymore, because you have created a totally new header in BV. If you need such a frase, just add it in your BV header.
                    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


                    • #70
                      Re: Single Menu Page with Bv and PHP

                      SWEEEET!!! that's what I wanted to know.

                      Sorry if I was confusing, but you said..
                      It used the old site_header function, using "Login To GraphXntrix.com" as argument, to place this frase on top of your login page. Now, you don't have it anymore, because you have created a totally new header in BV. If you need such a frase, just add it in your BV header.
                      The trouble I have been having is that I wasn't sure what modifications to these two pieces of code below that would allow for me to use my own header and footer without eliminating this function. Otherwise I need a suggestion on how I am supposed to write this in to my bv made site_header

                      Code:
                      [LEFT]<?php
                      function site_header($title) {
                      echo'[COLOR=red][B]<HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]TITLE>'.$title.'</TITLE>[COLOR=red][B]</HEAD>[/B][/COLOR][COLOR=black]<[/COLOR]BODY>';
                      }
                      ?>[/LEFT]
                       
                      [LEFT]//----------------------------//[/LEFT]
                       
                      
                      [LEFT]site_header('.Login To GraphXntrix.com.');
                      
                      [/LEFT]
                      I was asking what would would occur if the two <HEAD> tags were removed where its says
                      echo'<HEAD><TITLE>'.$title.'</TITLE></HEAD><BODY>';
                      from the that original function. what would happen..i'd try it out myself but I would make a mess. =)


                      which html properties would i pull up the image html properties used for site_header or the page html BEFORE HEAD tab

                      Either way, right now it isn't anywhere on my pages and you can try to pull up login.php or the page I want to start from preferrably:

                      http://www.graphxtrix.com/account/signin.html

                      http://www.graphxntrix.com/account/login.php

                      hope this helps right now I get
                      Parse error: syntax error, unexpected '>' in /home2/grapxcom/public_html/include/site_header.php on line 1
                      Robert
                      www.GraphXntrix.com
                      Your Visual Revolution Solution

                      Comment


                      • #71
                        Re: Single Menu Page with Bv and PHP

                        Robert, you DON'T need that any more. Just add this phrase (Login To GraphXntrix.com) in your site_header page, as you would do in any normal BV page. When the login script calls the site_header function, as you have created it in BV, it will place BOTH the image and the "Login to ...." above the form.

                        Unless you use the same site_header for other pages too. In that case, you would need to create a new function, let's call it "site_header1" just for your loggin script.

                        And, i have not been able to find your signin page. It gives me a "page not found "error.
                        Correction: i have found it. You had simply mistaken the link, missing the "n" in your domain name.

                        If you have trouble finishing it, i do take cusomized jobs as a freelance. If you are interested, contact me.
                        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


                        • #72
                          Re: Single Menu Page with Bv and PHP

                          oops, sorry about that naval. I will be sure to double check things next time.

                          Correct. The way we have everything setup now, that script is not included on the login page, but ('.Login to GraphXntrix.com.') will change on like 5 different pages or so.

                          Also where it used to say

                          Code:
                          site_header('.Login to GraphXntrix.com.');
                          //now says...
                          site_header();
                          Should I remove or should it stay seeing as how the include is merely the function site_header?

                          Thanks, I have to run errands but will be back later. I really appreciate this naval, you have my gratitude.
                          Robert
                          www.GraphXntrix.com
                          Your Visual Revolution Solution

                          Comment


                          • #73
                            Re: Single Menu Page with Bv and PHP

                            Yes, if this loggin script consists of more pages, wherever it says
                            site_header('.Login to GraphXntrix.com.');
                            replace with
                            site_header();

                            MAke also sure to add, in those pages too, the two lines:

                            include($DOCUMENT_ROOT.'/include/site_header.php');
                            include($DOCUMENT_ROOT.'/include/site_footer.php');
                            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


                            • #74
                              Re: Single Menu Page with Bv and PHP

                              Thank you kindly. I have had this exactly as it needs to be according to our troubleshooting instructions. all is added and deleted and saved where they should be, but I still need to know why I am recieving the error I I mentioned earlier now that everything is sorted. The error, and the line of code it refers to below:

                              Parse error: syntax error, unexpected '>' in /home2/grapxcom/public_html/include/site_header.php on line 1
                              here is line one of my site_header:
                              Code:
                              [SIZE=1][COLOR=#0000ff] [/COLOR][/SIZE]
                              <? function site_header() {>[SIZE=1]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                              [/SIZE]


                              Robert
                              www.GraphXntrix.com
                              Your Visual Revolution Solution

                              Comment


                              • #75
                                Re: Single Menu Page with Bv and PHP

                                <? function site_header() {?> correct this

                                <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


                                etc. ......


                                Look at post #67
                                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

                                Working...
                                X