Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > BlueVoda Website Builder Forums > BlueVoda Tips, Tricks and Shortcuts

Notices

BlueVoda Tips, Tricks and Shortcuts Know a great BlueVoda (or Web design) tip or trick? Share it with the world here. Become famous for your brilliance! Please, No Questions or Problems!

Reply
 
LinkBack Thread Tools
  #61  
Old 12-09-2006, 09:30 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #62  
Old 12-10-2006, 12:20 AM
Bethers's Avatar
Major General & Forum Moderator
 
Join Date: Feb 2006
Posts: 5,176
Default Re: Single Menu Page with Bv and PHP

Emailing you - as I don't have the cart up and all pages up.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #63  
Old 12-10-2006, 10:26 AM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #64  
Old 12-10-2006, 10:41 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #65  
Old 12-10-2006, 06:15 PM
Bethers's Avatar
Major General & Forum Moderator
 
Join Date: Feb 2006
Posts: 5,176
Default 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!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #66  
Old 12-10-2006, 08:06 PM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default Re: Single Menu Page with Bv and PHP

Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #67  
Old 12-10-2006, 08:50 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #68  
Old 12-10-2006, 10:37 PM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default 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'<HEAD><TITLE>'.$title.'</TITLE></HEAD><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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #69  
Old 12-11-2006, 04:52 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #70  
Old 12-11-2006, 05:28 AM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default Re: Single Menu Page with Bv and PHP

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

Sorry if I was confusing, but you said..
Quote:
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:
<?php function site_header($title) { echo'<HEAD><TITLE>'.$title.'</TITLE></HEAD><BODY>'; } ?>
//----------------------------//
site_header('.Login To GraphXntrix.com.');
I was asking what would would occur if the two <HEAD> tags were removed where its says
Quote:
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
Quote:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #71  
Old 12-11-2006, 06:53 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #72  
Old 12-11-2006, 05:44 PM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #73  
Old 12-11-2006, 05:55 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 8,830
Default 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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #74  
Old 12-11-2006, 09:12 PM
Robert's Avatar
First Lieutenant
 
Join Date: May 2005
Location: Dallas, TX USA
Posts: 300
Send a message via Skype™ to Robert
Default 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:

Quote:
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:
<? function site_header() {><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


__________________
Robert
www.GraphXntrix.com
Your Visual Revolution Solution
Digg this Post!Add Post to del.icio.us