Guestbook - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: Guestbook (/showthread.php?tid=942) |
Guestbook - cumbe - 2010-08-23 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.php?pid=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.php?pid=6327#p6327 Version 2.1 in: http://get-simple.info/forum/viewtopic.php?pid=6397#p6397 Version 2.2 in: http://get-simple.info/forum/viewtopic.php?pid=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) Guestbook - homershines - 2010-08-24 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 Guestbook - cumbe - 2010-08-25 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. Guestbook - Oleg06 - 2010-08-29 and a captcha is possible to attach? Guestbook - cumbe - 2010-08-31 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. Guestbook - Oleg06 - 2010-08-31 For some reason all the time wrote CAPTCHA FAILED, WE THINK YOU ARE A SPAM BOT Guestbook - cumbe - 2010-08-31 Look in /data/uploads if you has two files: string.png and string.txt, and if they has something. Guestbook - cumbe - 2010-09-03 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. Guestbook - Oleg06 - 2010-09-03 why do you never think about the Russian? you have ceased to fear us? :-) Again why such a text? Guestbook - cumbe - 2010-09-04 Hi Oleg06, jejeje, I'm just a little away from russia. Again why such a text? I don´t understand it. Captcha, isn´t text, is a image. Guestbook - Oleg06 - 2010-09-04 Þûõó рð÷üõщõýþ 03.09.2010 Guestbook - cumbe - 2010-09-04 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>'; 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); Code: $lin = '<th colspan=2 align="right" valign="center" bgcolor="red"><font color="#FFFFFF">'.stripslashes(utf8_decode($d)); and test it.... Thanks. Guestbook - Oleg06 - 2010-09-04 Thank you very much, it works Guestbook - homershines - 2010-09-05 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 Guestbook - cumbe - 2010-09-05 Hello homershines, delete guestbook.log from admin or directly in data/other/logs; and try again... regards. Guestbook - madvic - 2010-09-06 A better html/css form for your theme : Code: <form action="index.php?id=<?php get_page_slug(); ?>" method="post"> Guestbook - nickolay365 - 2010-09-06 Hi, please tell me how to put guestbook plugin in the content of the page??? Thanks! Guestbook - madvic - 2010-09-07 install php-exec plugin ans desactivate the editor in a content : <?php sv_book(); ?>. Guestbook - cumbe - 2010-09-07 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. Guestbook - homershines - 2010-09-08 homershines Wrote:I can't seem to get the CAPTCHA to appear on my pages. 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 Guestbook - cumbe - 2010-09-08 Hi homershines, Can you show me the content of guestbook.log in data\other\logs.? Regards. Guestbook - homershines - 2010-09-09 cumbe Wrote:Hi homershines, 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 Guestbook - cumbe - 2010-09-09 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. Guestbook - homershines - 2010-09-10 cumbe Wrote:Captcha only appear from the version 2. 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 Guestbook - cumbe - 2010-09-10 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 |