Guestbook / comments approval

Use GitHub to post feature requests for phpwcms.
Quizmaster
Posts: 35
Joined: Fri 27. May 2005, 11:45

Post by Quizmaster »

ganesha wrote:i really need this feature!

how could i help to develop it?
Jep, me too. My guestbook is flooding everyday with spam. I sure like the solution with the numbers generated everytime you reload the page. Before I used PhpWCMS I used Mambo. This script uses the Akobook as guestbook and had this option. Worked very fine. Please let me know if there is a solution with the generated numbers. The solution from Spirelli also works, but is too much time consuming for me.

Cheers... 8)
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Quizmaster
Posts: 35
Joined: Fri 27. May 2005, 11:45

Post by Quizmaster »

Hey Dexxus,

Thanks for that! I will try to install this.

Thanks !
Quizmaster
Posts: 35
Joined: Fri 27. May 2005, 11:45

Post by Quizmaster »

Hmm, I think it worked. I'll get back to this...

8)
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

still no real solution

Post by yuluma »

Besides the BAD BEHAVIOR and the hack to aprove entry's in the Admin there still aint a hack for the generated numbers.

I believe that's the only way so the guestbook stays a guestbook. If i post a comment in a guestbook and have to wait 2 days before it shows up I realy don't call that a guestbook.

:roll: anyone the knowhow for the generated numbers before my visitors may post?

Let's make a start:

Code: Select all

<?php /* 
example of usage: 

inside your form 
<input type="text" name="validator" id="validator" size="4" /> 
<img src="random.php" alt="CAPTCHA image" width="60" height="20" vspace="1" align="top" /> 

and test the value of the "validator" form field like: 
if (!empty($_POST['validator']) && $_POST['validator'] == $_SESSION['rand_code']) { 
    process your form here 
    at least destroy the session 
    unset($_SESSION['rand_code']); 
*/ 

// save this code in your random script 
session_start(); 

if (empty($_SESSION['rand_code'])) { 
    $str = ""; 
    $length = 0; 
    for ($i = 0; $i < 4; $i++) { 
        // this numbers refer to numbers of the ascii table (small-caps) 
        $str .= chr(rand(97, 122)); 
    } 
    $_SESSION['rand_code'] = $str; 
} 

$imgX = 60; 
$imgY = 20; 
$image = imagecreatetruecolor(60, 20); 

$backgr_col = imagecolorallocate($image, 238,239,239); 
$border_col = imagecolorallocate($image, 208,208,208); 
$text_col = imagecolorallocate($image, 46,60,31); 

imagefilledrectangle($image, 0, 0, 60, 20, $backgr_col); 
imagerectangle($image, 0, 0, 59, 19, $border_col); 

$font = "VeraSe.ttf"; // it's a Bitstream font check www.gnome.org for more 
$font_size = 10; 
$angle = 0; 
$box = imagettfbbox($font_size, $angle, $font, $_SESSION['rand_code']); 
$x = (int)($imgX - $box[4]) / 2; 
$y = (int)($imgY - $box[5]) / 2; 
imagettftext($image, $font_size, $angle, $x, $y, $text_col, $font, $_SESSION['rand_code']); 

header("Content-type: image/png"); 
imagepng($image); 
imagedestroy ($image); 
?> 
Does anyone know which file builds the form? and maybe a litle hint to the right setup.... :lol:
Yuluma Nunbanna - workaholic ad dies vitae
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

new release has integrated image validation for guestbook and email form generator. ...coming this weekend.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hallelluja.... friends


And this means the coming weekend! :lol:
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Hey guys!

This means MISSING some serious football matches :lol:
User avatar
nekket
Posts: 613
Joined: Tue 18. Nov 2003, 15:46
Location: Baden-Baden
Contact:

Post by nekket »

Oliver Georgi wrote:new release has integrated image validation for guestbook and email form generator. ...coming this weekend.

Oliver
I LOVE YOU! :D
pixelpublic GmbH | Agentur für Neue Medien und Gestaltung
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

Oliver Georgi wrote:new release has integrated image validation for guestbook and email form generator. ...coming this weekend.

Oliver
any news on this one?

rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi rush,

^O^ -> :shrug:

Under heavy sunshine you can´t see anything at your laptop out there at the terrace.
The same for O.G. I think.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
rushclub
Posts: 915
Joined: Tue 17. Feb 2004, 18:52

Post by rushclub »

flip-flop wrote:Hi rush,

^O^ -> :shrug:

Under heavy sunshine you can´t see anything at your laptop out there at the terrace.
The same for O.G. I think.

Knut
;)

rush
3 (!) Jahre warten reichen mir. Ich bin erst mal weg.
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

yepp really the same - it's so warm here and football in addition that I spend some time in the garden...

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
miershpedankl
Posts: 39
Joined: Wed 8. Mar 2006, 13:19
Location: East Coast, USA
Contact:

Post by miershpedankl »

About relieving your guestbook of spam -- as a temporary fix try changing the url for your questbook to something like "guestbook-nospam." It worked for me: http://www.phpwcms.de/forum/viewtopic.p ... c&start=15

My guestbook has been spam free for about a week now! 8)

The security image is still a must though. :idea:!
If you don't let ANYTHING happen to someone, then NOTHING will happen to them.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

flip-flop wrote:Hi rush,

^O^ -> :shrug:

Under heavy sunshine you can´t see anything at your laptop out there at the terrace.
The same for O.G. I think.

Knut
Oliver Georgi wrote:yepp really the same - it's so warm here and football in addition that I spend some time in the garden...

Oliver
Image
Hey, It's going to rain this weekend in Dessau:
http://uk.weather.yahoo.com/GMXX/GMXX0022/index_c.html
Locked