Posts: 357
Threads: 23
Joined: Dec 2009
Hello,
I have not yet uploaded to extend. When it is finished i upload the plugin.
From guestbook version 3, yes, it works with GS30.
batka16, looks the permissions of /data/other/logs/guestbook.log...
With debug on , do you have any error?.
Regards.
Posts: 25
Threads: 2
Joined: Mar 2011
2011-05-16, 22:43:15
(This post was last modified: 2011-05-16, 22:46:18 by lawyerutah.)
cumbe Wrote:Hello,
I have not yet uploaded to extend. When it is finished i upload the plugin.
From guestbook version 3, yes, it works with GS30.
batka16, looks the permissions of /data/other/logs/guestbook.log...
With debug on , do you have any error?.
Regards. My GS 3.0.
Yes, file in /data/other/logs/guestbook.log...
Debug on. Don't errors.
http://electrofan.com.ua/gbook
Posts: 25
Threads: 2
Joined: Mar 2011
2011-05-17, 19:50:53
(This post was last modified: 2011-05-17, 19:51:29 by lawyerutah.)
Help me, please. I need a breakdown of the pages!
Posts: 357
Threads: 23
Joined: Dec 2009
Hello batka16,
please to send me the guestbook.log to probe.
I send you the email in private message.
Regards.
Posts: 357
Threads: 23
Joined: Dec 2009
Hello batk16,
Messages are not displayed because the log is incompatible with the new version.
When i have a time, i will have the log compatible and it send you.
Regards.
Posts: 1,928
Threads: 88
Joined: Apr 2010
how to change the date format?
Posts: 357
Threads: 23
Joined: Dec 2009
2011-05-19, 00:34:21
(This post was last modified: 2011-05-19, 00:48:44 by baris.)
Hi Oleg06,
Inside de guestbook.php , in +- line 353 and line 415, is:
Code: ...
else if ($n == 'date'){
$d = lngDate($d);
...
lngDate(), is a function of /admin/inc/basic.php.
Too, in basic.php there is other function shtDate(); but you can to use other function of php directly: http://www.php.net/manual/en/datetime.formats.date.php
Regards.
Posts: 1,928
Threads: 88
Joined: Apr 2010
why these lines are loaded from a file en_US
Code: "DATE_FORMAT" => "d.m.Y", //please keep short
"DATE_AND_TIME_FORMAT" => "d.m.Y - G:i ", //date and time
Posts: 1,928
Threads: 88
Joined: Apr 2010
but is it possible to change the order in which the messages by date?
Posts: 357
Threads: 23
Joined: Dec 2009
Quote:but is it possible to change the order in which the messages by date?
This is not finished yet; now i'm doing to can choose the order that are showed the comments:
- I (increasing), of first comment to last.
- D (decreasing), of last to first.
Posts: 357
Threads: 23
Joined: Dec 2009
2011-06-19, 04:00:12
(This post was last modified: 2011-06-19, 09:28:40 by baris.)
ONLY FOR GETSIMPLE VERSIONS 3.0 or LATER
Upload version 4.0 of guestbook to extend, too.
Web test: http://cumbe.no-ip.biz/gs30/libro_invitados/
Changes:
The most important is that you must pass the user will receive the email's notifications; the number of comments by page that show (pagination); and the order that are showed the comments:
- I (increasing), of first comment to last.
- D (decreasing), of last to first.
The guestbook must be called so:
<?php sv_book('nameofuser', numberofcommentsbypage, 'D'); ?>
For example: <?php sv_book('cumbe', 3, 'D'); ?>
only show 3 mains comments with all theirs replies.
From this verison is compatible with internationalization i18n of getsimple: http://get-simple.info/wiki/plugins:i18n
Is possible to reply to comments, keeping the order.
Now, automatically redirection to page Guestbook at 2 seconds ó push Back.
Unzip the file in folder Plugin.
Structure in directory Plugin:
* guestbook.php
* folder guestbook:
- arial.ttf.
- comprueba.php
- img_cpt.php
- folder img_emots: inside there are emoticons. If you want add more emoticons, only you have que paste *.gif in this folder.
- folder lang: with 2 translations, es_ES and en_US.
Regards.
PD: I upload the file again because I have the wrong file.... I'm sorry
Posts: 1,928
Threads: 88
Joined: Apr 2010
you are different folders for translation Code: .i18n_r('guestbook/Ev').'
, and for images Code: /guest_contact/img_cpt.php
Posts: 357
Threads: 23
Joined: Dec 2009
Yes, I was wrong file....
Upload one good.
Regards
Posts: 10
Threads: 1
Joined: Jun 2011
I would like to add few fields to guestbook? Any tips how this can by easy done?
Posts: 357
Threads: 23
Joined: Dec 2009
Hi eline,
For example to add one field called 'myfield', you have to do 3 things:
1) In guestbook.php: in function myform (...), line +-512, add 1 row (tr) and 2 columns (td) for each field
Code: echo '<tr>';
echo '<td align="right" style="vertical-align: middle;">';
echo '<p style="margin-bottom: 3px;"><label>'.i18n_r('guestbook/myfield').':</label></p></td>';
echo '<td><input style="margin-left:2px; width: 444px;" type="text" name="guest[myfield]" />';
echo '</td></tr>';
2) In guestbook/comprueba.php: in line +- 168 to 200, add enter lines, (these lines save data)
Code: $cdata = $thislog->addChild('myfield');
$cdata->addCData(htmlentities($temp['myfield'], ENT_QUOTES, 'UTF-8'));
3) In guestbook/lang/yourlanguage.php: add each field into array,
Code: ....
"myfield" => 'Field added',
....
If you want change some colour in the table of comments, you can to do it, in guestbook.php, line +-1900 in <STYLE TYPE="text/css">.....
Regards.
Posts: 10
Threads: 1
Joined: Jun 2011
2011-06-25, 19:35:01
(This post was last modified: 2011-06-25, 22:25:52 by M8R-l6xecb.)
Almost done, two more question
How you set up required fields?
How I can switch off "reply" to another post?
// forget - I find solutions for both problems, now searching for a mail to admin about guestbook entry
Posts: 10
Threads: 1
Joined: Jun 2011
All solved - special thanks to CUMBE for help !
Posts: 1,928
Threads: 88
Joined: Apr 2010
how to switch the language of your plugin?
Posts: 10
Threads: 1
Joined: Jun 2011
Oleg - language should by switched automatic with i18n plugin also in guestbook.
Posts: 10
Threads: 1
Joined: Jun 2011
I have translations to italian and polish. I need german and spanish, someone to trade ?
Posts: 1,928
Threads: 88
Joined: Apr 2010
2011-06-29, 02:54:01
(This post was last modified: 2011-06-29, 03:27:28 by jhondavis.)
does not work
http://chaga-mushroom.com/1/guest/
have to rename the file ru_RU to en_US
Posts: 10
Threads: 1
Joined: Jun 2011
2011-06-29, 03:54:17
(This post was last modified: 2011-06-29, 04:26:06 by M8R-l6xecb.)
so we wait for developer I didnt switch languages yet as Im busy to build English version first.
I have to handle multiple guestbooks and multiple languages
Posts: 357
Threads: 23
Joined: Dec 2009
2011-06-29, 21:41:36
(This post was last modified: 2011-06-29, 21:52:27 by baris.)
Hi eline,
To have multiple languages, and each guestbook has one language, the easiest is to pass the lang in the function sv_book($usu, $cada, $eleg, $LANG){ .... like 4 parameter.
For example: <?php sv_book("cumbe", 4, "D", "en_US"); ?>
Too, you must to comment the lines, global $LANG and $LANG = $data->LANG;
Code: ...
//global $LANG;
if (file_exists(GSDATAPATH.'users/'.$usu.'.xml')) {
$data = getXML(GSDATAPATH.'users/'.$usu.'.xml');
$EMAIL = $data->EMAIL;
//$LANG = $data->LANG;
....
Thus always will use the language that you need.
Oleg,
In this moment, the language of guestbook is the language of user of getsimple....
Posts: 1,928
Threads: 88
Joined: Apr 2010
2011-06-29, 22:25:24
(This post was last modified: 2011-06-29, 22:51:26 by jhondavis.)
Yes, it works, I put in the code Code: <?php sv_book('cumbe', 2, 'D'); ?>
:-) now I've corrected the code
I am ashamed
Posts: 2,928
Threads: 195
Joined: Feb 2011
I just downloaded the actual zip from the EXTEND, I hope it is version 4.1 because there is no comment in the plugin files
I miss a short readme as there are quite some unclear situations:
1)
I uploaded the plugin and in administration panel/plugins/guestbook Igot the message:
Quote:missing file: guestbook.log
I expected that the log is created automatically, isn't it?
I had to add it manually to the data/other/log-folder
2)
comprueba.php~
the zip contained that file in the subfolder /guestbook, I guess I can delete it?
in /lang there are also files with tilde ... please clean that
3)
I read that the guestbook can be included in either a page or a template, but:
Code: <?php sv_book('nameofuser', numberofcommentsbypage, 'D'); ?>
this php-code is not correct in a page, so it works only in a template?
4)
I get annoyed .. the language file en_US.php is not coded in UTF-8, but in ANSII!
I thought we have UTF-8 as standard and your plugin is prepared for internationalisation?
Now I translated this to de_DE.php and get a horrible mess with umlauts..
5) font-colors are coded into the plugin, not by CSS, please change that
is deprecated HTML
6) Redirect text is written inside the plugin, not in the language file
7) line 114 in comprueba.php: default email-adress is hardcoded and is not user-adress from the settings
this plugin is not "get simple" it is "you need to finetune it to get it ready for working"
Cheers, Connie
|