guestbook

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Karpa
    Sergeant

    • Dec 2008
    • 23

    guestbook

    What am I doing wrong when it gets like this

    Warning: date() expects parameter 2 to be long, string given in .php on line 244
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #2
    Re: guestbook

    Where ? Link pls..
    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

    • Karpa
      Sergeant

      • Dec 2008
      • 23

      #3
      Re: guestbook



      email : johansson@karpa.se

      Comment

      • navaldesign
        General & Forum Moderator

        • Oct 2005
        • 12080

        #4
        Re: guestbook

        Ok, her eis what I believe that you have done:

        1. You have published the page as guestbook AND as guestbookdb
        2. You have do NOT have a guestbok page actually

        Here is what you should do:

        1. Connect with FTP and delete ALL files related to the guestbook (guestbook.php and guestbookdb.php)
        2. Open the guestbook page in BV, and set its extension to be .html. OR, if you need it for other reasons to continue to be php, rename the page to something like "my_guestbook"
        3. Double click the Guestbook object, click on Advanced, and set the following values:

        Text Filename : guestbookdb.php
        PHP Scriptname: guestbook.php

        Publish the page selecting Publish All Files

        Make sure that your menu points to "guestbook.html" or "my_guestbook.php" (whatever you decide to use)

        It is also advisable that you use "strange" names for the Text filename and the PHP Script name, in example:


        Text Filename : 87G67_guestdb.php
        PHP Scriptname: hyLsR_guestbook.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

        • Karpa
          Sergeant

          • Dec 2008
          • 23

          #5
          Re: guestbook

          HI
          Thanks for your help
          seems to be going well now
          Many thanks

          Comment

          • Karpa
            Sergeant

            • Dec 2008
            • 23

            #6
            Re: guestbook

            HI
            How can I get Swedish clock time in my guestbook
            now I have U.S. time

            Comment

            • guerney
              Private

              • Aug 2010
              • 1

              #7
              Re: guestbook

              hi i just want to ask? is it even possible to publish pages registered elsewhere than bluevoda? thx

              Comment

              • navaldesign
                General & Forum Moderator

                • Oct 2005
                • 12080

                #8
                Re: guestbook

                Originally posted by Karpa View Post
                HI
                How can I get Swedish clock time in my guestbook
                now I have U.S. time
                Not without manually editing the php code.
                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

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #9
                  Re: guestbook

                  Originally posted by guerney View Post
                  hi i just want to ask? is it even possible to publish pages registered elsewhere than bluevoda? thx
                  No, you can't publish BV pages if you don't have a VodaHost account.

                  Please have a look at http://www.vodahost.com/web-hosting-order.htm
                  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

                  • Karpa
                    Sergeant

                    • Dec 2008
                    • 23

                    #10
                    Re: guestbook

                    hi
                    How?

                    Comment

                    • navaldesign
                      General & Forum Moderator

                      • Oct 2005
                      • 12080

                      #11
                      Re: guestbook

                      You need to add the following code:

                      if (function_exists(date_default_timezone_set)) {
                      date_default_timezone_set("Europe/Stockholm");
                      }
                      else{
                      putenv ("Europe/Stockholm");
                      mktime(0,0,0,1,1,1970);
                      }

                      in the gusetbook code:


                      <?php
                      session_start();
                      define('ADMIN_PASS', 'password');

                      if (function_exists(date_default_timezone_set)) {
                      date_default_timezone_set("Europe/Stockholm");
                      }
                      else{
                      putenv ("Europe/Stockholm");
                      mktime(0,0,0,1,1,1970);
                      }


                      function strip_chars($var)
                      {
                      return trim(str_replace("\r", NULL, htmlspecialchars(stripslashes(strip_tags($var)), ENT_QUOTES)));
                      }

                      rest of code...............
                      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