Code

Discussion on AJAX GuestBook

aiglemedia

aiglemedia does not currently provide support for this item.

83 comments found.

One question: Can I reply to the comments given by the people in the guestbook or not?

No… If you are asking for nested.

And will be implemented in the future?

Well guestbook does not require nested comments and you will never find this kind of functionality in any guestbook. I am sorry but this feature will not be added in any of recent updates. You are the first person to ask for this feature and if more people will ask for this feature, i may implement it later.

I like the dark theme but I cant find it in the script, Is this not added yet , if not when is your update?

Will be updated soon in few days.

Very nice script. 2 questions though,, How do you turn on the html code as it shows in the book that it is off and also how do you change the themes? do you have to edit the darkstep, custom or default? and if so,, where in the script do you change the theme name? This is a nice script, but I would like to edit the theme. Please help.

It will be easier to change the theme in ajax version of guestbook as you will have to replace code in only two files. But if you want to change theme of non ajax (also considering admin area) it would be about 8 to 10 files. If only want to change the guestbook signup/view page it would be only one file that is the index.php.

Now to change the theme open the source code of the files and at the top in the head is included 4 files in ajax version and 3 in non ajax for current theme used.

<link href = "themes/<?php echo $gb->theme ?>/css/default.css" rel = "stylesheet" type = "text/css" media = "all"> <link href = "themes/<?php echo $gb->theme ?>/css/darkstrap.css" rel = "stylesheet" type = "text/css" media = "all"> <link href="js/SCEditor/minified/themes/square.min.css" rel="stylesheet" type="text/css" media = "all"> <link href = "themes/<?php echo $gb->theme ?>/css/custom.css" rel = "stylesheet" type = "text/css" media = "all">

square.min.css is bbcode editors file used in ajax version.

default.css is the twitter bootstrap original framework.

darkstrap.css is the black theme modified for twitter bootstrap.(Now darkstrap code does not contain the whole original framework of twitter bootstrap so the original bootstrap file has to be included to work properly. In some modified themes of twitter bootstrap if it contains the whole bootstrap framework you may omit to include the original bootstrap framework.)

custom.css is further modification of bootstrap theme for some html elements of guestbook. Also it contains some css code not related to bootstrap code but is required in guestbook.

Include the bootstrap theme you want to use. Do any modifications required in the custom.css.

There is no way to turn on the HTML code. It is just for the information so no uses HTML code.

Hope so this helps you.

Will make it more easy to change themes in the next update.

I am getting the white screen.

http://alturl.com/iwii2

The server is using PHP-version 5.3.3

Could you please help me out? Thank you.

Hi, Can u show me your php info. http://php.about.com/od/troubleshooting/qt/have_php.htm

Response headers from your site shows. Server Apache/2.0.46 (CentOS) X-Powered-By PHP/4.4.7

Yes I can, that is this link: http://goo.gl/pYU1dC I think you are right about the 4.4.7. The hosting company told me 5.3.3, So I need them to update the PHP version right?

yes you have to upgrade to ver 5 and above as the script requires it. you may check your webhost cpanel to set the php version. you can set manually if your cpanel has the option.

hi,i bought your guestbook.very nice.but i need to change the default gravatar.its quite important for my site.where do i edit it?i just want to change it to my own image.same image for every post.nothing fancy.should be simple.if you dont have time to explain just let me know what file needs to be edited and il work it out myself.but i cant find a file with it.thanks in advance :)

Open guestbook.php and edit line 167 or find this line
$grav_url = "http://www.gravatar.com/avatar/" . md5( strtolower( $emailid ) )."?&s=60";

Make the variable as $grav_url = "http://www.yourdomain.com/image.jpg";

Make sure image is 60×60

wow thanks for the fast response mate.i appreciate it.got it working how i want it now.thanks!

hello, I have a problem I wanted to buy the plugin, but when I click on pay pal I do not open the screen. I do? the first time it happens

Do you mean this guestbook script or some other plugin?

Good afternoon Sorry my English, I’m using a translator Today I bought the Guestbook and I need help for two problems.

First – I need to put the date of each comment in Spanish and the time in 24-hour format, which should modify the code to achieve this.

Second – In Spain we use UTF-8 characters (for example: á é í ó ú !¡ ¿? ñ €) have problems with these characters. If a visitor types a comment, the comment shows bad these characters. If I use the editing part from the manager, for fix a comment and update a comments, this characters change to à © à à ³ à º If I get the xml file and hand-editing and upload to my FTP display the comments OK them in the guestbook, but this method is not very functional.

For utf-8 I have set: In the first line of data.xml:

<? xml version = “1.0” encoding = “UTF-8”>

In index.php and admin.php files: I added the second line:

header (“Content-Type: text / html; charset = utf-8”);

And I changed utf iso by this line:

<meta http-equiv=”content-type” content=”text/html;charset=utf-8”>

And in the file admin.php in the part form

<form method=”post” name=”adminform” id=”adminform” action=”ajax.php” accept-charset=”UTF-8”>

I’ve been testing the guestbook on my hosting: http://www.barmandala.es/ajaxguestbook/index.php

The last comment is the problem you indicated, the oldest comment is what I managed to put properly editing it by hand and uploading to FTP.

I think the problem is in the “text editor”

I need your help please for this problems Thanks in advance

change in data.xml:(you have already done this) <? xml version = “1.0” encoding = “UTF-8”>
open guestbook.php replace line 82 with $this->xmlDoc = new DOMDocument('1.0', 'utf-8');
replace line 285 and 394 with $comments = trim ( $_POST ['comments']);

for date time and locale check for line 277 and 279. Regarding the format of the date check the php manual http://www.php.net/manual/en/function.date.php

Thank you very much for your quick response

“utf8_encode” expects a data format iso (I found this link: http://es1.php.net/manual/en/function.utf8-encode.php )

1and1 my hosting only have in the server en_EN, I send a ticket for change to es_ES, now I will put this format dd-mm-yy HH:mm to the date

Now everything is OK. Thx :)

Glad it worked for you. Please do rate if you liked the product.

hi ! very good script but i have a problem with a valid name .. i’m french and the majority of my website visitors the characters ( é è à ê ï î ù) are no valid in input name … I think the problem comes from here :$regexp = ”/^[A-Za-z\ ]+$/”; is that I’m wrong? Can you help me fix this

Thanks !

Oops my bad, dint read your comment properly. You want the change in Name field. Wait till i look into the code for solution.

You are wright, the regular expression will allow only non utf a to z and space. You need to change the code to $regexp = ”/^[\p{L}A-Za-z\ ]+$/”;

Also search for (will be there multiple times)

$fullname = ucwords ( trim ( strip_tags ( $_POST [‘fullname’] ) ) );

and replace it with

$fullname = mb_convert_case ( trim ( strip_tags ( $_POST [‘fullname’] ) ), MB_CASE_TITLE, “UTF-8” );

Above code will make the name title case. Also you will need to change code as described in above comment

change in data.xml <? xml version = “1.0” encoding = “UTF-8”> open guestbook.php replace line 82 with $this->xmlDoc = new DOMDocument(‘1.0’, ‘utf-8’);

ok good thanks you very much !

Hi the script have the options to disable the captcha and other fields?

Yes you can disable captcha.. For other fields you can set which field is compulsory.

Hi, just installed the guestbook and can’t get it working.. I copy the folder to my webspace, so i have the folder “guestbook” in the root. If i try to open the guestbook or the admin page (same with ajaxguestbook) with firefox i get 3 errors : Fri Aug 29 20:03:40 2014 mod_fcgid: stderr: PHP Warning: Unexpected character in input: ’\\’ (ASCII=92) state=1 in /home/www/web1969/html/ajaxguestbook/includes/guestbook.php on line 159

Fri Aug 29 20:03:40 2014 mod_fcgid: stderr: PHP Warning: Unexpected character in input: ’\\’ (ASCII=92) state=1 in /home/www/web1969/html/ajaxguestbook/includes/guestbook.php on line 159

Fri Aug 29 20:03:40 2014 mod_fcgid: stderr: PHP Parse error: syntax error, unexpected T_STRING in /home/www/web1969/html/ajaxguestbook/includes/guestbook.php on line 159

On my webspace is Php 5.4 running, any ideas?

Regards from Germany, Gerd

Your PHP version is actually < 5.3.0

When i set my php version below that it was giving me the same error.

Crazy, on the sale-webpage from my provider: PhP Version = 5.4, if i click on info Php version = 5.3.6. If if use PhpInfo on my webspace PhP Version = 5.2.6.1 + lenny16 I opened a ticket at my provider….thanks for your help

(...but if i look on the sale page for your script required= php 5.x and not version 5.3 or better)

Gerd

I have just rectified and set it to 5.3 and above. Previous version of the script used to work 5.2 also. I forgot to set it to 5.3 for the new version.

Hi,

can you please tell me how i can change the language of “Submit” and “Cancel” button when writing a new guestbook entry?

Also what can i do, to support special characters like ä ö ü Ä Ö Ü.

Thanks in advance

My index.php is 6kb and has 96 lines. (using the ajax version)

open guestbook.js from js folder and check line no 287 for buttons:{Submit:true, Cancel:false}

true and false should remain as it is. you can change the Submit and Cancel text

Worked, thanks a lot.

Hi i have complaints from users of my website that on mobile devices such as the ipad, the captcha code is always said to be invalid.

How can this be fixed?

I checked on your webpage. I did not got any captcha error and was posted on first try itself.

Using the mobile version or the regular one? Which device and browser?

I used chrome on iPad mini.

Hi there aiglemedia,

your guestbook works great, but how do I include it into an existing html page? I already tried with the common “include”-tag (<?php include (“guestbook/index.php”); ?>), but it isn’t shown as it should. It seems like the css doesn’t work, but the pathes are correct and all files are uploaded to the web server.

This is how it should look like: http://www.digitpool.de/Extras/Privat/gb05.jpg

This is how it do: http://www.digitpool.de/Extras/Privat/gb04.jpg

I also tried to fit the links to the css-files according to the html-file, but nothing worked.

What am I doing wrong? Thanks for your help.

Hi, Guestbook is a standalone product and cannot be included in any pages. You have to create a link to guestbook page. May be html iframe tag can help u out but i have never tried it.

Regarding the css problem, if u give me link to your guestbook i can observe and tell you about the problem.

Generaly there’s no problem with the css-files. It just “appears” when I try to embed it into an other site (.html or .php). Using it as standalone, it works fine. Thanks so far :)

Hi Is there a way to have it send an email to alert me that there is a new guestbook post? Thanks!

Hi, I am extremely sorry for the late reply. Currently there is no feature as to alert when there is a new guest book post.

Are there plans to implement this in the future? I would be very handy.

I will take this feature in consideration.

Hi,

I have a pre sales question : do we receive an email when someone post a comment ( for approval advise )...

thank you pierre

I am sorry but currently that feature is not there in product.

Hi there.. bought the script and was able to set it up quickly.. nice.. But design wise I have problems since i want to change the background color (the main color of the page into a half transparent one. I included the index.php in an iframe. Is this possible and if so, where do I change it.. I suppose I have to change the background color in the default.css but the file is so huge that I really don’t have a clue to look for it..

Hi, Sorry for the delay in my reply as i was out of my country on vacation. You can use the inspect element feature of firefox or chrome by right clicking on the page or any element u want to check the properties of. It will give u the css details.

Check the darkstrap.css line 14 body { background-color: #2f2f2f; color: #c6c6c6; }

Hi Aiglemedia, Great advise and it works also for transparency even in an i-frame.. This is really great.. Thanks a lot!!

I am glad it worked for you.

Hi, at first: your guestbook saved my project. Thanks for that :)

I have also a problem with the european encoding (utf-8). I already read the comments and changed the codes for the non-ajax version, but now I get a blank comment. The comment is generated but the text area stys blank. The brackets of the [CDATA]-tag are empty.

Thanks for help.

Hi, Do you mean to say the CDATA of comments tag in the xml file is empty after submitting the comment. Can you please give me the link to your guestbook page and what changes you made to script or any files through my profile contact.

Yes, that’s what I mean. Here’s the link to the guestbook page: http://villahusum.de/gaestebuch.php

1) I changed line n°1 of the “data.xml” to: <?xml version=”1.0” encoding=”UTF-8”?>

2) Changed line n° 81 of the guestbook.xml to: $this->xmlDoc = new DOMDocument(‘1.0’, ‘utf-8’);

3) Changed lines 206 & 364 (guestbook.xml) to: $comments = trim ( $_POST [‘comments’]);

Before I made those changes everything worked fine (excepting the ÄÜÖ-problem).

I am checking on it.However I upgraded my local pc’s php version to the version of your server and it is working fine for me. I think the problem might be with some php.ini settings on your server although i am not sure. Will see more and inform you if i get a proper solution.

Hello, do you think the next version with the ability to receive a message on e -mail. Is that your version is responsive ?

thank you for your response

Sure that can be implemented easily but will take time for next version as I am busy with other things so there is no update coming from months. Although I do work on guest book project when I get time.

Thank you for the answer , I’m sure many people would be interested in it because there is not much on the script guest books on the net

Hi,

Pre-sale question:

1.- I would like to add GUestBook script into a Html WebSite. does it possible? Or does The script need his own domain and host?

Thanks.

Hi, This script requires a PHP webserver and will not work with html.

Hi i just bought this amazing script and have one question about it How to translate the guestbook in french ?. is there a button to choose the langage ? May i have to edit each line inside pages ?Thanks for your reply.

Hi, Thanks for your support. Somebody had already asked in comments and i think so i had mentioned it. Currently the guestbook is not multilingual and it is in English language only. Although i am making a new version of it which will have multi-language support and buyers can write in their own language in a single file easily.

You will need to edit many files as the error and success messages are from different source files. If you want to just change the form language it will be little easy as it is in single file only. If you are familiar with editing you can find code in files or i can help you out for guestbook form only.

by
by
by
by
by
by