Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guestbook
Above of textarea 'Komentar' there is a advice:
Notice: Use of undefined constant Kommentar - assumed 'Kommentar' in /mnt/web4/52/51/52207851/htdocs/cms/plugins/guestbook.php on line 566.

But i think that error of internal server is due to file guestbook/comprueba.php; this file must have some line bad.

Look private messages.
Reply
Hi SlazZe, the problem is that you server do not support send mail function of php.

Regards.
Reply
Hi!
I love this plugin but I am not able to swich language in english and italian.
I'm using i18n and I've put the it_IT in the Lang folder. This are the pages
http://www.giorgioandsara.com/wedding/gu...setlang=en
http://www.giorgioandsara.com/wedding/gu...setlang=it

Why I am still seeing english? Someone can help me!
Thank you very much

chiara
Reply
Hi chiara,
It is easy; simply add these lines on line 223 inside guestbook.php:
Code:
if (isset($_GET['setlang'])){
        $LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
    }

There is to test..

Regards
Reply
cumbe Wrote:Hi chiara,
It is easy; simply add these lines on line 223 inside guestbook.php:
Code:
if (isset($_GET['setlang'])){
        $LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
    }

There is to test..

Regards

Hi Cumbe!
Thank you so much for the quickly and clear answer.. I've tried, but it seems is not working again. This is my little piece of code inside guestbook.php


function sv_book($usu, $cada, $eleg, $capt, $vemot){
global $EMAIL;
global $SITEURL;
global $i18n;
global $LANG;
global $PRETTYURLS;

if (file_exists(GSDATAPATH.'users/'.$usu.'.xml')) {
$data = getXML(GSDATAPATH.'users/'.$usu.'.xml');
$EMAIL = $data->EMAIL;
$LANG = $data->LANG;
}
if (isset($_GET['setlang'])){
$LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
}

//traducción idiomas i18n
i18n_merge('guestbook', $LANG) || i18n_merge('guestbook','en_US');

...

is it right?
PHP is not my best friend.. Sad
There is some error in my code?

Thank you again for your precious help!
chiara
Reply
chiara Wrote:
cumbe Wrote:Hi chiara,
It is easy; simply add these lines on line 223 inside guestbook.php:
Code:
if (isset($_GET['setlang'])){
        $LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
    }

There is to test..

Regards

Hi Cumbe!
Thank you so much for the quickly and clear answer.. I've tried, but it seems is not working again. This is my little piece of code inside guestbook.php


function sv_book($usu, $cada, $eleg, $capt, $vemot){
global $EMAIL;
global $SITEURL;
global $i18n;
global $LANG;
global $PRETTYURLS;

if (file_exists(GSDATAPATH.'users/'.$usu.'.xml')) {
$data = getXML(GSDATAPATH.'users/'.$usu.'.xml');
$EMAIL = $data->EMAIL;
$LANG = $data->LANG;
}
if (isset($_GET['setlang'])){
$LANG = $_GET['setlang']. '_'.strtoupper($_GET['setlang']);
}

//traducción idiomas i18n
i18n_merge('guestbook', $LANG) || i18n_merge('guestbook','en_US');

...

is it right?
PHP is not my best friend.. Sad
There is some error in my code?

Thank you again for your precious help!
chiara
I found it! There is something wrong in the it_IT.php I've downloaded! Or maybe I touched something!

...

I mistakenly deleted a comma in the list! Now everything works perfectly! Thank you again. All your help and this forum is invaluable!
Reply
A lot of spam captcha misses. How to make a captcha reliable?
Thank you.
Version 3.2 guestbook
Reply
Hi batka16, do you have captcha enabled?

Regards.
Reply
Yes, enabled. I am modified font, size, angle of inclination. It did not work. A lot of spam.
Can I block on ip?
Reply
Help me, please. Every day we get 25-50 spam posts.
Reply
i can to do a small modification to block ip if you want, but i do not understand it, because catpcha works good...
do you think that is a spam robot or a person?

Regards.
Reply
if your form, you can leave a link without rel = "nofollow", may you the site made to the database allsubmitter or other program
Reply
(2012-11-15, 04:45:41)cumbe Wrote: i can to do a small modification to block ip if you want, but i do not understand it, because catpcha works good...
do you think that is a spam robot or a person?

Regards.

This is spam robot. Spam messages are many.


Attached Files
.doc   spam.doc (Size: 169 KB / Downloads: 8)
Reply
I haven't used this plug in in a long time.
I recently installed it on a localhost and after I filled in the form, and presented enter, the screen went blank. No action.

I did a debug on the form page and this is what I got.

Notice: Use of undefined constant D - assumed 'D' in /Users/homerjackson/offline-web design work/philajazzproject-test/theme/bhmadbuilding4/brightmoments.php on line 88

Notice: Use of undefined constant Y - assumed 'Y' in /Users/homerjackson/offline-web design work/philajazzproject-test/theme/bhmadbuilding4/brightmoments.php on line 88

Notice: Use of undefined constant N - assumed 'N' in /Users/homerjackson/offline-web design work/philajazzproject-test/theme/bhmadbuilding4/brightmoments.php on line 88

Warning: DOMDocument::load() [domdocument.load]: Document is empty in /Users/homerjackson/offline-web design work/philajazzproject-test/data/other/logs/guestbook.log, line: 1 in /Users/homerjackson/offline-web design work/philajazzproject-test/plugins/guestbook.php on line 308

Warning: DOMDocument::load() [domdocument.load]: Start tag expected, '<' not found in /Users/homerjackson/offline-web design work/philajazzproject-test/data/other/logs/guestbook.log, line: 1 in /Users/homerjackson/offline-web design work/philajazzproject-test/plugins/guestbook.php on line 308

Notice: Trying to get property of non-object in /Users/homerjackson/offline-web design work/philajazzproject-test/plugins/guestbook.php on line 318

Any help?

Homer
Reply
I'm working with one of the free GS template/themes that doesn't provide any CSS for contact forms.

How do I begin to style the guestbook with this template?

Is there a way of copying from another template/theme and editing?

Thanks.

macon-dead
Reply
Hi macon-dead,
the CSS of guestbook is in folder plugins/guestbook/guestbook.css

Regards.
Reply
Thanks for your swift response.

How do I make the following changes...
▪ Remove "Subject" line from the Guestbook and form?
▪ Remove Reply option from Guestbook?
▪ Change the word, "Comment" to something else in Guestbook and form?
▪ Change the word, "Guestbook" in the Red Box on the form?
▪ Place a character or word limit to the posts?

Thanks.

macon dead
Reply
Hi, i think that is better option to use pages & comments: http://get-simple.info/extend/plugin/pag...ments/427/ (this plugin is more configurable from admin).
-------------------------------------

In guestbook:
(2013-05-05, 23:55:38)macon-dead Wrote: ▪ Change the word, "Comment" to something else in Guestbook and form?
▪ Change the word, "Guestbook" in the Red Box on the form?
R: In folder plugins/guestbook/lang/... here has the files with texts.



(2013-05-05, 23:55:38)macon-dead Wrote: ▪ Remove "Subject" line from the Guestbook and form?
R: you has that modify 2 files (in version 4.5.0, that i will upload to extend today):
- guestbook.php, search the following lines 594 and 595, and comments with //.
Code:
        $myform .= '<label>'.i18n_r('guestbook/Sub').'</label>';
        $myform .= '<input type="text" name="guest[tema]" value="'.$mi_arrayq["tema"].'" /><br />';

- guestbook/comprueba.php, search lines 223 and 224 and comments:
Code:
                $cdata = $thislog->addChild('Sub');
                $cdata->addCData(htmlentities($tema, ENT_QUOTES, 'UTF-8'));



(2013-05-05, 23:55:38)macon-dead Wrote: ▪ Remove Reply option from Guestbook?
R: in guestbook.php comment line 511 with //
Code:
$entries .= '<p class="responselink"><a href="javascript:Insertcom(&quot;form'.$count.'&quot;)"> '.i18n_r('guestbook/mf').' </a></p>';




(2013-05-05, 23:55:38)macon-dead Wrote: ▪ Place a character or word limit to the posts?
R: i do not understand it, what do you want to say? sorry...

Regards
Reply
(2013-05-05, 23:55:38)macon-dead Wrote: ▪ Place a character or word limit to the posts?
R: i do not understand it, what do you want to say? sorry...

Regards
[/quote]

Thanks again for your swift response.
I want to limit the number of words that a person can write in the guestbook. I don't want people to write very long posts.

I also don't want them to use profanity or nasty words.

Thanks.

macon-dead
Reply
(2013-05-06, 05:02:39)macon-dead Wrote: I want to limit the number of words that a person can write in the guestbook. I don't want people to write very long posts.

I also don't want them to use profanity or nasty words.

I understand. Of moment, the plugins guestbook and pages & comments are not ready for that. In next version, i will do this.

I'ḿ going now to see like to do.

Regards.
Reply
(2013-05-06, 07:09:04)cumbe Wrote:
(2013-05-06, 05:02:39)macon-dead Wrote: I want to limit the number of words that a person can write in the guestbook. I don't want people to write very long posts.

I also don't want them to use profanity or nasty words.

I understand. Of moment, the plugins guestbook and pages & comments are not ready for that. In next version, i will do this.

I'ḿ going now to see like to do.

Regards.

THANKS!!!!
Reply
Upload to extend v4.5.1.
In this version is possible to limit the numbers of characters by post.

If you want to limit the numbers of characters, you have that edit file guestbook/comprueba.php.
In line 79:
$numberofchars = 0;
change 0 by the number of characters that you want to limit.
Value = 0, has not limit.
Reply
(2013-05-07, 23:46:10)cumbe Wrote: Upload to extend v4.5.1.
In this version is possible to limit the numbers of characters by post.

If you want to limit the numbers of characters, you have that edit file guestbook/comprueba.php.
In line 79:
$numberofchars = 0;
change 0 by the number of characters that you want to limit.
Value = 0, has not limit.

Thanks again.
A swift and wonderful response.
I am truly grateful.

macon - dead
Reply
Hi, when I try to add a new post I get this message (no matter if I fill in something or not):
Code:
*** THERE WAS AN ERROR SENDING YOUR MESSAGE ***
Redirection in 4 seconds. If you do not redirection push Back
BACK

When I go to Admin>Plugins>Guest Book I get this:
Code:
Missing file:‘’
No filename specified.

Fresh installed GS 3.2.1 and Guestbook 4.5.1, no other plugins. I am not able to add any post, nothing in errorlog.txt.

Could anyone help me to fix this?
Reply
Here are the colours to match the GetSimple default Innovation Theme, for pasting into guestbook.css
Code:
/* colour for Innovation Theme */

/* dark blue = #2E5F8C  mid blue= #799DBB grey = #D4D4D4 light grey = #EFEFEF  */
#paginator a {background-color:#799DBB;color:black;}
#paginator a:hover{background-color:#D4D4D4;color:white;}
#paginator a.activ{background-color:#2E5F8C;color:white;}
#paginator a.prev, #paginator a.next{background-color:transparent;color:#2E5F8C;}
.gblist .number {background-color:#2E5F8C;color:white;}
.gblist .entry{background-color:#EFEFEF;color:black;}
.gblist .data,.responselink a {color:#2E5F8C;}
.gbform .captchainput {background-color:#EFEFEF;}
.gbform fieldset legend {background-color:#2E5F8C;color:white;}
.gbform fieldset label b,.gbform .rf b {color:#2E5F8C;}
#gb .gbform .captchaimg {background-color:#EFEFEF;border:1px outset #2E5F8C;}
#msgerr {color:#2E5F8C;}
Reply




Users browsing this thread: 2 Guest(s)