View Full Version : Addon: captcha 0.5 beta for pp1.6.0
[update]
this is an updated version of connies captcha addon which was designed for 1.4
(another anti_spam-thingy these days but for 1.5beta|1.5 rc1)
delivery
-------------------------------------------------------------------------
readme.txt
index.php
includes/captcha.php
includes/anti_comment_spam.php
includes/functions_comments.php
langauge/lang-english.php
language/lang-german.php
language/lang-simplified_chinese.php
quick-installation
-------------------------------------------------------------------------
please always replace existing files on you server
captcha.php -> includes folder
anti_comment_spam.php -> includes folder
lang-german.php -> language folder
lang-english.php -> language folder
lang-simplified_chinese.php -> language folder
replace index.php
keep org index.php in case it doesn't work for you
<CAPTCHA> - tag -> below the email-field (inserts captcha and form-field)
use $captcha_bgcolor $captcha_linecolor $captcha_fontcolor to change look of captcha
tested with
-----------------------------------------------------------------------
pp 1.6.0
notes
-----------------------------------------------------------------------
use at your own risk .
!-> read readme.txt before installation <- !
im no php god so.. feedback is really very welcome
#06-04-11 update to beta 0.2
this is now more a hack than a addon but otherwise bots are able
to POST directly to x=save_comments
#06-04-22 update to beta 0.3
no changes on addon itself just merged with new index.php of
version pp 1.5 rc1
#06-08-05 update to v0.4 for pp 1.5 final
adding language support (files for german and englisch included)
adding "changeable-colors feature" to the captcha via additional lines
in pixelpost.php. so it fits better into your template
#07-04-16 release of v0.5 as a hack to pp 1.6.0 by Chaney SUN
- porting hack into new index.php and functions_comment.php of pp1.6.0
- adding language support (files for simplified_chinese,german and englisch included)
captcha 0.2 beta for 1.5 beta
captcha 0.3 beta for 1.5 RC1
captcha 0.4 for 1.5 final
Download
-----------------------------------------------------------------------
captcha 0.5 for 1.6.0 (http://znsunimage.com/Download/2007/20070416_captcha_05_for_1.6.0.zip)
Enjoy it.
blinking8s
04-16-2007, 08:19 AM
nice, ill have to test it out later in the week...
thanks for the update!
sentinel
04-16-2007, 06:47 PM
thx alot chaney
schedule is full until weekend. after that i'll try to have a look at the "robot problem" (which still might exist even with pp1.6)
Puffin
04-16-2007, 07:01 PM
Thank you! For me this is the only thing that really works. No I am able to upgrade to 1.6 :)
thanks for the update of your nice addon. Same situation like puffin: for me the only thing that really works.
terje
05-30-2007, 09:13 PM
Thank you QmQ!
This is THE ONLY way to protect against spam in PixelPost.
Deleted over 500,000 spams today.. Time to put an stop to it.
rainman
07-05-2007, 10:17 PM
I have a problem with this addon. I'm using the default PP 1.6.0 horizon theme and sometimes my visitors cannot leave a comment although they input the right captcha code. I tested this by myself a few times and I'm able to post a comment only after two or three (code) refreshes. Did someone have this issue?
Any help would be appreciated :)
dreampaper
07-12-2007, 12:57 PM
hi,
i just tried installing captcha, i followed all the steps in the readme-file... but now my homepage is blank? (www.dykesandthecity.com)
any ideas what caused this and what I can do about it?
tnx!
Dkozikowski
07-12-2007, 08:00 PM
Login to the admin panel and visit your site, it will still be blank but add the following to the end of your URI, ?errors
so, the full URI would look like,
http://www.snapping.dykesandthecity.com/index.php?errors
This should tell you what is causing the blank screen.
fredxeric
07-18-2007, 02:38 AM
I just have it installed on my pixelpost blog and it's working fine 4 me...
jdleung
07-18-2007, 03:53 AM
I remember the team had said it has a strong security on anti-spam,do we need this addon on pp1.6?
I still got spams without captcha on 1.6 so I just still implemented it. I'm probably going to recode the comments and use AJAX or something instead of captcha to prevent spam. I'll have to see but captcha has done wonders. Completely zero spam when it's in effect so I'm not complaining at all.
weberknecht
08-14-2007, 05:07 PM
thank u so much :) its works beautyfull :)
jesperj
08-25-2007, 03:38 PM
I've installed this hack and it works fine with my default langugage (english) image_template.html but on my image_se_template.html, the <CAPTCHA> tag simply isn't replaced. I've been desperately trying various things to hack the code to work for me but since I suck at such things, I have to give up. I reuploaded the default addon index.php on my site for now.
I found that if I replaced this section in the code:
else
{
// we use our special designed language templates.
if( isset($_GET['x'])&&file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html"))
{
if (eregi("[.]",$_GET['x']))
die("Come on! forget about it...");
$tpl = file_get_contents("templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html");
//next 1 line for CAPTCHA hack --- insert by Chaney SUN
$tpl = str_replace("<CAPTCHA>","<input type='text' name='userinput' class='input' value='' id=\"userinput\"/> <label for=\"userinput\">". $captcha_insert_message ."</label><br /><br /><img src=\"./includes/captcha.php\"><br><br /> ",$tpl);
}
with:
else
{
// we use our special designed language templates.
//if( isset($_GET['x'])&&file_exists( "templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html"))
if(file_exists( "templates/jj2/image_se_template.html"))
{
//if (eregi("[.]",$_GET['x']))
// die("Come on! forget about it...");
//$tpl = file_get_contents("templates/".$cfgrow['template']."/".$_GET['x']."_".$language_abr."_template.html");
$tpl = file_get_contents("templates/jj2/image_se_template.html");
//next 1 line for CAPTCHA hack --- insert by Chaney SUN
$tpl = str_replace("<CAPTCHA>","<input type='text' name='userinput' class='input' value='' id=\"userinput\"/> <label for=\"userinput\">". $captcha_insert_message ."</label><br /><br /><img src=\"./includes/captcha.php\"><br><br /> ",$tpl);
}
If I do that, the swedish archive gets broken BUT the captcha does work on the swedish image comment function. Some errors in finding my swedish templates?
I hope someone here can help me. It works if you try it in the english version.
Even if you don't know swedish the links are placed on the same spot so it shouldn't be too hard to figure out for debugging.
http://www.jesperjacobsson.com/
Thank you very much in advance. My brain is toast now.
Dennis
08-26-2007, 02:07 PM
Jesper, you should not code the image_template manually. The template selection is dynamically based on $_GET['x'], so doing this doesn't makes any sense.
jesperj
08-26-2007, 02:11 PM
Dennis,
Ok. I have to look into how to make a proper template then, since if I understand your answer correctly, the one I'm using now is not correct.
Alas, that will have to wait till a day when I'm not zombified by depressive symptoms.
Thank you.
A lot of things don't make sense.
Dennis
08-26-2007, 02:24 PM
Perhaps you could send me the template so I can have a look.
jesperj
08-26-2007, 02:40 PM
Oh Dennis :)
That is a very sweet offer.
You must have better things to do with your time but how can I resist if you say so.
I will pm you an URL where I have uploaded a zip with the files.
Thank you very much!
Jesper
mauritz
09-06-2007, 05:15 PM
Nice, it works for me.
Now just wait and see if it stops the spam flood ;)
But one question; how can I adjust the position of the field, text and the captcha image. Right now it's first the field, then a text (type over the code please) and below that the captcha image.
Is it possible to adjust these things?
sentinel
09-06-2007, 07:24 PM
you've to change 2 lines in the index.php file
the following snippeds assume you're using the addon for pp 1.6
line 260 and 272:
$tpl = str_replace("<CAPTCHA>","<input type='text' name='userinput' class='input' value='' id=\"userinput\"/> <label for=\"userinp
ut\">". $captcha_insert_message ."</label><br /><br /><img src=\"./includes/captcha.php\"><br><br /> ",$tpl);
you have to modify the second part of the str_replace command (beginning with "<input type... ") the way you want. but change the code the same way in both lines in case you want to switch the template (comments in popup or not)
Its better to put such code into the addon file.
sentinel
09-08-2007, 03:05 PM
that's right.
it would be more confident do split up the parts (text/formfield/picture)into single variable which can be placed individually in the template.
but still, this captcha is a hack. which might change depending what the team plans todo with workspaces or what one's able to implement inside em.
Dennis
09-08-2007, 03:40 PM
Well I examined the code and a hack is not necessary anymore for PP 1.7.
sentinel
09-08-2007, 04:20 PM
that's nice thx for watchin
Stefanel
09-19-2007, 05:04 PM
Hello!
This is my first install of pixelpost and I think it's great, but, I know that spam comments can be a pain in the a** sometimes because I've experienced it a lot on my wordpress based blog.
Anyway, can captcha be used on a fresh install of pixelpost 1.6?
sentinel
09-19-2007, 08:41 PM
the current captcha "addon" can be used with pp 1.6 yes.
there's a readme.txt inside the package which explains the installation in detail.
[edit]
be sure to download the according version at the first page of this thread for pp 1.6!
floime
09-28-2007, 09:37 PM
i think i have a little porblem with the captcha - i use the newest version and pp 1.6 and a user mailt me that it isnt possibel for him to leave a comment because the code he writes in the box is always wrong (it works only a few times)- he's using firefox (i don't know which version) - is there a known problem -- or have i done something wrong ?
MfG floime
sentinel
09-29-2007, 11:16 AM
yes there've been such issues already in the past.
i must confess i have not been able to solve (and reproduce) the problems (on my server) yet.
(and am i'm still open for hints)
one possible solution which seems to work from time to time is to delete the cookies concerning your pblog and clean the cache .
u got a pm
for those who experience(d) the same problem
try to replace the anti_spam_addon.php with the content of the following file
anti_comment_spam.php (http://www.digitalview.at/pp-addons/anti_comment_spam.php.txt)
i'm currently using this one on my blog without any error-reports (or my visitors aren't so nice as yours are ..)
wfg
sentinel
01-14-2008, 12:38 PM
'cause pp 1.7 is released stable, whoever wants to use captcha stuff besides defensio/akismet,
take a look at the extensions section done by dennis (http://www.pixelpost.org/extend/addons/comments-captcha/)
so this hack has an end here
*sigkill*
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.