Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guestbook
#1
Hello,
Web test: http://www.cumbe.es/guestbook/

ONLY FOR VERSIONS OF GETSIMPLE 3.0 or LATER

07-06-2014: upload to extend version 4.5.6

Extend: http://get-simple.info/extend/plugin/guestbook/184/

From version 4.5.0 of plugin
The guestbook can be inserted into the content of a GetSimple page with the shortcode:
(% guestbook cumbe,6,D,Y,Y %)
or it can be called in a template with php:
<?php sv_book('timbo', 5, 'I', 'N', 'N'); ?>
Instructions in extend, and readme_en.txt inside of zip.

From version 4.3 of plugin
The guestbook must be called so in a template (or a page with exec plugin):

<?php sv_book('nameofuser', numberofcommentsbypage, order, captcha(Y - N), emoticons(Y - N); ?>


The most important is that you must pass 5 parameters: the user will receive the email's notifications; the number of comments by page that show (pagination); the order that are showed the comments; if you want captcha or no; and if you want emoticons.
Instructions in extend, and readme.txt inside of zip.

From version 4.2 of plugin
In a template (or in a page with exec plugin) to put the following code:
<?php sv_book('name_of_user', numberofcommentsbypage, order_of_comments, captcha(Y-N)); ?>
For example: <?php sv_book('cumbe', 3, 'D', 'Y'); ?>

Values of order (capital letters):
- I (increasing), of first comment to last.
- D (decreasing), of last to first.

Values for captcha(capital letters):
- Y : if you want captcha
- N (or distint a Y): captcha will not appear.

Instructions in: http://get-simple.info/forum/post/15646/#p15646


-------------------------------------------
From version 4.0 of plugin
In a template or in a page to put the following code:
<?php sv_book('name_of_user', numberofcommentsbypage, order_of_comments); ?>
example: <?php sv_book('cumbe', 3, 'D'); ?>
- I (increasing), of first comment to last.
- D (decreasing), of last to first.
Instructions in: http://get-simple.info/forum/post/14949/#p14949

-------------------------------------------
From version 3.1 of plugin
In a template or in a page to put the following code:
<?php sv_book('name_of_user', numberofcommentsbypage); ?>

From version 3 of guestbook plugin
To use, simply download and extract the file to your plugins folder. After, in a template or in a page to put the following code: <?php sv_book('name_of_user'); ?>


//////////////////////
Slightly modifying the code of PlugIn Contact Form Getsimple: http://get-simple.info/forum/viewtopic.php?id=946, i made a plugin for guestbook.

It is simple, and it is a start that can be completed with other options, like smileys, captcha...
(Now captcha works as explained Zegnåt in: http://get-simple.info/forum/viewtopic.p...4614#p4614

To use, simply download and extract the file to your plugins folder. After, in a template to put the following code: <?php sv_book(); ?>.

Within the Plugin Managaments, show a button below of Installed Plugins, that says 'Guest book', there you can delete the log and see the comments too.

The comments are saved in guestbook.log in data\other\logs.

I have created a function with array to translate easy.

From v_2.4 is possible to remove comments from plugin management > guest book.

From v_2.5 is possible to add emopticons in the comments.

If there is a bug, please comment.


the web for test: http://cumbe.no-ip.biz/gs203/index.php?id=guestbook
Regards.
PD: as always I´m sorry for my english.

Version 2 in: http://get-simple.info/forum/viewtopic.p...6327#p6327
Version 2.1 in: http://get-simple.info/forum/viewtopic.p...6397#p6397
Version 2.2 in: http://get-simple.info/forum/viewtopic.p...6504#p6504
Version 2.3 in: http://get-simple.info/forum/post/7034/#p7034
Version 2.4 in: http://get-simple.info/forum/post/9195/#p9195
Version 2.5 in: http://get-simple.info/forum/post/9506/#p9506

////// ONLY FOR VERSIONS OF GETSIMPLE 3.0 or LATER
Version 3 in: http://get-simple.info/forum/post/12305/#p12305
Version 3.1 in: http://get-simple.info/forum/post/13030/#p13030
Version 4.1 in: http://get-simple.info/forum/post/14949/#p14949 (upload to extend)
Version 4.2 in: http://get-simple.info/forum/post/15646/#p15646 (upload to extend)
Version 4.3 in: http://get-simple.info/forum/post/17211/#p17211 (upload to extend)
Version 4.4 in: http://get-simple.info/forum/post/19687/#p19687 (upload to extend)
Reply
#2
That's pretty nice.
Quite simple too.

For my needs, though I'd like to add a location field or fields.
And I'd like to make the email addresses invisible.
[I'm trying to do a petition.]

Thanks just the same though because this works pretty nicely for a good, basic guestbook.

Thanks again.

homershines
Reply
#3
Hello,
Yes, it is a simple and basic, but it is a start.

To make the email invisible is easy: on line 315, after captcha, put
Code:
else if ($n == strtolower($tr_cont['Em'])){}

Thanks for you comments.
Reply
#4
and a captcha is possible to attach?
Reply
#5
Hello, i have upload version 2.

In this version, i added a captcha and 1 field more ('subject').

For the captcha is need have the gd lib in the server, that is common has it.

To make the email invisible is easy: on line 332, after captcha, uncomment the line.

Please test it and comments bugs.

Regards.
Reply
#6
For some reason all the time wrote CAPTCHA FAILED, WE THINK YOU ARE A SPAM BOT
Reply
#7
Look in /data/uploads if you has two files: string.png and string.txt, and if they has something.
Reply
#8
Hello,
I have upload version 2.1, because there were a bug in $EMAIL variable, that had not value and didn´t send email of notification.

For the captcha, now is possible write in capital letters or small letters. I have eliminated "0" and "O" to avoid confusion.

Please test it and comments bugs.

Regards.
Reply
#9
why do you never think about the Russian? you have ceased to fear us? :-)
Again why such a text?
Reply
#10
Hi Oleg06, jejeje, I'm just a little away from russia. SmileSmile

Again why such a text? I don´t understand it.
Captcha, isn´t text, is a image.
Reply
#11
Олег размещено 03.09.2010
Reply
#12
Arggggggggggg;
I think I know what it is, save the plugin guestbook.php like 'UTF-8 without BOM'. Now is like ANSI.
And too change the line 328:
Code:
$lin .= ' '.utf8_encode($tr_cont['Ps']).' '.stripslashes($d).'</font></th>';
by
Code:
$lin .= ' '.$tr_cont['Ps'].' '.stripslashes(utf8_decode($d)).'</font></th>';


And if you want, can to change too:
Change the line 324:
Code:
$lin = '<th colspan=2 align="right" valign="center" bgcolor="red"><font color="#FFFFFF">'.stripslashes($d);
by
Code:
$lin = '<th colspan=2 align="right" valign="center" bgcolor="red"><font color="#FFFFFF">'.stripslashes(utf8_decode($d));


and test it....


Thanks.
Reply
#13
Thank you very much, it works
Reply
#14
I can't seem to get the CAPTCHA to appear on my pages.

I also get this message:

Warning: Invalid argument supplied for foreach() in /Users/lynn/offline-web design work/1GS-August1/plugins/guestbook.php on line 293

What am I doing wrong.

Thanks.

homershines
Reply
#15
Hello homershines,
delete guestbook.log from admin or directly in data/other/logs; and try again...

regards.
Reply
#16
A better html/css form for your theme :
Code:
<form action="index.php?id=<?php get_page_slug(); ?>" method="post">
            <fieldset>
                <p>
                    <label>(*) <?php echo $tr_cont['Nb']; ?> :</label>
                    <input type="text" class="text" name="guest[nombre]" />
                </p>
                <p>
                    <label><?php echo $tr_cont['Sub']; ?> :</label>
                    <input type="text" class="text" name="guest[tema]" />
                </p>
                <p>
                    <label><?php echo $tr_cont['Em']; ?> :</label>
                    <input type="text" class="text" name="guest[email]" />
                </p>
                <p>
                    <label>(*) <?php echo $tr_cont['Cm']; ?> :</label><br/>
                    <textarea class="text" name="guest[comentario]" rows="4" cols="70"></textarea>
                </p>
                <p>
                    <label>CAPTCHA Code</label>
                    <?php img_cp(); ?>
                    <img src= "data/uploads/string.png" />
                    <input class="text" type="text" style="width: 130px; font-size:20px;" value="" name="guest[pot]" /> (*)<?php echo $tr_cont['Cpt']; ?>
                </p>
                <p>
                    <input type="submit" class="submit" value="<?php echo $tr_cont['Ev']; ?>" id="guest-submit" name="guest-submit" /></textarea>
                    (*) <?php echo $tr_cont['Rf']; ?>
                </p>
            </fieldset>
        </form>
Reply
#17
Hi, please tell me how to put guestbook plugin in the content of the page???
Thanks!
Reply
#18
install php-exec plugin ans desactivate the editor

in a content :
<?php sv_book(); ?>.
Reply
#19
Too is possible to put the code, <?php sv_book(); ?>, directly in a template; of this way you don´t need the php-exec plugin.


Thanks madvic for you html/css.
Reply
#20
homershines Wrote:I can't seem to get the CAPTCHA to appear on my pages.

I also get this message:

Warning: Invalid argument supplied for foreach() in /Users/lynn/offline-web design work/1GS-August1/plugins/guestbook.php on line 293

What am I doing wrong.

Thanks.

homershines


Still having the same problems after I did as you asked.
I know that I did something wrong ehre though.
The non-Captcha version worked fine originally.

Thanks.

homershines
Reply
#21
Hi homershines,
Can you show me the content of guestbook.log in data\other\logs.?

Regards.
Reply
#22
cumbe Wrote:Hi homershines,
Can you show me the content of guestbook.log in data\other\logs.?

Regards.


Thanks Cumbe,

This is it for the log...

===== Log file is empty =====

I upgraded an early, working version of the guestbook without CAPTCHA, but the CAPTCHA image doesn't appear there either.

Thanks.

Homer
Reply
#23
Captcha only appear from the version 2.

Without file, have you this error: "Warning: Invalid argument supplied for foreach() in /Users/lynn/offline-web design work/1GS-August1/plugins/guestbook.php on line 293"?

In /data/uploads, have you two files: string.png and string.txt?

If you link, in browser, directly to image (localhost/.../data/uploads/string.png) ¿appears something?.

Regards.
Reply
#24
cumbe Wrote:Captcha only appear from the version 2.

Without file, have you this error: "Warning: Invalid argument supplied for foreach() in /Users/lynn/offline-web design work/1GS-August1/plugins/guestbook.php on line 293"?

In /data/uploads, have you two files: string.png and string.txt?

If you link, in browser, directly to image (localhost/.../data/uploads/string.png) ¿appears something?.

Regards.

Now, I have....

Warning: Invalid argument supplied for foreach() in /Users/homerjackson/offline-web design work/0GS-r183/plugins/guestbook.php on line 289


Yes. I have string.png and string.txt in the proper place.

Yes. The string.png image appears when I call the page....
http://localhost:8888/0GS-r183/data/uploads/string.png

Thanks so much for your patience and help.

homershines
Reply
#25
And if you delete the guestbook.log (no empty), appears the warning?

I think that this warning only can occur if the guestbook.log is wrong, empty...
but the captcha should be appear.

Can you try without debug.

Regards
Reply




Users browsing this thread: 2 Guest(s)