Results 1 to 11 of 11

Thread: guestbook
      
   

  1. #1
    Karpa is offline Sergeant
    Join Date
    Dec 2008
    Location
    Kristianstad Sweden
    Posts
    23

    Exclamation 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

  2. #2
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  3. #3
    Karpa is offline Sergeant
    Join Date
    Dec 2008
    Location
    Kristianstad Sweden
    Posts
    23

  4. #4
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


  5. #5
    Karpa is offline Sergeant
    Join Date
    Dec 2008
    Location
    Kristianstad Sweden
    Posts
    23

    Smile Re: guestbook

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

  6. #6
    Karpa is offline Sergeant
    Join Date
    Dec 2008
    Location
    Kristianstad Sweden
    Posts
    23

    Default Re: guestbook

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

  7. #7
    guerney is offline Private
    Join Date
    Aug 2010
    Posts
    1

    Default Re: guestbook

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

  8. #8
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: guestbook

    Quote 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!


  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: guestbook

    Quote 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!


  10. #10
    Karpa is offline Sergeant
    Join Date
    Dec 2008
    Location
    Kristianstad Sweden
    Posts
    23

    Default Re: guestbook

    hi
    How?

  11. #11
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default 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!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49