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.
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']);
}
2012-08-03, 09:56:46 (This post was last modified: 2012-08-03, 10:40:24 by Andrewmugs.)
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']);
}
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?
2012-11-15, 17:17:31 (This post was last modified: 2012-11-15, 20:04:57 by batka16.)
(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?
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
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?
(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 //.
(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.
(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.
(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.
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.
(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.