Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guestbook
#76
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.
Reply
#77
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
Reply
#78
Help me, please. I need a breakdown of the pages!
Reply
#79
Hello batka16,
please to send me the guestbook.log to probe.
I send you the email in private message.


Regards.
Reply
#80
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.
Reply
#81
how to change the date format?
Reply
#82
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.
Reply
#83
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
Reply
#84
but is it possible to change the order in which the messages by date?
Reply
#85
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.
Reply
#86
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
Reply
#87
you are different folders for translation
Code:
.i18n_r('guestbook/Ev').'
, and for images
Code:
/guest_contact/img_cpt.php
Reply
#88
Yes, I was wrong file....Smile
Upload one good.

Regards
Reply
#89
I would like to add few fields to guestbook? Any tips how this can by easy done?
Reply
#90
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.
Reply
#91
Almost done, two more question Wink
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 Smile
Reply
#92
All solved - special thanks to CUMBE for help !
Reply
#93
how to switch the language of your plugin?
Reply
#94
Oleg - language should by switched automatic with i18n plugin also in guestbook.
Reply
#95
I have translations to italian and polish. I need german and spanish, someone to trade ?Smile
Reply
#96
does not work
http://chaga-mushroom.com/1/guest/
have to rename the file ru_RU to en_US
Reply
#97
so we wait for developer Wink I didnt switch languages yet as Im busy to build English version first.
I have to handle multiple guestbooks and multiple languages Wink
Reply
#98
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....
Reply
#99
Yes, it works, I put in the code
Code:
<?php sv_book('cumbe', 2, 'D'); ?>
:-) now I've corrected the code
I am ashamed
Reply
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
Code:
<font>
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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)