![]() |
|
| |||||||
| 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! |
![]() |
| | LinkBack | Thread Tools |
|
#61
| ||||
| ||||
| 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! |
|
#62
| ||||
| ||||
| 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 |
|
#63
| ||||
| ||||
| 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. |
|
#64
| ||||
| ||||
| 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! |
|
#65
| ||||
| ||||
| 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 |
|
#66
| ||||
| ||||
| Quote:
public_html/account/
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');
}
?> 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();
?> 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>?> 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? |
|
#67
| ||||
| ||||
| 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! |
|
#68
| ||||
| ||||
| 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>';
}
?> Code: site_header('.Login To GraphXntrix.com.'); |
|
#69
| ||||
| ||||
| 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! |
|
#70
| |||||
| |||||
| SWEEEET!!! that's what I wanted to know. Sorry if I was confusing, but you said.. Quote:
Code:
Quote:
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:
|
|
#71
| ||||
| ||||
| 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! |
|
#72
| ||||
| ||||
| 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(); Thanks, I have to run errands but will be back later. I really appreciate this naval, you have my gratitude. |
|
#73
| ||||
| ||||
| 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! |
|
#74
| ||||
| ||||
| 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:
Code: <? function site_header() {><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|