uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Headers & Footers problems

Knowledge Base Lobby : uStorekeeper Support Conference : General Questions
Dec-13-17 12:11 AM EST
Original Message
Headers & Footers problems
Author Patrick on 02-26-2002 at 21:11 (EST)
I'm still having trouble getting the header and footer for the order and credit card pages. I read page with the store that was customized and followed what he said and added the following to the ustorekeeper-lib.pl file:

# 21. HTML Header File?
$htmlheader = "$data_directory/header.html";

# 22. Font Display Color for Notes?
$htmlfooter = "$data_directory/footer.html";

and then in the data directory I placed header and footer.html but it does not show up?

In the ustorekeeper-lib.pl file there are two lines that reads:

$layout_start_html = "";
$layout_end_html = "";

I changed them to:

$layout_start_html = "$data_directory/header.html";
$layout_end_html = "$data_directory/footer.html";

But still no header or footer, can you help?

Ps I just purchased the full version.

Thanks
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  Custom uStorekeeper Header and Footer not displaying Microburst Support Team, 2002-02-27 13:21:18 (1)
            Headers & Footers problems Patrick, 2002-02-27 16:39:18 (2)
  Problems Patrick, 2002-02-27 17:33:22 (3)
            uStorekeeper custom header and footer Microburst Support Team, 2002-02-28 10:34:24 (4)
                 Not that part Patrick, 2002-02-28 12:06:04 (5)
                      Customizing the uStorekeeper Order Page Microburst Support Team, 2002-02-28 15:08:34 (6)
                           To Advanced Patrick, 2002-02-28 15:56:34 (7)
                                Headers & Footers Bradley Edwards, 2002-03-19 08:34:56 (8)
                                Headers & Footers Bradley Edwards, 2002-03-19 08:40:33 (9)

Messages In This Discussion
         1. Custom uStorekeeper Header and Footer not displaying
        Author Microburst Support Team on 02-27-2002 at 13:21 (EST)
Have you tried to access the header or footer over the web just by typing the full URL of the path to these pages? I would check that first to make sure this works at a minimum.

Could you provide the full path to either of these pages, and we can look too.
TABLE OF CONTENTS
                 2. Headers & Footers problems
                Author Patrick on 02-27-2002 at 16:39 (EST)
I tried to access the header and footer over the web and I get an internal server error, so I chaged the path to read:

# 24. HTML Header File?
$htmlheader = "http//www.redbarondivers.com/_borders/header.htm";

This does not work on the script but can be accessed over the web. I also used:

# 24. HTML Header File?
$htmlheader = "/www/redbarondivers/_borders/header.htm";

So once more I am at a loss. The link to the site is:

http://www.redbarondivers.com/cgi-bin/store/ustorekeeper.pl

Thanks


TABLE OF CONTENTS
         3. Problems
        Author Patrick on 02-27-2002 at 17:33 (EST)
How do I get this to work for the header and footer?

$layout_start_html = "";
$layout_end_html = "";

What goes between the "" What ever I put there show up on the page as text not html header or footer?
TABLE OF CONTENTS
                 4. uStorekeeper custom header and footer
                Author Microburst Support Team on 02-28-2002 at 10:34 (EST)
Visiting your store link above, it looks like you have already figured it out. Your custom header and footer seems to display correctly now.

Let us know if this is not the case.
TABLE OF CONTENTS
                         5. Not that part
                        Author Patrick on 02-28-2002 at 12:06 (EST)
Not that part the header and footer for the order page and the credit card page. I have the header and footer for the rest of the store but I also want headers and footers on these pages too. Please read above.
TABLE OF CONTENTS
                                 6. Customizing the uStorekeeper Order Page
                                Author Microburst Support Team on 02-28-2002 at 15:08 (EST)
Ok, gotcha now. Lets start with the Order Page, and if this works out for you, we can address the credit card page.

First of all, you don't want to mess with $layout_start_html = "";
$layout_end_html = "";

as they are used internally to the uStorekeeper script in a way that you shouldn't be changing.

However, in the ustorekeeper-lib.pl script you can search on the variable $ord_html to see that it is used to build the HTML for the order form. You could actually add your own HTML header at the beginning of this code and your footer HTML at the end. Not super easy to do, but if you understand HTML you should be able to follow through the script and understand how the $ord_html is built.

We would highly recommend that you make a backup of your script before you start changing it though

And we would also recommend that you start out with a small change and be careful - at the beginning of the $ord_html you will notice the equal sign (=) and all the subsequent lines that concatenate more HTML onto this variable will use the .= sign

For example, when you find the first occurrence of $ord_html it will look something like this:

$ord_html = "";

which adds the string after the .= to the string named before the .=

So be careful if you are cut-n-pasting changes into this script. If you accidently add a line that starts with $ord_html = "your html" instead of $ord_html .= "your html" it will re-initialize the $ord_html variable and you will lose everything that had previously been put into that variable.

Let us know how this works out.

TABLE OF CONTENTS
                                         7. To Advanced
                                        Author Patrick on 02-28-2002 at 15:56 (EST)
Sorry that's a bit to advanced for me, how do the other people do it? there must be an easyier way. This is the last part of the script that I need to get right them I'm all done. Do you have any other ways?

Thanks
TABLE OF CONTENTS
                                                 8. Headers & Footers
                                                Author Bradley Edwards on 03-19-2002 at 08:34 (EST)
Patrick,

I see that you are trying to implement some of my customizations.;

# 21. HTML Header File?
$htmlheader = "$data_directory/header.html";

# 22. Font Display Color for Notes?
$htmlfooter = "$data_directory/footer.html";

These variables were added here to be able to change the headers and footers easily after the modifications that I did, but in order to use these files you will need to make modifications to your scripts similar to the previous post from support.


This is how I did it...

First, at the begining of the ustorekeeper.pl script add the following lines so that your first few lines look like this:

#!/usr/bin/perl
require "ustorekeeper-lib.pl";

# Load the header and footer display pages
open (HDISPLAY, "$htmlheader");
@headsup=;

open (FDISPLAY, "$htmlfooter");
@theend=;

Next, you will need to make changes to the ustorekeeper.pl & ustorekeeper-lib.pl files.

There are 8 places that I modifed in the ustorekeeper.pl file, and they look like this:

print @headsup; # HTML Header
#print "Placing Your Order";
#print "";
#print "
";
#print "";
#print "
";

print @theend; # HTML Footer
#print "";


print @headsup; # HTML Header
#print "Reviewing Your Order";
#print "";
#print "
";
#print "";
#print "

";

print @theend; # HTML Footer
#print "";


print @headsup; # HTML Header
#print "Credit Card Order";
#print "";
#print "
";
#print "";
#print "



";

print @theend; # HTML Footer
#print "";


First occurance of this...

print @headsup; # HTML Header
#print "Thank You";
#print "";
#print "
";
#print "

";

print @theend; # HTML Footer
#print "";


print @headsup; # HTML Header
#print "Electronic Check Order";
#print "";
#print "
";
#print "";
#print "



";

print @theend; # HTML Footer
#print "";


print @headsup; # HTML Header
#print "Print Order";
#print "";
#print "
";

print @theend; # HTML Footer
#print "";


Third occurance of this...

print @headsup; # HTML Header
#print "Thank You";
#print "";
#print "
";
#print "

";

print @theend; # HTML Footer
#print "";


And Fifth occurance of this...

print @headsup; # HTML Header
#print "Thank You";
#print "";
#print "
";
#print "

";

print @theend; # HTML Footer
#print "";


Then there are three places in the ustorekeeper-lib.pl file that need to be changed.
Search for each one of these:

- sub return_error
- sub missing_input
- sub display_message

In each one of these sub processes, change the following:

print @headsup; # HTML Header
#print "...<BR>#print "<BODY><CENTER>";<BR><BR>print @theend; # HTML Footer<BR>#print "</BODY></HTML>"; <BR><BR><BR>And that should do it.<BR><BR>If something like this was used in the scrit originally, it would make things a bit easier to modify and probable save a few lines of code. (just a thought)<BR><BR> -Brad Edwards </font></td></tr></font></td></tr></table></font></td></tr></table><table width=100% cellpadding=5><tr BGCOLOR="#ECF0F6"><td valign=top align=right><font COLOR="#00319C" FACE="Arial,Verdana,Tahoma,Geneva,Helvetica" SIZE="1"><a href="#TOC">TABLE OF CONTENTS</a></font></td></tr></table><table width=100% cellpadding=5><tr BGCOLOR="#ECF0F6"><td valign=top><font COLOR="#00319C" FACE="Arial,Verdana,Tahoma,Geneva,Helvetica" SIZE="2">                                                 <b><A NAME=Array[9]>9. Headers & Footers</b></font><BR>                                                <font COLOR="#00319C" FACE="Arial,Verdana,Tahoma,Geneva,Helvetica" SIZE="1">Author <b>Bradley Edwards</b> on 03-19-2002 at 08:40 (EST)</td></tr><tr bgcolor=#FFFFFF><td><table width=100% cellpadding=5><tr><td width=4%></td><td width=96%><font COLOR="#00319C" FACE="Arial,Verdana,Tahoma,Geneva,Helvetica" SIZE="2">Well, that last message didn't post so well, it looked fine in the preview, but anyway, if you're interested in this info I will post it on my site so you can read it from there.<BR><BR><a href="http://virtual-direct.com/HeaderFooter_Mod.txt">http://virtual-direct.com/HeaderFooter_Mod.txt</a><BR><BR> Good Luck,<BR><BR> -Brad </font></td></tr></font></td></tr></table></font></td></tr></table><table width=100% cellpadding=5><tr BGCOLOR="#ECF0F6"><td valign=top align=right><font COLOR="#00319C" FACE="Arial,Verdana,Tahoma,Geneva,Helvetica" SIZE="1"><a href="#TOC">TABLE OF CONTENTS</a></font></td></tr></table></table></td></tr></table></td></tr><tr><td></td><td><table width="100%" BGCOLOR="#6699CC" cellpadding="12" border="0"><tr><td align="center"><p class=foot>© 2003 Microburst Technologies, Inc.</p></td></tr></table></td></tr></table> <!-- ULTIMATE DROPDOWN MENU v3.4.1 by Brothercake --> <!-- http://www.brothercake.com/dropdown/ --> <script language="javascript" type="text/javascript" src="sniffer.js"></script> <script language="javascript1.2" type="text/javascript"> //UDMv3.4.1 //**DO NOT EDIT THIS ***** if (!exclude) { /////////////////////////////////////////////////////////////////////////// // // ULTIMATE DROPDOWN MENU VERSION 3.5 by Brothercake // http://www.brothercake.com/dropdown/ // // Link-wrapping routine by Brendan Armstrong // // KDE modifications by David Joham // // Opera reload/resize routine by Michael Wallner // http://www.wallner-software.com/ // /////////////////////////////////////////////////////////////////////////// var menuALIGN = "right"; // alignment var absLEFT = 0; // absolute left or right position (if menu is left or right aligned) var absTOP = 0; // absolute top position var staticMENU = false; // static positioning mode (ie5,ie6 and ns4 only) var stretchMENU = true; // show empty cells var showBORDERS = true; // show empty cell borders var baseHREF = ""; // base path var zORDER = 1000; // base z-order of nav structure (not ns4) var mCOLOR = "#6699CC"; // main nav cell color var rCOLOR = "#6699CC"; // main nav cell rollover color var bSIZE = 1; // main nav border size var bCOLOR = "#6699CC" // main nav border color var aLINK = "black"; // main nav link color var aHOVER = "#8b0000"; // main nav link hover-color (dual purpose) var aDEC = "none"; // main nav link decoration var fFONT = "arial,helvetica,sans serif"; // main nav font face var fSIZE = 11; // main nav font size (pixels) var fWEIGHT = "bold" // main nav font weight var tINDENT = 3; // main nav text indent (if text is left or right aligned) var vPADDING = 10; // main nav vertical cell padding var vtOFFSET = 0; // main nav vertical text offset (+/- pixels from middle) var keepLIT = true; // keep rollover color when browsing menu var vOFFSET = -3; // shift the submenus vertically var hOFFSET = 0; // shift the submenus horizontally var smCOLOR = "#f08080"; // submenu cell color var srCOLOR = "#cd5c5c"; // submenu cell rollover color var sbSIZE = 1; // submenu border size var sbCOLOR = "#8b0000" // submenu border color var saLINK = "black"; // submenu link color var saHOVER = "white"; // submenu link hover-color (dual purpose) var saDEC = "none"; // submenu link decoration var sfFONT = "arial,helvetica,sans serif";// submenu font face var sfSIZE = 11; // submenu font size (pixels) var sfWEIGHT = "normal" // submenu font weight var stINDENT = 9; // submenu text indent (if text is left or right aligned) var svPADDING = 4; // submenu vertical cell padding var svtOFFSET = 0; // submenu vertical text offset (+/- pixels from middle) var shSIZE = 2; // submenu drop shadow size var shCOLOR = "#808080"; // menu drop shadow color var shOPACITY = 75; // menu drop shadow opacity (not ie4/ns4/op5) var keepSubLIT = true; // keep submenu rollover color when browsing child menu var chvOFFSET = -3; // shift the child menus vertically var chhOFFSET = -5; // shift the child menus horizontally var closeTIMER = 330; // menu closing delay time var cellCLICK = true; // links activate on TD click var aCURSOR = "hand"; // cursor for active links (not ns4 or opera) var altDISPLAY = "title"; // where to display alt text var allowRESIZE = true; // allow resize/reload var redGRID = false; // show a red grid var gridWIDTH = 0; // override grid width var gridHEIGHT = 0; // override grid height var documentWIDTH = 0; // override document width var hideSELECT = true; // auto-hide select boxes when menus open (ie only) var allowForSCALING = false; // allow for text scaling in mozilla 5 addMainItem("http://www.uburst.com/products.php","Products",100,"center","","",0,0,"");defineSubmenuProperties(120,"center","center",0,0,"");addSubmenuItem("uTest","uTest","","");addSubmenuItem("uReserve","uReserve","","");addSubmenuItem("uShop","uShop","","");addSubmenuItem("uStorekeeper","uStorekeeper","","");addSubmenuItem("uGolf","uGolf","","");addSubmenuItem("uDirectory","uDirectory","","");addSubmenuItem("uSignIn","uSignIn","","");addMainItem("http://www.uburst.com/support.php","Tech Support",100,"center","","",0,0,"");defineSubmenuProperties(120,"center","center",0,0,"");addSubmenuItem("http://www.uburst.com/supportpolicy.php","Support Policy","","");addSubmenuItem("http://www.uburst.com/forum.php","Knowledge Base","","");addSubmenuItem("http://www.uburst.com/documentation.php","Documentation","","");addSubmenuItem("http://www.uburst.com/refsites.php","Reference Sites","","");addMainItem("http://www.uburst.com/legal.php","Legal",100,"center","","",0,0,"");defineSubmenuProperties(120,"center","center",0,0,"");addSubmenuItem("http://www.uburst.com/piracy.php","Software Piracy","","");addSubmenuItem("http://www.uburst.com/legalnotices.php","Legal Notices","","");addSubmenuItem("http://www.uburst.com/privacypolicy.php","Privacy Policy","","");addSubmenuItem("http://www.uburst.com/licensing.php","Licensing","","");addMainItem("http://www.uburst.com/miscellaneous.php","Miscellaneous",100,"center","","",0,0,"");defineSubmenuProperties(120,"center","center",0,0,"");addSubmenuItem("http://www.uburst.com/resellers.php","Reseller Info","","");addSubmenuItem("http://www.uburst.com/contactus.php","Contact Us","","");addSubmenuItem("http://www.uburst.com/sitemap.php","Site Map","",""); } </script> <script language="javascript1.2" type="text/javascript" src="style.js"></script> <BODY BGCOLOR="white" TEXT="black" LINK="#6699CC" ALINK="#6699CC" VLINK="#6699CC"> <script language="javascript1.2" type="text/javascript" src="menu.js"></script> </BODY></HTML>