forum.coppermine-gallery.net
Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Sami on September 17, 2006, 07:04:22 am
-
Captcha ver 3.0
As I see , we have more than 240 downloads (till now) from Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php?topic=29564.0) mod by Abbas Ali , yes it's a great mod ;)
(IMO it should goes to core)
So here is the mod as a plugin ... Enjoy
Requirement:
===========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- Better compatibility with php 4.3.5 or later
Installation:
==========
0. Uninstall any older version of this plugin
1.Copy captcha folder to your plugins folder
2.Use plugin manager to install it
3.Copy captcha.php to gallery root
feature:
=======
- Captcha for Comment
- Captcha for Registartion
- Captcha for Report to admin
- Captcha for login
- Captcha for Ecard
Settings:
========
-You can set which group shouldn't see captcha on each page
if you are using custom group name or using bridge then you should use your custom group name or bbs's group name
-You can set how many secounds should pass before we delete old records from database
-You can set captcha image setting under captcha.php
More detail under Readme.txt
language:
========
- Italian Thanks to lontano
- Dutch Thanks to Hein
- French Thanks to spikeweb
- German Thanks to m@rk
- Brazilian portuguese Thanks to Bonato
- Spanish thanks to pepemosca
- Turkish thanks to Benim
- Danish thanks to Kim Bubandt
Update:
v3.1 - 2009-11-06
- Added Danish language file (http://forum.coppermine-gallery.net/index.php/topic,36319.msg309596.html#msg309596) to package (user contribution) {GauGau}
v3.0 - 2007/11/21 7:30 AM GMT
- Rerwite whole plugin engine (improvement)
Captcha code now stores to db instead of session
Have an issue with plugin ? can't login to disable it ?
Manually disable captcha plugin:
=======================
- Use a mysql tool (e.g. phpmyadmin)
- Drop xxx_plugin_captcha table
- Open xxx_plugins table of gallery DB (xxx_ is your table prefix)
- Delete CAPTCHA row
Don't see captcha in registration page?
check this thread:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
fixes:
====
- works with bridged gallery to SMF
Added language:
===============
- Turkish thanks to Benim
-
(IMO it should goes to core)
It has been added to the core (cpg1.5) :)
-
Cool ;)
-
Very useful plugin! Thanks a lot! :)
-
PS There is some bug... js-error appears when displaying normal_image - new window with large image doesn't open by click (MSIE 5.5). But if captcha-plugin installed as described in http://forum.coppermine-gallery.net/index.php?topic=29564.0 (http://forum.coppermine-gallery.net/index.php?topic=29564.0) everything is OK.
-
It seems not to be working in Mozilla FireFox. :-(
IE is OK
-
@garry And ryback
Would you please post a link to your galleries?
-
I don't understand how this plugin is supposed to prevent bots posting comments.
-
my gallery - http://www.fotecka.net
-
@Nibbler:
I don't know how bots deal with forms !
plugin will disable OK button until you enter correct code and then it will become enable
-
@garry And ryback
Would you please post a link to your galleries?
Link to my gallery is in my profile. But now it's installed as described in http://forum.coppermine-gallery.net/index.php?topic=29564.0 (http://forum.coppermine-gallery.net/index.php?topic=29564.0)
-
@ryback:works fine for me in both FF and IE !
-
@Nibbler: I've got your point , Bots can simply using myform.submit() command so I should use server-side code verification
@All:this plugin has a major bug , do not using it !!! sorry for wast of time !
Update(new version bug fixed):
check the first post
-
Bots don't use javascript atall. You can use the page_start hook to check for the comment being posted and verify it from there.
-
Yes , thank you :)
-
New version , Bug Fixed :D
-
Still no good. You need to check for the comment being submitted, not the code.
-
checking of $_POST['msg_body'] could be enough?
As I see under orginal mod Abbas checked $_POST['event'] instead
-
Announcement:
New version of plugin with a bug fixed released
The bug cause the Blank page (white page) after submitting an empty comment to db_input.php
-
Hello, thanx for great plugin. Do you think it will be possible to do confirmation for not registered users only?
Regards M.
-
Yes it's possible
- I'll add it to the next version
-
ok, keep on great work.
I am looking forward to the new release.
Cheers
-
(running 1.4.9)
I encounter a language problem. I run the gallery in german. So I copy the lang/english.php to lang/german.php and edit the file but all outputs still be in english. It seems that my german language file is ignored. Any ideas?
-
There's some text hard-coded into the files. You'll have to edit the mod files as well.
-
It seems that the language function is disabled by default in captcha.php:
//require("include/init.inc.php");
But language strings are still used. I try to enable it but it doesnt work so I replace the language strings vars in codebase.php with my plain text outputs and it work.
-
okey here is the quick fix for that :
- open up codebase.php and add this
require ('plugins/captcha/include/init.inc.php');
to line 29
the your aptcha_main($html) function should be look like this:
function captcha_main($html) {
global $lang_display_comments, $thisplugin;
require ('plugins/captcha/include/init.inc.php');
$exper='(<input type="submit" class="comment_button" name="submit" value="'.$lang_display_comments['OK'].'" />)';
if(preg_match($exper,$html)){
$newcpch='<input type="submit" class="comment_button" name="submit" id="submit" value="'.$lang_display_comments['OK'].'" /></td></tr><tr><td class="tableb_compact" colspan="2">'.$lang_plugin_captcha_confirmation.'</td><td class="tableb_compact" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"> <img src="'.$thisplugin->fullpath.'/captcha.php" align="middle">';
$html = preg_replace($exper,$newcpch,$html);
}
return $html;
}
this way the lang file would works
I'll add it to next version
@Zarzal: Thank you for pointing that out :)
-
New release of Captcha
@mEErEck: feature added to new version
@Zarzal: bug fixed
-
thank you, worked for me
-
Me again. There is now another big problem when enabling this plugin. I cant use some functions in cpg1.49 anymore:
- While batch uploading I cant use interactive directory browsing mode, just an empty window.
- Admin Tools Bridge Assistent give blank page
- Admin Tools Version Check give blank page
- Admin Tools Log file view give blank page
Maybe there are some other problems, I continue testing. I use spider frindly urls plugin.
-
oops , sorry , check the coddbase and your lang file for an empty line after ?> tag at the end of file and delete it
-
Checked and found whitespace lines after closing php code and removed it but my problem still exists. Meanwhile I found another problem. My google maps hack stop working too. I continue searching.
-
New release , Bug fixed
Zarzal , thank you very much for reporting this bug , check the first (initial) post for update
-
I reupload all files from your archive. I see V1.5 in the plugin manager but the problem is still there. Blank screen in the admin section, google maps hack still blank. There must be another bug somewhere. Any Idea how I can search this?
-
I've this version installed on my online gallery without any blank page issue, first time when you found that issue I've checked my gallery and saw that but this time my gallery is fine !
Are you sure that you upload (overwrite) all files correctly and completely ?
Is there any body else with this issue ?
-
I'm 100% sure. I do it again and use beyond compare (scootersoft) to verify it. It is the latest version.
For testing I disable spiderfrindly urls plugin but this have no effect. Maybe it's related to my webserver setup, I m not sure. It is a LiteSpeed/2.2.2 Standard Server with mySQL 4.1.11 and PHP Version 5.1.5
I can repeat it. When disabling the captcha plugin all functions include google maps hack work, enabling the captcha plugin I get on some places blank pages with no source code. I hope someone else encounter this and I m not alone with this problem.
-
I can take a look at that if you give me a ftp account to your gallery by PM (if it's ok)
-
italian translation added (just a few words... but some love reading his native language!) :)
-
You rock man :)
-
New release of Captcha
@mEErEck: feature added to new version
@Zarzal: bug fixed
@Sami : U rulezz!
-
New release
- Italian lang added
- bug fix (Zarzal point it)
-
Many thanks for new release, it works now ok on my gallery. Downloaded and installed yesterday evening, today an user complained getting blank pages after login. Opened phorum to complain about it, found a new version available and the problem was fixed. Very good work!
I have got quite few spam till now, but I didn't want to wait getting more quanities, so thank you for that plugin!
-
hi, what a wonder full plugin, i was getting tired of the bot spam.
though i have a problem, it does not look good with my theme "mac_ox_x", and i have no knowledge in how to modify the code to move the buttons and text to the correct locations.
this is how it looks now http://dkeserver.mine.nu/displayimage.php?pos=-148735
What i would like to do is to move the confirmation code box and picture right beside the "Confirm:" text. and also fill out the grey square at the bottom right with white color.
any kind php wiz out there able to help me? :-)
-
I'll check that ...
-
New release with fix the theme issue
-
wow, that was really fast! thanks alot for your help Sami, looks great now :-) thanks again!!
-
You're welcome
thanks for pointing that out
-
I can't it.
can you help me ?
http://www.sohbetim.com/fotogaleri/bug.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]
-
- Login as an admin , enable debug and Check if freetype is enable
- Post a link to your gallery
-
I can it but pls enter wrong code, because it doesn't work in my gallery
http://www.sohbetim.com/fotogaleri/displayimage.php?album=random&cat=13&pos=-4345
-
I don't understand !
Captcha working fine , I can see the confirmation code
And the template error is not related to this plugin !
I splite your last post and move it to template support board
http://forum.coppermine-gallery.net/index.php?topic=37643.0 (http://forum.coppermine-gallery.net/index.php?topic=37643.0)
-
okey.
I'm Sorry
-
hi there
first of all, thanks for this great plug-in. it's gonna be quiet now...
but, there is a tiny problem as well.
a guest cannot post a comment anymore, because the confirm code is not visible.
in IE a broken image is displayed, in firefox nothing.
here is a link:
http://www.unihockey-deitingen.ch/gallery/coppermine/displayimage.php?album=lastup&cat=0&pos=0
-
login as an admin and enable debug mode and post debug output to this thread (make sure to remove your password if it's there)
-
hi sami
thanks for looking at it. as far as I can see is there no pw in it.
switched to debug mode, logged off and went as guest to the image screen,
where the broken images of captcha appears --> http://www.unihockey-deitingen.ch/gallery/coppermine/displayimage.php?album=lastup&cat=0&pos=11
USER:
------------------
Array
(
[ID] => 7546b61c0456a419405f5e622b2250d2
[am] => 1
[lang] => german
[liv] => Array
(
[0] => 1022
[1] => 1000
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 2
[user_name] => admin
[groups] => Array
(
[0] => 104
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 1
[num_file_upload] => 10
[num_URI_upload] => 10
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 0
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 1
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 104
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg146_filetypes; (0.001s)
[1] => select * from cpg146_plugins order by priority asc; (0.001s)
[2] => SELECT * FROM cpg146_bridge (0.001s)
[3] => SELECT member_id , password FROM `usr_web2364_1`.ipb12_sessions AS s INNER JOIN `usr_web2364_1`.ipb12_members AS u ON s.member_id = u.id WHERE s.id = '74624b2d5edffaa0b514d38282ea6811' (0.001s)
[4] => SELECT u.id AS id, u.name AS username, u.password AS password, u.mgroup+100 AS group_id FROM `usr_web2364_1`.ipb12_members AS u INNER JOIN `usr_web2364_1`.ipb12_groups AS g ON u.mgroup=g.g_id WHERE u.id='2' (0.001s)
[5] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg146_usergroups WHERE group_id in (104) (0.001s)
[6] => SELECT group_name FROM cpg146_usergroups WHERE group_id= 104 (0.001s)
[7] => SELECT user_favpics FROM cpg146_favpics WHERE user_id = 2 (0.001s)
[8] => DELETE FROM cpg146_mod_online WHERE last_action < NOW() - INTERVAL 15 MINUTE (0.001s)
[9] => REPLACE INTO cpg146_mod_online (user_id, user_name, user_ip, last_action) VALUES ('2', 'admin', '210.8.25.196', NOW()) (0s)
[10] => DELETE FROM cpg146_banned WHERE expiry < '2006-10-25 08:33:08' (0s)
[11] => SELECT * FROM cpg146_banned WHERE (ip_addr='210.8.25.196' OR ip_addr='210.8.25.196' OR user_id=2) AND brute_force=0 (0s)
[12] => SELECT COUNT(*) from cpg146_pictures WHERE approved = 'YES' (0.002s)
[13] => SELECT * FROM cpg146_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 11 ,1 (0.001s)
[14] => SELECT title, comments, votes, category, aid FROM cpg146_albums WHERE aid='42' LIMIT 1 (0.001s)
[15] => SELECT name, parent FROM cpg146_categories WHERE cid = '14' (0.001s)
[16] => SELECT cid, name, parent FROM cpg146_categories WHERE cid = '3' (0.001s)
[17] => SELECT cid, name, parent FROM cpg146_categories WHERE cid = '2' (0.001s)
[18] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM cpg146_comments WHERE pid='1000' ORDER BY msg_id ASC (0.001s)
[19] => SELECT COUNT(*) FROM cpg146_pictures WHERE approved = 'NO' (0.002s)
[20] => SELECT COUNT(*) from cpg146_pictures WHERE approved = 'YES' (0.002s)
[21] => SELECT * FROM cpg146_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 6 ,10 (0.001s)
)
==========================
GET :
------------------
Array
(
[album] => lastup
[cat] => 0
[pos] => 11
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.4 - OK
------------------
mySQL version: 4.0.18
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.15 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.0.18
MYSQL_MODULE_TYPE none
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1
Linked Version 1.2.1
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /home/www/empty/ | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /home/www/empty/ | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | . | .:
open_basedir | /home/www/web2364/html/:/home/www/web2364/phptmp/:/home/www/web2364/files/:/home/www/web2364/atd/ | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 8M | 8M
==========================
Page generated in 0.6 seconds - 22 queries in 0.022 seconds - Album set : ; Meta set: ;
-
:)
No I want the debug output for an admin account , it contains some setting info that didn't comes with guest or other any other account , that's way I asked you ...
-
ok. I replaced the code above.
-
you have a bug on your php , check this first:
http://www.unihockey-deitingen.ch/gallery/coppermine/plugins/captcha/captcha.php
and then read This (http://bugs.php.net/bug.php?id=26309)
They fixed it under 4.3.5
maybe it's time to upgrade your PHP or if it's not working for you add an empty arrey to line 115 & 123 of captcha.class.php
-
OMG I have no idea at all. I mean I just followed your instructions and did not change anything in my cpg.
how's that working with this array issue in the class.php file?
-
Use attached captch.inc.php instesd of yours ,
Hope it'll help you ...
-
hi sami
hmm in your zip is only captcha.class.php.
there is no such file you mentioned above.
after using your class.php file I receive a
Parse error: parse error, expecting `')'' in /home/www/web2364/html/gallery/coppermine/plugins/captcha/include/captcha.class.php on line 39
line 39 is:
$eInfo = array();
the image is still broken.
-
sorry ,Yes there is only captcha.class.php
Please check the new one attached to this post
-
thanks, now it is working.
the only thing I am curious about is that guests can edit and delete each other comments now.
I made a test post from a wireless LAN spot in my university and later on I visited the same
comment from my LAN connection in my room at home. I don't think that I was recognised as
the same "guest" with the same IP, but I could manipulate the comment.
therefore, you should be able to edit/delete this guest post here as well.
http://www.unihockey-deitingen.ch/gallery/coppermine/displayimage.php?pos=-923
-
No I'm not !
I'm sure you are using same computer , cause your comment info stored on cookie
you can check it this way:
- post a comment with guest account
- clear your cookie
- you'll see that you can't edit your comment
-
yeah, that solved the issue.
I didn' know that cookie thing.
thanks for all. everything is going smoothly now.
-
removed a load of c***
Forgot about turning on the comments option for the group Guests...
Thanks Sami!
-
did you disable comment for guest ? if yes then please post a test account ...
-
did you disable comment for guest ? if yes then please post a test account ...
There are times when you just want to go out, buy a big rubber hammer, and hit yourself... ::)
Thanks Sami ;) Your tip did the trick.
The group Guest indeed had comments disabled. Enabling this worked, Captcha is now working a 100%.
Except when i enter a wrong confirmation code. It displays this
Confirmation code didn't matched
Bestand: /home/fototest/public_html/plugins/captcha/codebase.php - Regel: 51
How do i get rid of the extra line which says on which row a "error" is occuring.
Line 51 is : cpg_die(ERROR, "$lang_plugin_captcha_error", __FILE__, __LINE__);
What displays the Bestand: etc line ?
-
Here's the dutch.php plugin for the Captcha plugin.
-
How do i get rid of the extra line which says on which row a "error" is occuring.
That is the debug output , disable debug mode
Thank you for Contributions , I'll add it to package ...
-
That is the debug output , disable debug mode
Thank you for Contributions , I'll add it to package ...
*sigh* *thud* :-[
Your welcome ;D
-
I've downloaded the captcha.class.zip, but am not sure where to put the captcha.php and captcha.class.php files. I have tired installing them in /gallery, /gallery/include, /plugins/captcha and /plugins/captcha/include. But I still have the missing image problem. Where should I place these files.
Here is a sample of where the confirmation image is broken:
http://www.realadventures.com/gallery/displayimage.php?album=lastup&cat=0&pos=0
Thanks for your help, Joe
-
You need GD2 with freetype support to use this plugin. You don't have that.
-
Sami,
would it be possible to use convert this plugin so it can also be used to add a Captcha confirmation to the register page of CPG ?
Cheers!
Hein
-
Try new codebase (attached to this post) and confirm if it's working.
Sorry I don't have much time to test it
[update:]
- additional checking for other forms added
-
Try new codebase (attached to this post) and confirm if it's working.
Sorry I don't have much time to test it
Sami, it does add a Captcha code to the registration form but now miniCMS also gives a message that the code is not valid when i edit or create a page and hit submit.
Can you perhaps take a look at that ? Besides that little bump it seems to be working.
Cheers!
Hein
-
okey check the new one, attached to previous post
-
okey check the new one, attached to previous post
Bingo! It seems to work now. So far i tested miniCMS while using this codebase.php
Will test other options tomorow and let you know if all checks out ok.
Thanks again for the quick work!
Cheers!
Hein
-
I installed the plugin a few days ago and I notice that if a wrong code or a blank code is submited I get a ''template error'' white page.
http://claudebriere.net/coppermine/displayimage.php?pos=-1697
Do you know the problem?
Thanks
claude
-
You are using cpg v1.4.3 !
First you need to upgrade to most recent version (currently 1.4.10)
-
Ok I will try to update to the most recent version as soon as I have the time... ;)
But I thought this plugin was for 1.4X? ??? Anyway...
Another question, is it possible to change the display of the comment box. In my theme (eyeball), the comment box is beside the name box and it is appearing small. can I put the comment box below the name box? This way it will take all the space from the left to the right.
http://claudebriere.net/coppermine/displayimage.php?pos=-1697&PHPSESSID=aa633cb40c4535680cce9ca26c87fcf0
Thanks.
Claude
-
Ok I will try to update to the most recent version as soon as I have the time... ;)
But I thought this plugin was for 1.4X? ??? Anyway...
In fact I guess that you may change $template_gallery_admin_menu variable under themes.inc.php and it's cause the issue , but after all you must upgrade ASAP for security reason and upgrade proccess will over write new themes.inc.php and will correct it ...
Another question, is it possible to change the display of the comment box. In my theme (eyeball), the comment box is beside the name box and it is appearing small. can I put the comment box below the name box? This way it will take all the space from the left to the right.
http://claudebriere.net/coppermine/displayimage.php?pos=-1697&PHPSESSID=aa633cb40c4535680cce9ca26c87fcf0
Yes it's possible
- Copy $template_image_comments variable from themes/sample/theme.php to your theme , if you don't have it already
- Move the textarea to a new TR
-
Here's my German Translation, but...
I'm wondering why the Language Detection in "init.inc.php" doesn't seem to work ??
I had to rename "german.php" to "english.php" to get results - this is curious ...
-
Your German.php works fine with my test bed !
what version of captcha plugin you're using?
-
You say it works? Strange thing.
I'm using CAPTCHA v1.7, currently attached in the very first post of this thread, running with CPG 1.4.10.
I thought this might be related to the language detection in include/init.inc.php:
if (file_exists("plugins/captcha/lang/{$CONFIG['lang']}.php")) {
require "plugins/captcha/lang/{$CONFIG['lang']}.php";
} else {require "plugins/captcha/lang/english.php";}
-
would you please post a link to your gallery
-
Hallo Sami,
thank you for engagement!
I didn't implement your fine plugin in my gallery finally, since I want to make layout modifications first.
The problem occurs in following test environment:
XAMPP for Windows Version 1.5.3a
Apache/2.2.2 (Win32)
PHP/5.1.4
while similar language detection with other plugins works.
-
Can you enable debug mode and see if it's giving you any error
And also check if file_exists is enable and working (safe mode restrictions)
-
Hello
I have problem with this plugin
After instalation everything seemd to be ok
but when you enter wrong cnofirmation code and pressed OK in order to add a comment there appears some window with
Template error
Failed to find block 'admin_approval'(#(<!-- BEGIN admin_approval -->)(.*?)(<!-- END admin_approval -->)#s) in :
<div align="center">
<table cellpadding="0" cellspacing="1">
<tr>
<td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
<td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
<td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
<td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
<td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
<td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
<td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<!-- BEGIN log_ecards -->
<td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
<td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
<td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
<td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
<td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
</tr>
</table>
</div>
this above
My theme is
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.5
$Source:$
$Revision$
$Author$
$Date$
**********************************************/
// ------------------------------------------------------------------------- //
// This theme has all CORE items removed //
// ------------------------------------------------------------------------- //
// define('THEME_IS_XHTML10_TRANSITIONAL',1);
// Added to display flim_strip
function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb')
{
global $CONFIG, $THEME_DIR;
global $template_film_strip, $lang_film_strip;
static $template = '';
static $thumb_cell = '';
static $empty_cell = '';
static $spacer = '';
if ((!$template)) {
$template = $template_film_strip;
$thumb_cell = template_extract_block($template, 'thumb_cell');
$empty_cell = template_extract_block($template, 'empty_cell');
}
$cat_link = is_numeric($aid) ? '' : '&cat=' . $cat;
$thumbcols = $CONFIG['thumbcols'];
$cell_width = ceil(100 / $CONFIG['max_film_strip_items']) . '%';
$i = 0;
$thumb_strip = '';
foreach($thumb_list as $thumb) {
//modify $new_size for max dimension of thumbnails in filmstrip
$new_size = 65;
preg_match('/(?<=width=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
$srcWidth=$matches[0][0];
preg_match('/(?<=height=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
$srcHeight=$matches[0][0];
$ratio = max($srcWidth, $srcHeight) / $new_size;
$ratio = max($ratio, 1.0);
$destWidth = (int)($srcWidth / $ratio);
$destHeight = (int)($srcHeight / $ratio);
$thumb['image']=preg_replace('/width="[^"]*"/','width="'.$destWidth.'"',$thumb['image']);
$thumb['image']=preg_replace('/height="[^"]*"/','height="'.$destHeight.'"',$thumb['image']);
$i++;
if ($mode == 'thumb') {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => $thumb['caption'],
'{ADMIN_MENU}' => ''
);
} else {
$params = array('{CELL_WIDTH}' => $cell_width,
'{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
'{THUMB}' => $thumb['image'],
'{CAPTION}' => '',
'{ADMIN_MENU}' => ''
);
}
$thumb_strip .= template_eval($thumb_cell, $params);
}
if (defined('THEME_HAS_FILM_STRIP_GRAPHICS')) {
$tile1 = $THEME_DIR . 'images/tile1.gif';
$tile2 = $THEME_DIR . 'images/tile2.gif';
} elseif (defined('THEME_HAS_FILM_STRIP_GRAPHIC')) {
$tile1=$tile2=$THEME_DIR . 'images/tile.gif';
} else {
$tile1=$tile2= 'images/tile.gif';
}
$params = array('{THUMB_STRIP}' => $thumb_strip,
'{COLS}' => $i,
'{TILE1}' => $tile1,
'{TILE2}' => $tile2,
);
ob_start();
starttable($CONFIG['picture_table_width']);
echo template_eval($template, $params);
endtable();
$film_strip = ob_get_contents();
ob_end_clean();
return $film_strip;
}
// HTML template for the category list
$template_cat_list = <<<EOT
<!-- BEGIN header -->
<tr>
<td class="tableh1" width="80%" align="left"><b>{CATEGORY}</b></td>
<td class="tableh1" width="10%" align="center"><b>{ALBUMS}</b></td>
<td class="tableh1" width="10%" align="center"><b>{PICTURES}</b></td>
</tr>
<!-- END header -->
<!-- BEGIN catrow_noalb -->
<tr>
<td class="catrow_noalb" colspan="3"><table border="0"><tr><td align="left" valign="middle"><img src="themes/fiblack3dgreen/images/folder.gif" border="0" width="25" height="25" alt="" align="left" />{CAT_THUMB}</td><td align="left"><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
</tr>
<!-- END catrow_noalb -->
<!-- BEGIN catrow -->
<tr>
<td class="catrow" align="left"><table border="0"><tr><td valign="middle"><img src="themes/fiblack3dgreen/images/folder.gif" border="0" width="25" height="25" alt="" align="left" />{CAT_THUMB}</td><td><span class="catlink"><b>{CAT_TITLE}</b></span>{CAT_DESC}</td></tr></table></td>
<td class="catrow" align="center">{ALB_COUNT}</td>
<td class="catrow" align="center">{PIC_COUNT}</td>
</tr>
<tr>
<td class="tableb" colspan="3">{CAT_ALBUMS}</td>
</tr>
<!-- END catrow -->
<!-- BEGIN footer -->
<tr>
<td colspan="3" class="tableh1" align="center"><span class="statlink"><b>{STATISTICS}</b></span></td>
</tr>
<!-- END footer -->
<!-- BEGIN spacer -->
<img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->
EOT;
?>
Sorry if I've done sth wrong - My English is very poor ;]
My gallery adres is http://www.delirium.ovh.org
Please help me :) what should I do ?
-
Rename your theme.php (themes/your theme/theme.php) to theme.txt and attach it to this thread using additional option
-
I've added my theme php in my post above , and I still don't know what to do ?
-
Tommy you are running 1.4.2 which is very old !
Upgrade to 1.4.10 and you'll be fine
-
Hi all,
Attached is the french translation ;)
But I had to modify english.php in lang folder as french.php is not recognized ??
-
Hi,
attached the dutch translation.
I see that I'm not the only one that's having troubles with getting the correct language file to be set. I've had to hard code mine to set it as dutch as default instead of english. Is there something wrong with the language selection of this plugin or is it something related to coppermine? To make it clear I'm running version 1.4.10 at the moment. You can see the version running at the following URL: http://vakantieparken.hfoada.nl
With kind regards,
HF OADA
-
i've installed the plugging, it seems to work but imagen is not clearly readeble
-
Hi Sami,
I have overwrote the codebase.php included to Captcha plugin v1.7 form first message of this topic with your codebase.php for Captcha registration attached to your message http://forum.coppermine-gallery.net/index.php?topic=36319.msg180154#msg180154, however on the registration page I dont see any visual confirmation, whereas Captcha for comments is working well down.
Could you please advice me what I did wrong?
My album updated to 1.4.10 and located here http://stepclub.net .
Thank you.
-
Sorry, after reinstalling all works fine!
Thank you!
-
Is there a possibility to use this plugin without a freetype GD.
The next code works perfect it gives a verification code, however it isn't working correct. You can enter the comment without code too.
I pasted this code in catcha.php and commented (//) the require(...class..) and the constructors ($oPhpCaptcha)
session_start();
// !!! don't edit this file except for the hex code for the background color - line 27 and line 30 for text color
// go to http://web.forret.com/tools/color.asp for color conversions - do not edit any other lines!!!
// make a string with all the characters that we want to use as the verification code
// left out o, 0, U and V - look too much alike
$alphanum = "ABCDEFGHIJKLMNPQRSTWXYZ123456789";
// generate the verication code
$rand = substr(str_shuffle($alphanum), 0, 5);
// create the hash for the verification code and put it in the session
$_SESSION['php_captcha'] = md5($rand);
// create the image
$image = imagecreate(60, 23);
// use lite blue as the background image - change the hex code to match your background - ex. 245, 245, 255 is light blue; 255, 255, 255 would be white on so on - go to http://web.forret.com/tools/color.asp for color conversions
$bgColor = imagecolorallocate ($image, 245, 245, 255);
// the text color is black - change the hex code to clor of your choice - ex. 0, 0, 0 is black
$textColor = imagecolorallocate ($image, 0, 0, 0);
// write the random number
imagestring ($image, 5, 5, 8, $rand, $textColor);
// send several headers to make sure the image is not cached
// taken directly from the PHP Manual
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
// send the content type header so the image is displayed properly
header('Content-type: image/png');
// send the image to the browser
imagepng($image);
// destroy the image to free up the memory
imagedestroy($image);
-
i´ve tryed other ways with out fortune. now, I´'m doing all steps but captcha don't apear on plugins installed (but it's on plugins folder)
i'm getting crazy.
-
don't pluging installed solved.
but it can´t be read.
http://usuarios.lycos.es/moliterni/web/displayimage.php?album=lastup&cat=0&pos=7
why?
-
You should have FreeType support on your PHP and you don't have
this means you can't use this plugin try another solutions
-
I'm wondering why the Language Detection in "init.inc.php" doesn't seem to work ??
Solved: language detection
You just have to change line 44 in codebase.php from
global $lang_plugin_captcha_conf;
to
global $CONFIG, $lang_plugin_captcha_conf;
Now a "try again" feature without loosing the previously written comment input would be great...
Sami, thanks again for contributing this plugin!
-
I made a v1.7.1 pakage of Sami's great plugin.
fixes:
=====
- Language detection fixed (see previous post)
modification:
=======
- Layout modified
new features:
=======
- German language added (by m@rk)
- French language added (Thanks to spikeweb)
- Dutch language added (Thanks to HF OADA)
Sami, if you like it, attach it to the first post of this thread.
I'd still like a "try again" feature without loosing the previously written comment input ::)
with kind regards
-
Thank you M@rk for your Contribution
And sorry for late answer, Sure I'll attach it to first post
-
Hellou,
What it is necessary adjust please ?
http://forum.coppermine-gallery.net/index.php?topic=40768.0
because, when wasn't using plugin, I it before edit by hand,
what then therewith?, thank you
-
Hi.
I can't view image with code.
Coppermine v - 1.4.10
Plugin v - 1.7.1
http://shamanking.msk.ru/coppermine/displayimage-random-0--998.html
-
You don't have freetype support.
-
Hi.
I can't view image with code.
Coppermine v - 1.4.10
Plugin v - 1.7.1
http://shamanking.msk.ru/coppermine/displayimage-random-0--998.html
Ye, It affected and to me.
Error perhaps will in encoding set. (UTF-8 ...)
-
I've got this plugin in place and it stemmed the spam tide. But there is one issue. I'm getting a blank page when the correct code is entered by anon/guests.
I didn't modify any code aside from the language/english.php. With that file I just changed the english feedback. But I had the same "blank screen on correct" response before I made that change.
I also initially installed the v 1.70 version of the plugin. But I then updated to the 1.71 with the same blank screen on correct response. :o
Any ideas what the problem is. I'm not seeing any error messages generated.
Thanks for the input and a great plugin. Thanks goes out to Abbas for his work early on.
The website is: http://www.neckofwoods.com/coppermine (http://www.neckofwoods.com/coppermine)
-
Hi,
I can't view the code.
Link: http://www.dlrg-illingen.de/fotos/plugins/captcha/captcha.php (http://www.dlrg-illingen.de/fotos/plugins/captcha/captcha.php)
GD Support enabled
GD Version bundled (2.0.15 compatible)
FreeType Support enabled
FreeType Linkage with freetype
what can I do?
-
You haven't uploaded the entire plugin with all sub-folders: the fonts folder is missing. Re-upload the entire content of the captche plugin, with all sub-folders. Make sure to preserve the directory structure of the zip when un-archiving.
-
You haven't uploaded the entire plugin with all sub-folders: the fonts folder is missing. Re-upload the entire content of the captche plugin, with all sub-folders. Make sure to preserve the directory structure of the zip when un-archiving.
I have all sub-folders correct uploaded :(
on my old webspace can I see the code http://www.illingen-dlrg.de/captcha/captcha.php (http://www.illingen-dlrg.de/captcha/captcha.php) >:(
-
http://www.dlrg-illingen.de/fotos/plugins/captcha/fonts/ returns a custom 404 error page, so it appears to be missing imo, or the permissions are not set up properly.
-
http://www.dlrg-illingen.de/fotos/plugins/captcha/fonts/ returns a custom 404 error page, so it appears to be missing imo, or the permissions are not set up properly.
now, you can see the folder
here is the phpinfo: http://www.dlrg-illingen.de/phpinfo.php (http://www.dlrg-illingen.de/phpinfo.php)
-
ask your host about freetype version , this plugin needs freetype2
- I can't find your freetype version on phpinfo
-
Here's a question:
Is there any way to make the output of Captcha a little more readable? I understand it corrupts the output of the image so that spammers can't easily OCR the output and use that, but both myself and my users are finding at least 60% of the codes totally unreadable!
Thing is, once the person posting gets 'code doesn't match' they say 'ah, screw it' and don't post at all.
Any mods to make this a bit clearer?
Chris...
-
ask your host about freetype version , this plugin needs freetype2
- I can't find your freetype version on phpinfo
Freetype 2.1.7 is installed
-
@ turbozutek
You can change those two fonts (acidic.ttf,hurryup.ttf) with some clearer fonts, you can find them on {gallery root}/plugins/captcha/fonts
@Mario1
Sorry I don't have any suggestion ,
- try to re-upload plugin (fonts should upload with binary mode)
- also ask your host if they've disabled imagefttext function or not
-
I have just installed Captcha on http://lorelei.dwaalgasten.nl (http://lorelei.dwaalgasten.nl). When I enter a comment, I just get the message "Error: Confirmation code didn't matched". I have installed all Captcha files in the plugin directory, and used the plugin manager to install. Furthermore, I have deleted the lines so that all users should use Captcha. What could I have done wrong? Thanks for your help!
-
Yep,
I have the same problem on two of my sites.
First the plugin worked good, until ill integrated it in Joomla and ohter in PhpBBforum.
Anyone could help?
-
Post a link to your gallery
-
Ahhh, that worked really well - I swapped in two generic 'arial' type fonts and readability is now A1.. Without attracting any more spam.
Thanks Sami!
Chris...
-
Post a link to your gallery
These are the two links to my sites.
jangort.nl (http://jangort.nl)
bertgort.com (http://bertgort.com)(klick on "Foto's"(as it is dutch)
Will be glad if theres a solution! if anymore info needed just ask.
kluns
-
Jangort.nl misses the powered by coppermine signature.
-
As Hein already said , you should change color of copyright sig on jangort.nl
Do you have other plugin installed?
try to move this plugin at top of all
-
Thx very much for attending me both for colour.
No other plugin installed.
Just dont think plugin will work with coppermine bridged.
-
Hallo! I have the same problem!
When I enter a comment, I get always the message "Error: Confirmation code didn't matched".
My configuration:
Coppermine 1.4.10 bridged with Simple Machine Forum 1.1.1
www.astaz.ch/foto (http://www.astaz.ch/foto)
Anyone could help?
-
I'm also having the same problem: even when I enter the code correctly, it says "Confirmation code didn't matched".
I'm running the latest version (1.4.10). I do have two other plugins running, Digibug and full size access control. But I moved Captcha to the top and I don't see how those other plugins would interfere with this one anyway. Nothing reported in my log even though I turned on full reporting.
My website is http://gallery.koplowicz.com
This is an awesome plugin, I just hope I can get it working properly! Thanks in advance!
-
The system are cool. But didnt pass the W3 Validator :(
What can i do?
Thx.
Dieg0
-
The only error is that the word "matched" in the English error message should be "match".
Apart from that, perfect!
I changed the font to Arial.ttf - I'll use one of the hard-to-read fonts when the spambots learn to read captchas ;-)
Please link this forum topic from the old forum topic (the one that required tweaking your language and theme files) - I was originally trying for two hours to get that to work before I did another search and found this topic, and the plugin just worked :-)
-
Please link this forum topic from the old forum topic (the one that required tweaking your language and theme files) - I was originally trying for two hours to get that to work before I did another search and found this topic, and the plugin just worked :-)
Did as you suggested and edited the initial posting of the mod "Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php?topic=29564.0)" accordingly.
-
I'm also having the same problem: even when I enter the code correctly, it says "Confirmation code didn't matched".
i'm having that problem too ... i tried firefox and IE ... i even switched the fonts to more readable ones and i still got the error.
any ideas why this might be happening?
cheers!
david
-
I translated /lang/english.php into dutch (just two lines ;)).
How can I get it to work? :)
-
I translated /lang/english.php into dutch (just two lines ;)).
How can I get it to work? :)
That's funny :) Sami.. did you mis this post http://forum.coppermine-gallery.net/index.php?topic=36319.msg179463#msg179463 (http://forum.coppermine-gallery.net/index.php?topic=36319.msg179463#msg179463)
ff, what do you mean by getting it to work ? You have yet to say what is not working. Or you do you mean "how do install this plugin" (which is described in the documentation).
-
ff, what do you mean by getting it to work ? You have yet to say what is not working. Or you do you mean "how do install this plugin" (which is described in the documentation).
The plug-in is working great.
But I can't find how to set the language. Captcha still shows the English messages.
-
Hein, I'm Sorry , yes I missed that but I'll add it ASAP
@ff:this known issue , check this post :
http://forum.coppermine-gallery.net/index.php?topic=36319.msg191407#msg191407
I know , I should create better captcha plugin And I'll do that ;)
-
Hein, I'm Sorry , yes I missed that but I'll add it ASAP
@ff:this known issue , check this post :
http://forum.coppermine-gallery.net/index.php?topic=36319.msg191407#msg191407
I know , I should create better captcha plugin And I'll do that ;)
No problem Sami, looking forward to a better captcha plugin (although this latest version is already working good enough imho).
-
Thanks everybody for the great work on this Captcha plugin. I had once tried the code changes, but I'm not that good with PHP and I couldn't make it work. Now, with the version 1.7.1 it works perfectly!
I've added my own language version: Brazilian Portuguese. I'm attaching it here, in case you want to add it to the pack.
If you wanna take a look, my gallery is fotos.gustavobonato.com (http://fotos.gustavobonato.com)
-
@ff:this known issue , check this post :
http://forum.coppermine-gallery.net/index.php?topic=36319.msg191407#msg191407
I know , I should create better captcha plugin And I'll do that ;)
Ah, found it and it works. Great, thank you.
The better the plugin, the less postings.
Less postings, less stuff to answer.
Less stuff to answer, empty forum.
Empty forum? Where's the fun :D
-
i'm having that problem too ... i tried firefox and IE ... i even switched the fonts to more readable ones and i still got the error.
any ideas why this might be happening?
i'm having the same problem still ... and i guess i'm not the only one. i'd like to use this plugin because i'm getting spam on my comments. at the moment, i can't allow comments by guests due to the spam.
anyone able to offer some help on this? why is the captcha code being rejected even if it's right??
thanks
david
-
@Superdave and everybody else who has issues and asks for help:
Don't even bother to post here if you're not going to post a link to your gallery and a non-admin test user account. Just posting "I have issues" is not helpfull.
-
@Superdave and everybody else who has issues and asks for help:
Don't even bother to post here if you're not going to post a link to your gallery and a non-admin test user account. Just posting "I have issues" is not helpfull.
fair point mate!! sorry.
ok ... here's my site: http://www.super-dave.com (http://www.super-dave.com) (it opens to the coppermine gallery)
i'm using V1.7 of the captcha comment plugin (found in the first thread). i've got a few other plugins installed, but i've not modified the script. my version of coppermine is up to date.
i can't seem to get the confirmation code to work. it always says "confirmation code didn't match" ...
thanks for the help.
-
@Superdave and everybody else who has issues and asks for help:
Don't even bother to post here if you're not going to post a link to your gallery and a non-admin test user account. Just posting "I have issues" is not helpfull.
I did! http://forum.coppermine-gallery.net/index.php?topic=36319.msg203048#msg203048 (http://forum.coppermine-gallery.net/index.php?topic=36319.msg203048#msg203048) 17 days later, I know people are reading this thread, but no one wants to help me? (It's true I didn't post a non-admin test user, but since Captcha only works if you're not logged in, what's the point of that?)
Anyway I solved the problem on my own and I thought I'd post it here for the other people who are having this problem. I think my problem was that I was using my own custom theme. It was based on the "Classic" theme which doesn't have any CORE functions in theme.php.
The solution: use the captcha mod, not the plugin. The mod instructions helped me identify the CORE functions I needed, I copied those over from "Sample" theme and edited them according to the Captcha instructions. I have almost no PHP experience but I was still able to get it working in under half an hour.
Thanks to your wonderful plugin, I can allow comments on my gallery once again. Thank you!
PS: It seems that there are at least two different issues: image display and captcha denial. Maybe we should have two threads?
-
hey koppie
i'm glad you got it working ... but installing the full mod doesn't fix the problem with the plugin.
i don't want to use the full mod, because it means editing the theme.php file of every theme i want to use. globally, it's not beneficial to me to hardcode the mod into each theme. hence the desire to use the plugin.
but nobody's posted a solution or workaround to the error.
i'm not the only one getting this error ... so i'd be happy if someone was interested in having a look at the problem.
-
Thanks for this plugin, it seems to work wonders!
-
After some investigations on superdave's (http://forum.coppermine-gallery.net/index.php?action=profile;u=28920) server I've found that the problem was PHP configuration
if you are using relative path, something like ./ for session.save_path then you can't use this plugin , codding structure of plugin API would cause to session lost for those who use relative path for session save path
use captcha MOD (http://forum.coppermine-gallery.net/index.php?topic=29564.0) instead
-
Hi, Was wondering is there a way to add a BACK or Continue button under the Confirmation code didn't match?. Or something along them lines. even autorefresh continue maybe.
Very nice plugin btw
thanks
ricky
-
After some investigations on superdave's (http://forum.coppermine-gallery.net/index.php?action=profile;u=28920) server I've found that the problem was PHP configuration
if you are using relative path, something like ./ for session.save_path then you can't use this plugin , codding structure of plugin API would cause to session lost for those who use relative path for session save path
use captcha MOD (http://forum.coppermine-gallery.net/index.php?topic=29564.0) instead
yeah ... thanks for all your help sami. i solved the problem with a php.ini file in the root of the coppermine directory. i pointed to a new folder where it could save session data and now the plugin works fantastically!!
i didn't want to use the mod because i'd like to be able to change themes without having to recode the captcha every time ... so i love plugins. they're a great solution!
thanks again ... hope this is helpful to other people who have similar problems.
:)
-
Hello !
i have some pb with this plug-in
Install plug-in : OK, But no code font could be seen
Install mod : OK, But no code font could be seen too
My webhost support freefont.
I saw on the french forum that i must create a subfolder sessions + comment a ligne in captcha.class.php
I do and it's working, the code is now here !
But when i write a comment + the code, and clik on OK, i've got now : Confirmation code didn't matched
My web site : http://sauvageree.free.fr/BestOfPhotos/
-
i'am now running with the plug-in, but it's doesn't work...
-
I got Coppermine 1.4.10 running with some captcha cdode - (captcha mod by Abbas Ali)
I got that one deinstalled and tried to install the plugin with the new codebase - it works like a charm for the registrations - but the captcha image for the comments doesnt appear anymore.
the page is www.globalcomicjam.com (http://www.globalcomicjam.com) , you can use the user coppermine_help PW: test42
thanks for all the help and work you gave so far - would really appreciate your ideas on that one :)
-
after install the plugin y have a problem.
when i see the displayimage.php y can't see the image with the code captcha.
i have active the debug mode and the debug information is this:
Alertas
/plugins/captcha/include/init.inc.php
Notice line 24: Undefined variable: CONFIG
/include/themes.inc.php
Notice line 2196: Undefined index: uid
Notice line 1899: Undefined index: uid
/include/functions.inc.php
Notice line 1499: Undefined variable: query_term
/displayimage.php
Notice line 319: Undefined variable: meta_keywords
two weeks ago i updated the copermine 1.3.0 to 1.4.10
thank's
-
Don't post debug_output unless a supporter explicitely asks for it. Leave notices_display turned off unless you understand what the notices mean.
Instead of posting all this invalid information, post a link to your site after having read this entire thread. Check if you have the minimum requirements for this mod.
-
Sorry but i don´t speak english very well. It's dificult to me to read all this thread. I had read something y i saw that te other people post de debug_output
My gallery is http://www.fran206.com/galeria/index.php
where i can find the minimum requirements for the mod?? the readme.txt didn'e say nothing about minimum requirements
i dont undertand your comment: Leave notices_display turned off unless you understand what the notices mean
thanks
-
@sauvagere : It seems that you solved your problem , it would be good for others to describe your solution , thank you
@:Jost : you are using custom template for comment (I'm not familiar with mod pack but it could be it's template engine) and plugin couldn't find your comment block to replace , you have 3 way to solve this problem :
1)Copy & past original comment template form original CPG's themes.inc.php (not modpack) to your theme.php
something like this
// HTML template for the form to add comments
if (!isset($template_add_your_comment)) //{THEMES}
$template_add_your_comment = <<<EOT
<form method="post" name="post" action="db_input.php">
<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable">
<tr>
<td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td>
</tr>
<tr>
<td colspan="1">
<table width="100%" cellpadding="0" cellspacing="0">
<!-- BEGIN user_name_input -->
<tr>
<td class="tableb_compact">
{NAME}
</td>
<td class="tableb_compact">
<input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />
</td>
<!-- END user_name_input -->
<!-- BEGIN input_box_smilies -->
<td class="tableb_compact">
{COMMENT}
</td>
<td width="100%" class="tableb_compact">
<input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
</td>
<!-- END input_box_smilies -->
<!-- BEGIN input_box_no_smilies -->
<td class="tableb_compact">
{COMMENT}
</td>
<td width="100%" class="tableb_compact">
<input type="text" class="textinput" id="message" name="msg_body" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
</td>
<!-- END input_box_no_smilies -->
<td class="tableb_compact">
<input type="hidden" name="event" value="comment" />
<input type="hidden" name="pid" value="{PIC_ID}" />
<input type="submit" class="comment_button" name="submit" value="{OK}" />
</td>
</tr>
</table>
</td>
</tr>
<!-- BEGIN smilies -->
<tr>
<td width="100%" class="tableb_compact">
{SMILIES}
</td>
</tr>
<!-- END smilies -->
</table>
</form>
EOT;
2)Edit plugin's codebase.php file and change reg. expression
3)Use Captcha MOD instead of this plugin
@Kapitan_Pirula :I've got this when I browse captcha.php (http://www.fran206.com/galeria/plugins/captcha/captcha.php)
Fatal error: Call to undefined function: imageftbbox() in /home/html/galeria/plugins/captcha/include/captcha.class.php
It says that you don't have one of php's function (imageftbbox (http://us.php.net/imageftbbox)) installed, probably your host disable it , ask for support from host
-
@Kapitan_Pirula :I've got this when I browse captcha.php (http://www.fran206.com/galeria/plugins/captcha/captcha.php)
Fatal error: Call to undefined function: imageftbbox() in /home/html/galeria/plugins/captcha/include/captcha.class.php
It says that you don't have one of php's function (imageftbbox (http://us.php.net/imageftbbox)) installed, probably your host disable it , ask for support from host
i have intall the gallery with the captcha plugin in another server and it works. The problem is the GD version. In the fisrt i have the version 2.0 and in the second i have 2.0.1. This is the problem.
Thanks for your help
-
Having a great deal of trouble with this plugin as says it's installed on pluginmgr but it's not showing the captcha pictures allowing the spammers to continue to irritate me!
I did try the mod version as I have a customised theme but didn't have the theme.php scripts on my theme.php file. The mod didn't appear to work, probably because of this.
I hope someone can help me. :)
-
your page seems ok to me !!!
plugin works and I see the [captcha] picture
What kind of spam did you get ?
-
The usual same stuff over and over again.
I'm feeling very silly as forgot to sign out before checking. ::)
My own fault being very sleepy so it does all work. :D
-
It has been added to the core (cpg1.5) :)
please could you help me solving my troubles with this plugin ? I have only "cross" instead of captcha picture. I used this latest plugin. ???
Gallery can be found here http://fifo.matrixway.cz/gtl/photo/displayimage.php?album=topn&cat=-3&pos=0 ::)
thx !
-
check this:
http://fifo.matrixway.cz/gtl/photo/plugins/captcha/captcha.php
Check your GD version it should be 2.0.1 or up
ask your host for support
-
Hi Sami,
unfortunately i can`t see any captcha graphic in my gallery. Maybe you or someone else can help me?
http://codefree24.de/svw/gallery_svw/displayimage.php?album=11&pos=2
1.4.10 is installed
Freetype is enabled
Many Thanks
merlin666
-
the weirdest thing ...
i've had no problems since sami helped me ... the captcha works perfectly.
but in the last week, i've had 5 spam comments ...
how the hell could they be getting through? ???
www.super-dave.com ... (i've left one spam comment on my gallery, to see what they're doing).
-
Captcha only prevents automated robots from posting spam comments. But if some human is posting the comment, then he/she can definitely overcome captcha.
-
Captcha only prevents automated robots from posting spam comments. But if some human is posting the comment, then he/she can definitely overcome captcha.
ah, yeah ... i'd forgotten about that ... it would explain why there's only been 5 over about the last week.
thanks abbas! :)
-
@merlin666:I've got Error 403: Access Denied (in german) when I try
http://codefree24.de/svw/gallery_svw/plugins/captcha/captcha.php
and I don't know what to say !
I think it's better to ask for support from host
-
Hi,
Many thanks for the plugin - about two hours and it was working.
Problems encountered during the install....(I'm new to coppermine and it will probably show :)
Finding where to download it from - spent a good 30 mins searching the download section - it's a link at the bottom of the first message in this thread.
Once installed the CAPTCHA info wasn't displayed - I then messed around trying to install Freetype Support for a while as seemed to be suggested in a post I found.
Then found reference to GD and tried to get that up.
WHM - apache update failed to list GD as being installed - it does install but does not tick itself when installed (Actually I could find no reference here about GD needing to be installed in the first place)
after all this working, thanks.
The only problem I can see is I've got no ? for users to click to know what they are supposed to do - I'm sure I've seen that on some of the examples I've visited?
Paul.
As a side note - what I had set out to do was find a way of rejecting comments with a URL in them.
www.larp-pics.co.uk (http://www.larp-pics.co.uk)
-
thanks for feedback Paul :)
You are correct I should add requirement to the very first thread
There is another (Akismet) spam checking (it is a mod) for coppermine you can see it here
http://forum.coppermine-gallery.net/index.php?topic=33827.0
I don't test it personally ,maybe it can do what you want to do :)
-
I too am having trouble with the CAPTHA image not displaying.
I read contradicting this about posting the debug message. One said post, one said don't post unless asked. So I'm just going to post part of it;
==========================
VERSION INFO :
------------------
PHP version: 4.3.2 - OK
------------------
mySQL version: 4.1.8-standard
------------------
Coppermine version: 1.4.10(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.12 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support:
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
Let me know what else may be needed to help find the problem.
I had some errors in the notices, but not sure if those are needed too.
Thank you in advance, this is a great plug-in!
-
My problem installs the captcha I work ok, the uninstall, and later when installing it again and now repeats 2 times the code of security that I can make.
Url: http://www.tuningmix.com/displayimage-lastcom-0-1.html
Thankz
-
@CaptnMorgan:
it seems that you have edited plugins/captcha/captcha.php or you have edited plugins/captcha/include/captcha.class.php by trying this:
http://www.jobbienooner.com/coppermine_dir/plugins/captcha/captcha.php
you'll see the actual error , there is a missing argument for imageftbbox()
check your files and if you can't find the problem try to re-upload plugin
@willy63: you are using mark's 1.7.1 version of this plugin and I had not enough time to check his code , try to install my version (1.7) and see if error goes
-
@CaptnMorgan:
it seems that you have edited plugins/captcha/captcha.php or you have edited plugins/captcha/include/captcha.class.php by trying this:
http://www.mysite.com/coppermine_dir/plugins/captcha/captcha.php
you'll see the actual error , there is a missing argument for imageftbbox()
check your files and if you can't find the problem try to re-upload plugin
No, I didn't edit any files. I've tried re-uploading them, but that didn't help.
I guess I'll re-download the plug-in again though...
-
Re-downloaded, re-uploaded, re-installed.... no change though. :'(
update: I think the problem is with captcha.class.php.
When I view it after unzipping, it's corrupt. It's like it's been xferred in binary, when it should have been ascii. But all I did was unzip it. Here's what it looks like;
<?php
/***************************************************************/
/* PhpCaptcha */
/* Copyright 2005 Edward Eliot - http://www.ejeliot.com/ */
/* This class is Freeware, however please retain this */
/* copyright notice when using */
/* Last Updated: 26th November 2005 */
/***************************************************************/
// start a PHP session - this class uses
Holy crap, it pastes here fine!
How do I fix that? ???
update2: I pasted the code into a nw dreamweaver file, and it formatted it okay. Saved that, uploaded it, re-installed the plug-in, but I still get the same thing. Man, I thought that was it too.
Well the error says;
Warning: Wrong parameter count for imageftbbox() in /home/httpd/html/mysite.com/public_html/coppermine_dir/plugins/captcha/include/captcha.class.php on line 115
What does that mean?
-
That means you have missed one or more parameter when called imageftbbox() function , It will happen only if your file was edited wrongly or corrupted
If you give me an admin account of your gallery and a ftp account I'll check that
-
after checking CaptnMorgan's server I figure out that I should add some changes to captcha.class.php for backward compatibility , quick fix for these issue is changing DrawCharacters() function under plugin/captcha/include/captcha.class.php with this one
function DrawCharacters() {
//for backward compatability
$ex_info = array();
// loop through and write out selected number of characters
for ($i = 0; $i < strlen($this->sCode); $i++) {
// select random font
$sCurrentFont = $this->aFonts[array_rand($this->aFonts)];
// select random greyscale colour
$iRandColour = rand(0, 100);
$iTextColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);
if ($this->bCharShadow) {
// shadow colour
$iRandColour = rand(0, 100);
$iShadowColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);
}
// select random font size
$iFontSize = rand(16, 25);
// select random angle
$iAngle = rand(-30, 30);
// get dimensions of character in selected font and text size
$aCharDetails = imageftbbox($iFontSize, $iAngle, $sCurrentFont, $this->sCode[$i],$ex_info);
// calculate character starting coordinates
$iX = $this->iSpacing / 4 + $i * $this->iSpacing;
$iCharHeight = $aCharDetails[2] - $aCharDetails[5];
$iY = $this->iHeight / 2 + $iCharHeight / 4;
// write text to image
imagefttext($this->oImage, $iFontSize, $iAngle, $iX, $iY, $iTextColour, $sCurrentFont, $this->sCode[$i],$ex_info);
if ($this->bCharShadow) {
$iOffsetAngle = rand(-30, 30);
$iRandOffsetX = rand(-5, 5);
$iRandOffsetY = rand(-5, 5);
imagefttext($this->oImage, $iFontSize, $iOffsetAngle, $iX + $iRandOffsetX, $iY + $iRandOffsetY, $iShadowColour, $sCurrentFont, $this->sCode[$i]);
}
}
}
The only changes that I've made was , I've added an empty array ($ex_info) to the end of imageftbbox (http://us.php.net/manual/en/function.imageftbbox.php) and imagefttext() (http://us.php.net/manual/en/function.imagefttext.php) functions's arguments , last argument for both functions are optional since 4.3.5 but for those who have 4.3.4 or lower they should add this fix
-
Captcha ver 1.7
As I see , we have more than 240 downloads (till now) from Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php?topic=29564.0) mod by Abbas Ali , yes it's a great mod ;)
(IMO it should goes to core)
So here is the mod as a plugin ... Enjoy
Requirement:
=========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- Better compatibility with php 4.3.5 or later
Update:
v1.6 - 2006/10/10 - 04:10 GMT
Feature:
=======
- added "Only apply to unregistred user" to codebase.php
if you want to Captcha display for all users, remove (or comment) those line with this comment "// Remove this line if you want Captcha display to all"
from codebase.php
- Italian language added (Thanks to lontano [Davide])
fixes:
=====
- Blank page on batch add and admin tools fixed (Only happened on "apply to all user" )
v1.7 - 2006/10/22 - 15:20 GMT
fixes:
=====
- Theme improvement
Is there a lock for newly registered members to download this zip file? I just get an error message, stating that the possible cause is that the site requires login..I registered, but still can't download it...anything on the site of the forum why this would be happening? thanks,
Martin
-
Is there a lock for newly registered members to download this zip file?
No!!
I just get an error message, stating that the possible cause is that the site requires login..I registered, but still can't download it...anything on the site of the forum why this would be happening? thanks,
Check your connection , could be the forum's server at that moment try again later
there isn't any limit or download rule for new members at all
Update:
I download it my self as a guest and it was fine! so it would be something on your side
-
Plugin Update (1.8)
fixes:
=====
- Compatible with 1.4.12's new plugin api
- Backward compatibility for php under 4.3.5
new feature:
===========
- Add captcha for registration
Added language:
===============
- Dutch thanks to Hein
- French thanks to spikeweb
- German thanks to m@rk
- Brazilian portuguese thanks to Bonato
-
Installation:
1.Copy captcha folder to your plugins folder
2.Use plugin manager to install it
Where can I find the plugin manager?!
-
Config=>General settings=>Enable plugins=>( Manage plugins )
Or
go to
http://{your gallery}/pluginmgr.php
-
Hi there, think theres any chance of marks 1.7.1 lay-out been done on this version of captcha? As i like it on the right hand side
many thx ricky
-
language:
===============
- Italian Thanks to lontano
- Dutch Thanks to Hein
- French Thanks to spikeweb
- German Thanks to m@rk
- Brazilian portuguese Thanks to Bonato
hi sami , there is an attachment for "turkish.php"
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.12
CAPTCHA Plugin
Based on Mod by Abbas ali(http://forum.coppermine-gallery.net/index.php?topic=29564.0)
Plugin Writen by bmossavari at gmail dot com
**********************************************/
if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...'); }
$lang_plugin_captcha_conf = 'Onayla:';
$lang_plugin_captcha_error = 'Hata var, Onaylanmadı';
?>
best regards
dugunum
-
dugunum, thanks for translation :)
I'll add yours to the next release
-
First off, thanks for this great plug-in! Wished I'd found this earlier as it would have solved so many headaches. (Really got to get over here more frequently!)
I do have one question, which I did try searching for an answer on. (Maybe I'm not using right search words?) In the characters displayed, are they all supposed to be upper-case, or some lower-case? Been trying to test this out myself, and it keeps insisting I'm not entering the right 'phrase!'
Coppermine v1.4.12
Captcha v1.8 (only plug-in)
Bridged to SMF
http://www.design-comp.com/gallery/index.php
-
Plugin replace all input to Uppercase automatically so it doesn't matter if you type uppercase or lowercase , I think you have a session issue check this thread :
http://forum.coppermine-gallery.net/index.php?topic=36319.msg206506#msg206506
enable debug on admin mode and and then click on Display phpinfo below the debug info and find session.save_path
-
Hi2all
I've got an issue with http://www.kazakov.biz/coppermine/plugins/captcha/captcha.php image displaying.
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
Please help )
With best regards,
Ilya Kazakov
-
Plugin replace all input to Uppercase automatically so it doesn't matter if you type uppercase or lowercase , I think you have a session issue check this thread :
http://forum.coppermine-gallery.net/index.php?topic=36319.msg206506#msg206506
enable debug on admin mode and and then click on Display phpinfo below the debug info and find session.save_path
Under the PHP info it says:
session.save_path /tmp /tmp
So, now what should I do?
Sorry, I'm back editing this reply. In looking through the directories, I don't see one named '/tmp' anywhere. So, I gather the data isn't being stored anywhere so a comparison can be made. So, where do I need to make that directory at? Thanks! (Crossing fingers that will produce a fix.)
-
@ComputerLady
I didn't ask for debug info !
You can't (shouldn't) create tmp folder on your web space, it's root level folder
ask your host for support , tell them that your session doesn't stick
@cheaharu
You must have free type support , init post said:
Requirement:
=========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- Better compatibility with php 4.3.5 or later
-
have Big5?
-
@ComputerLady
I didn't ask for debug info !
You can't (shouldn't) create tmp folder on your web space, it's root level folder
I looked into my account further, and the tmp folder is there. Also tested the CAPTCHA system for SMF (Coppermine is bridged to that) and that works just fine. Indicating, I think, that the session path setting for PHP should be okay. That is, if the CAPTCHA system for SMF uses sessions too. Have to check over there.
In any case, I'm still stumped as to why check is failing. Going to check with my hosting company on their forum (http://www.lunarforums.com/) to see if anyone else there is experiencing this so they have some sort of clue. Going to tell them that this IS going to become part of Coppermine's core code in next major revision, so getting this right now is a good idea!
-
Well, as i can say..i had almost same issue.
And plugin was also not working couse i had cpg bridged with Joomla.
My only option was to unbridge. As noone got a solution for it sofar..
-
@ComputerLady: Give me a ftp account and an admin account of gallery and I'll check that , if you are happy with that ...
@klunstenaar: If plugin works on unbridged gallery then it could be session conflict on joomla , let me know which bridge you are using ...
-
Joomla 1.0.12 was bridged with the Mehdi bridge Joomcpg-bridge
In the time (a few months back) that i post the issue, i saw others
had the same problem with cpg bridged when trying use the captcha plugin.
-
Now I find the problem
You can't use this plugin for bridged gallery cause
Plugin API loads before bridge system and this will cause to captcha create its session before bridge files load, and then Both SMF (Load.php) and Joomla (global.php) will drop Captcha's session for security reason
BTW you can use captcha mod instead
-
@ComputerLady: Give me a ftp account and an admin account of gallery and I'll check that , if you are happy with that ...
I see I can send you a private message via the forum. Okay, let me get that setup and then send the details over to you via PM.
-
Thx for ur fast research Sami!
-
@ComputerLady: As I said early :
You can't use this plugin for bridged gallery cause
Plugin API loads before bridge system and this will cause to captcha create its session before bridge files load, and then Both SMF (Load.php) and Joomla (global.php) will drop Captcha's session for security reason
BTW you can use captcha mod instead
Please change/delete all username/password that you've send by PM to me
-
http://www.coppermine.hqubed.com/displayimage.php?pos=-10044
I couldnt tell if anyone has had this problem yet.
The captcha plugin used to work before I upgraded to the latest Coppermine version and now the captcha image wont render, help?
-
re-upload whole plugin to the server may helps you
I've got
Fatal error: Class 'PhpCaptcha' not found in /home/.klara/mechmykl/coppermine.hqubed.com/plugins/captcha/captcha.php on line 28
when I tried
http://www.coppermine.hqubed.com/plugins/captcha/captcha.php
-
Computers haha. I uninstalled, deleted, reuploaded and it magically worked, thanks man.
BTW when theres a failure your script says "Confirmation code didn't matched"
It should be "Confirmation code didn't match" to be correct english :)
Thanks again!
-
What Perl Module's do you need to run this? I have installed a few different GD's and its still not working. I control my own cpanel. I tried to e-mail the maker of this security thing and i think he is on vacation or something I got no response.
whoever helps me I can give them some free webspace for a year if they like... or maybe work out some kind of favor. Please note this only goes to the person who helps me get this working. first come first serve
B
-
You need GD support in php, not perl. You can recompile php with GD support using cpanel I think but we can't really provide server setup help here.
-
I know how to set it up everything.. I just need to know which ones I need.
-
Like for example to use coppermine I had to install imagemagik or magic whatever it was.. I am just trying to find out which one to install because there are so many different kinds.
-
You know what better yet.. here is a list
Algorithm::Accounting::Report::GDGraph
Algorithm::GDiffDelta
Algorithm::RectanglesContainingDot
Algorithm::RectanglesContainingDot_XS
Apache::GD::Graph
Apache::GD::Thumbnail
Apache::Wyrd::LogDump
Apache::Wyrd::Site::GDButton
Authen::Passphrase::EggdropBlowfish
Bio::ConnectDots::ConnectorSet::rgd
Bio::GMOD::Adaptor::SGD
CAD::Drawing::IO::PgDB
CGI::Application::Demo::LogDispatchDBI
CGI::Application::GDGraph::lines_ap
CGI::Application::PhotoGallery::GD
CGI::Application::Plugin::LogDispatch
CGI::Builder::LogDispatch
CIPP::LangDE
CNC::Cog::Gdcode
CORBA::LongDouble
Catalyst::Helper::View::GD::Barcode::QRcode
Catalyst::View::GD
Catalyst::View::GD::Barcode
Catalyst::View::GD::Barcode::QRcode
Chart::Gdchart
Crypt::Random::Provider::egd
Data::Stag::StagDB
Devel::DebugInit::GDB
Devel::GDB
Devel::GDB::LowLevel
Devel::GDB::Reflect
Devel::GDB::Reflect::DelegateProvider::Fallback
Devel::GDB::Reflect::DelegateProvider::STL
Devel::GDB::Reflect::MessageMethod
Devel::GDB::Reflect::PrettyPrinter
Finance::Bank::ES::INGDirect
Finance::Bank::INGDirect
Font::TTF::GDEF
Font::TTF::Scripts::GDL
GD
GD::3DBarGrapher
GD::Arrow
GD::Barcode
GD::Barcode::COOP2of5
GD::Barcode::Code39
GD::Barcode::Code93
GD::Barcode::EAN13
GD::Barcode::EAN8
GD::Barcode::IATA2of5
GD::Barcode::ITF
GD::Barcode::Image
GD::Barcode::Industrial2of5
GD::Barcode::Matrix2of5
GD::Barcode::NW7
GD::Barcode::QRcode
GD::Barcode::UPCA
GD::Barcode::UPCE
GD::Chart
GD::Chart::Radial
GD::Convert
GD::Dashboard
GD::Gauge
GD::Graph
GD::Graph3d
GD::Graph::Cartesian
GD::Graph::Data
GD::Graph::Error
GD::Graph::Map
GD::Graph::Polar
GD::Graph::Thermometer
GD::Graph::area
GD::Graph::axestype
GD::Graph::axestype3d
GD::Graph::bars
GD::Graph::bars3d
GD::Graph::boxplot
GD::Graph::colour
GD::Graph::cylinder
GD::Graph::cylinder3d
GD::Graph::hbars
GD::Graph::histogram
GD::Graph::lines
GD::Graph::lines3d
GD::Graph::linespoints
GD::Graph::mixed
GD::Graph::pie
GD::Graph::pie3d
GD::Graph::points
GD::Graph::radar
GD::Graph::sparklines
GD::Graph::splined
GD::Graph::utils
GD::Graph::xylines
GD::Graph::xylinespoints
GD::Graph::xypoints
GD::Icons
GD::Icons::Config
GD::Image::AnimatedGif
GD::Image::CopyIFS
GD::Image::Orientation
GD::Image::Scale2x
GD::Image::Thumbnail
GD::Map
GD::OrgChart
GD::Polyline
GD::RPPNG
GD::SIRDS
GD::SVG
GD::SecurityImage
GD::SecurityImage::AC
GD::SecurityImage::GD
GD::SecurityImage::Magick
GD::SecurityImage::Styles
GD::Simple
GD::Tab::Ukulele
GD::Text
GD::Text::Align
GD::Text::Arc
GD::Text::Wrap
GD::Thumbnail
GD::Tiler
GD::XYScale
GDA
GDA::Config
GDA::DSN
GDA::Log
GDA::Provider
GDBM_File
GDS2
GO::View::GD
Games::Chess::Coverage::GD
Games::Chess::Coverage::GD::Board
Games::Chess::Coverage::GD::Draw
Games::Chess::Coverage::GD::Move
Games::Chess::Coverage::GD::Threat
Games::Go::SGF2misc::GD
Gdcode
Geo::Coordinates::Converter::Datum::Jgd2000
Geo::GD::Image
Geo::GDAL
Geo::GDAL::Const
Google::Checkout::Command::AddTrackingData
Graph::Timeline::DiagonalGD
Graph::Timeline::GD
Gtk2::Ex::Geo::GDALDialog
Gtk2::Ex::Graph::GD
Gtk::Gdk
Gtk::Gdk::ImlibImage
Gtk::Gdk::Pixbuf
HTML::Prototype::DragDrop
IPC::SysV::MsgDS
Image::GD::Thumbnail
Integrator::Test::ConfigData
JOT::GD
Kwiki::GDGraphGenerator
Lingua::YaTeA::ChunkingDataSet
Lingua::YaTeA::ChunkingDataSubset
Log::Report::Dispatcher::LogDispatch
Microarray::DataMatrix::BigDataMatrix
Net::Google::GData
Number::Phone::NANP::GD
OGDL::Graph
OGDL::Parser
OGDL::Path
Object::eBay::ListingDetails
PDF::API2::Basic::TTF::GDEF
PDF::API2::Resource::Font::CoreFont::wingdings
PDF::API2::Resource::XObject::Image::GD
POE::Component::GCS::Server::LogDemo
Parse::AFP::FGD
Parse::AFP::GDD
Parse::AFP::PGD
Perlbal::Plugin::AutoRemoveLeadingDir
Plagger::Plugin::Filter::FloatingDateTime
RPC::Serialized::ACL::Group::GDBM_File
SPOPS::GDBM
SVG::GD
SWF::Builder::Bitmap::Lossless::GD
SWF::Builder::Character::Bitmap::Lossless::GD
SWF::Builder::Character::Bitmap::Lossless::GDPixel
Syntax::Highlight::Engine::Kate::GDL
Template::GD
Template::Plugin::GD
Template::Plugin::GD::Constants
Template::Plugin::GD::Graph::area
Template::Plugin::GD::Graph::bars
Template::Plugin::GD::Graph::bars3d
Template::Plugin::GD::Graph::lines
Template::Plugin::GD::Graph::lines3d
Template::Plugin::GD::Graph::linespoints
Template::Plugin::GD::Graph::mixed
Template::Plugin::GD::Graph::pie
Template::Plugin::GD::Graph::pie3d
Template::Plugin::GD::Graph::points
Template::Plugin::GD::Image
Template::Plugin::GD::Polygon
Template::Plugin::GD::Text
Template::Plugin::GD::Text::Align
Template::Plugin::GD::Text::Wrap
Term::GDBUI
Test::Image::GD
Tk::DragDrop
Tk::DragDrop::Common
Tk::DragDrop::Rect
Tk::DragDrop::SunConst
Tk::DragDrop::SunDrop
Tk::DragDrop::SunSite
Tk::DragDrop::Win32Drop
Tk::DragDrop::Win32Site
Tk::DragDrop::XDNDDrop
Tk::DragDrop::XDNDSite
TripleStore::Query::Sort::StringDescending
UI::Dialog::Backend::GDialog
UMMF::UML_1_5::Foundation::Extension_Mechanisms::TagDefinition
VCS::LibCVS::WorkingDirectory
WWW::Yahoo::DrivingDirections
Win32::Exe::DebugDirectory
Win32::GD
XAO::DO::Data::CatalogData
XML::GDOME
XML::GDOME::SAX::Builder
XML::GDOME::SAX::Generator
XML::GDOME::SAX::Parser
XML::GDOME::XSLT
XML::SAX::Machines::ConfigDefaults
XML::XSH::GDOMECompat
auto::gdbm
ogd
Those are the types of gd. I am pretty sure that I have the right gd installed..
but are there other mods that this script uses?
So far we know it uses gd
but does it use Captcha?
or a free type mod?
maybe some type on api?
I have installed several.
I just wanted to know which ones it uses.
-
I already told you - it doesn't use perl. Installing perl modules accomplishes nothing.
-
I do not how to go about this but I am sorry. It does use perl modules. To use coppermine I had to install ImageMagick which is a perl module. To run certain things you need to install certain perl modules, in cpanel. I'm sorry I am not trying to fight with you.. I am just trying to figure out what modules I have to install so I can get it working. My offer still stands for decent web hosting for one year if you want it. PLEASE NOTE this only applys to the person who helps me get this working. first come first serve
-
As initial thread said This plugin only needs
- GD 2.x (2.0.28 or later is recommended) with Freetype support
and it's not working with ImageMagick
So You need to install GD only, by re-compiling your apache with GD
I'm sure you have Easyapache on your Cpanel So
- Go to WHM=>Software=>Apache update => check the GD check box =>Press recompile
- Configure and enable GD by removing semicolon from proper lines of php.ini
-
Thank you. Yea I saw the requirements at the beginning of there... I had gd installed... Maybe I got a corrupt file or something... I will mess around with it and let you know. For Imagemagick I was using it as a example for coppermine, sorry to confuse you there.
-
Hi all! first of all I would like to thank you for the coppermine gallery and this plugin!
We also had a lot of spam comments and today I decided to install the plugin
The gallery is www.rutherford-art.com (http://www.rutherford-art.com). the plugin works great unless, when submitting a comment without writing the code, that it fails, I get the error below.
NOTE: I searched in the forum to find answers related without result, so could you please give me a hint? Thankyou Carlos.
Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :
<div align="center">
<table cellpadding="0" cellspacing="1">
<tr>
<td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
<td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
<td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
<td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
<td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
<td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
<td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
<td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
<td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
<td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
<td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
</tr>
</table>
</div>
-
You are using custom theme and error indicate that you don't have a mandatory code on your custom theme
if you have $template_gallery_admin_menu variable at your custom theme.php (http://www.rutherford-art.com/themes/rutherford/theme.php) check if you have <!-- BEGIN log_ecards -->and<!-- END log_ecards --> around db_ecard.php link
read this thread for more info please
http://forum.coppermine-gallery.net/index.php?topic=26897.0
Bottom line , You (as an admin) are the only one that can see that error , regular users wouldn't see that so it's safe to ignore it
-
Ha it was a corrupt file. Wow I bet a few people are hating alot right now. Its cool ha Thanks for humoring me at least.
cheerio!! ;)
-
You are using custom theme and error indicate that you don't have a mandatory code on your custom theme
if you have $template_gallery_admin_menu variable at your custom theme.php (http://www.rutherford-art.com/themes/rutherford/theme.php) check if you have <!-- BEGIN log_ecards -->and<!-- END log_ecards --> around db_ecard.php link
Hi again! thank you very much Sami, I'll try what you suggest and let you know the results!
Again thank you! Carlos
-
Issues with (badly) customized themes should not be discussed in this thread imo. This is an announcement thread after all, it only deals with the Captcha plugin. When in doubt, start a thread of your own that contains reference to this thread - something like
On my site http://mysite.tld/my_coppermine_folder/ (test user account: username/password) I have issues when trying to use the plugin "PluginName" (http://link.to.announcement.thread/). I use the custom theme my_cust_theme that I have zipped and attached to this posting. When doing XXX, I get the error message YYY. I have read the threads http://some.thread.that.didnt.help/ and http://another.thread.that.didnt.help.neither/, but couldn't figure out what is wrong. Can somebody please advise!
should be fine.
-
I'm just now setting up 1.4.12 and the captcha 1.8 is the only plug-in I've installed. It works fine on comments. I see in the readme that it should also work for registration, but it's not showing up on that page. Any ideas?
Oh... I saw a contact plug-in referenced, so I'm off to try and find it. But, if you can give me a link to that too, I'd appreciate it.
Thanks in advance,
Steve
http://gallery.rollanet.org/
-
Steve
I can't find a solution for you!!!
Everything is normal and plugin must works unless you've changed something on codebase.php or have installed another plugin that has conflict with captcha
-
Steve
I can't find a solution for you!!!
Everything is normal and plugin must works unless you've changed something on codebase.php or have installed another plugin that has conflict with captcha
In case a other plugin is interfering use the plugin manager to put the captcha plugin higher up in the list so it will be loaded before any interfering plugin.
-
It was the only plugin I had installed at the time. Now I've also added the "Contact" plugin. I've tried changing the order, but that didn't work. The only change I made to codebase.php was to remove the comments so it still is required if you're logged in. I replaced the file with original codebase.php.
I am using the "digital_red" theme. I had to fix it and add the begin home/end home section in theme.php to get the "Contact" plugin to work. So, maybe there's a fix I need to make so that captcha works on the registration page?
Any ideas what files and php code I should look for that might be missing in the theme I'm using? I'd be happy to upload files for someone to look at if anyone wants to let me know which ones might need fixing.
Thanks,
Steve
http://gallery.rollanet.org/
-
Okay then , zip your whole digital_red theme folder and also zip your captcha plugin folder and attach them both to this thread
-
Okay.. here they are. Thanks for looking.
-
It's working fine with your files on my test bed ???
I'm out of suggestion!
-
:( Thanks for trying. It works on the comments and in the contact plug-in, so don't know what it could be.
Hey... do you have plans on modifying it to work when sending e-cards too?
Steve
-
I hope I am posting in the correct place - I couldnt see any other way to post.
I have installed Captcha on my Gallery but it is only working if I am logged in as administrator.
I have gone over logs and everything else looking for a solution.
I want anyone that comes to the gallery to be able to post comments but use Captcha.
If I need to remove any lines than I am removing the wrong ones or not enough of one becuase I just can't get it to show up and I am getting a little frustrated.
Thank you and forgive me if I am posting in an incorrect area.
-
First post in this thread displays (in bold) :
if you want to Captcha display for all users, remove (or comment) those line with this comment "// Remove this line if you want Captcha display to all"
from codebase.php
Did you do what is mentioned above ?
-
I'm attaching the Spanish translation.
spanish.php
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.12
CAPTCHA Plugin
Based on Mod by Abbas ali(http://forum.coppermine-gallery.net/index.php?topic=29564.0)
Plugin Writen by bmossavari at gmail dot com
**********************************************/
if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...'); }
$lang_plugin_captcha_conf = 'Confirmar';
$lang_plugin_captcha_error = 'Código de confirmación incorrecto';
?>
-
I can't manage to work with captcha
Page keeps loading and no captcha image or error (even in debug mode in php).
apache-2.0.59-2
PHP Version 5.2.4
Coppermine 1.4.12
Captcha 1.8 plugin version
Info from phpinfo
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
-
Can't find a solution for you , cause page doesn't load !
you should check your server error log
-
Both, error_log and access_log are not showing anything (even in php debug mode) what should'nt be there.
Ths behaivior began when i upgraded apache, config files stayed so as they were before update...
One behaivior what i discovered was that in same session (dosn't close browser) also other pages keeps loading, but when i close browser and reopen it loads pages normally until i go to captcha page...
Strange is that everything else is working fine...
For example
-
New release of plugin ver 1.9
added feature: Captcha on Report to admin page
@illukas : Sorry but I don't know what to suggest !
let's try to re-upload the whole plugin
-
installed ~8)
-
@illukas : Sorry but I don't know what to suggest !
let's try to re-upload the whole plugin
tryed to upload whole plugin, in binary and in ascii and auto
redownloaded gallery, reinstalled (was 1.4.9, now 1.4.12)
I give a try to 1.9 and try manually add this mod, make a test platform with fresh linux install and try there.
If i discover something i'll let you know
-
New release of plugin ver 1.9
added feature: Captcha on Report to admin page
the old versionsnumber 1.8 is shown in PlugIns Manager ;)
-
Thank you for pointing that out ,
- Version Fixed
- Spanish language added (Thanks to pepemosca (http://forum.coppermine-gallery.net/index.php?action=profile;u=47952))
-
1.9 is working as expected. Thanks Sami!
-
Now all fine - Thanks Sami!
-
hi dears,
how could i change upper characters to lower characters for captcha, thx
best regards
-
mmm i spoke to soon.. registration form does not have a captcha field anymore. I did remove al the "// Remove this line if you want Captcha display to all" lines as i did with the previous plugin version. Did i mis anything ?
-
Sorry for that
Fixed now
-
New version (2.0) of Captcha with new feature released :
- Add captcha for login
- Add captcha for Ecard
- Add new settings for group base captcha control for each page
- Add redirect/back button when confirmation code is wrong
Feedback please ;)
-
Thank's for sharing this plugin, works fine for me (login and ecard)
Poubao :D
-
many thanks, it is great and working, :D
and I'm attaching the Turkish translation.
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.12
CAPTCHA Plugin
Based on Mod by Abbas ali(http://forum.coppermine-gallery.net/index.php?topic=29564.0)
Plugin Writen by bmossavari at gmail dot com
**********************************************/
if (!defined('IN_COPPERMINE')) { die('Not in Coppermine...'); }
$lang_plugin_captcha_conf = 'Onayla';
$lang_plugin_captcha_error = 'Girdiğiniz Kod Yanlış, Yeniden Deneyin.';
?>
-
The Captcha Plugin V2.0 is displayed but dont work. Can you say me why?
I have the coppermine V1.4.13.
http://galerie.vwteam.com/displayimage.php?pos=-302
http://galerie.vwteam.com/ecard.php?album=7&pid=302&pos=22
by the way im admin and i can see the captcha, but in the codebase.php:
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators',
'ecard' => 'Administrators',
);
-
-You're using bridge version so you should put the name of administrators group of the forum (remove "s" from end of Administrators)
- Sorry But you can't use Captcha Plugin with bridged gallery to SMF , cause SMF will discard Captcha's Session and you always get 'wrong confirmation code' error
-
Thx! ;)
-
I did as you suggested under German support board ;)
known issue/bug added to announcement thread
-
Although the plugin is great I'm not happy with the fact that it relies on sessions. The issues ronny had prove that we should not rely on sessions in an environment where we provide interaction with various apps that we have no control over (bridging). As you (Sami) probably are aware, Captcha support has been added to the cpg1.5.x branch as a standard feature. I will have to review the entire approach of the plugin and re-code it. In my opinion, sessions should only be used if we have no other method to track the user. Cookies are much more reliable and we use them anyway; if a user doesn't accept our cookies, he can hardly use coppermine anyway. This being said, I'm going to look into changing the whole captcha stuff. I'm planning to add a check for the additional requirements and a fallback to ascii chars if captchas don't work. Please note that this posting is mainly aimed at Sami and the other devs, so don't expect results in the near future that users of the captcha plugin for cpg1.4.x could actually benefit from.
-
@Joachim: How about using database to store captcha information? Records from captcha table will be deleted if older then say 5 mins.
I guess we should split this thread to take this discussion further.
-
@DEVS : See new thread (http://forum.coppermine-gallery.net/index.php?topic=47037.0) about new captcha implementation idea please
-
New release of Captcha plugin (version 3.0)
- Cpatcha code now store to DB instead of Session (this will fix plugin issue with bridged gallery to SMF)
- Documentation improve , described captcha image setting
Let me know if anything goes wrong !
-
Arkadiusz Dylag sent polish translation
surly I'll add it to the next release
Installation:
- Extract polish.zip
- Copy polish.php to lang folder of plugin
-
Installed captcha 3.0 on my cpg with the other plugins and it works almost perfect. Somehow captcha does not show up when someone wants to register. Any ideas ?
-
Hein , link please ....
-
Hein , link please ....
My bad.. link is http://fototest.scouting.nl/index.php (http://fototest.scouting.nl/index.php)
Test account, should you need one is test:test
Captcha does show up on the comment and login screen but not on the registration screen.
-
It's strange I can't see any issue here !
preg_match can't see the expression (Line #82 $exper) on your register.php output , but when I check I can see it
BTW try this :
edit plugins/captcha/codebase.php
change this (Line #82)
$exper = '(<td colspan="2" align="center" class="tablef">.*
.*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
.*</td>)';
to this
$exper = '(<td.*>.*\n.*<input type="submit" name="submit".*\n.*</td>)';
Update: changed new exper
-
Installed captcha 3.0 but captcha not show up on the comment, my gallery http://urbanfoto.pl
-
link doesn't works ...!
-
Now is good
-
It's strange I can't see any issue here !
preg_match can't see the expression (Line #82 $exper) on your register.php output , but when I check I can see it
BTW try this :
change this (Line #82)
$exper = '(<td colspan="2" align="center" class="tablef">.*
.*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
.*</td>)';
to this
$exper = '(<td.*>.*\n.*<input type="submit" name="submit".*\n.*</td>)';
Update: changed new exper
Sami, thanks. Changing the above mentioned code did it. Captcha now also works on the registration page. Seems to me it is a winner once again.
-
gracias
-
Updated CPG to 1.4.13 and suddenly I don't get any 'image' with captcha.
http://www.ff.fm/fotoalbum/ uses version 1.7
http://www.xarno.nl/fotoalbum/ uses version 3.0 (upgraded today, because 1.7 didn't show anything)
Both don't give the code to enter.
http://www.ff.fm/fotoalbum/captcha.php gives an empty page
http://www.xarno.nl/fotoalbum/captcha.php gives a critical error `Error fetching from database'.
But http://www.ff.fm/hummeltje/fotoalbum/index.php does work fine.
Both domains are virtual on one server.
---
PHP-info:
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
---
-
But http://www.ff.fm/hummeltje/fotoalbum/index.php does work fine.
This is the old captcha from Abbas Ali for comments only. Isn´t it?
-------------------------------------------------------------------
I have the same problem. The captcha doesn´t work. Look:
http://galerie.vwteam.com/displayimage.php?album=90&pos=16
After install it was working. Then i changed this:
// create new image
$oPhpCaptcha = new PhpCaptcha(
$aFonts, // array of TrueType fonts to use
145, // width of image
45, // height of image
5, // number of characters to draw
0, // number of noise lines to draw
false, // add shadow to generated characters to further obscure code
$sOwnerText = 'VWTeam.com Spam-Schutz', // add owner text to bottom of CAPTCHA, usually your site address
$aCharSet = array(), // array of characters to select from - if blank uses upper case A - Z
$sBackgroundImage = '' // background image to use - if blank creates image with white background
);
and it doesn´t work. With the old settings too! ???
My gallery is bridged with SMF!
-
@ff:Enable Debug mode to see the actual error
@ronny : setting 0 for noise lines isn't good idea this way spammers can break your captcha
please rename your captcha.php (something like captcha.txt) and attach it to this thread
-
@ff:Enable Debug mode to see the actual error
I've chmod -x the captcha dir to log in and went to settings, now I get a debug msg:
(wrong code added, removed)
-
@Sami
Here is my captcha.php
-
@ff:
post error string instead of debug info
-
@ff:
post error string instead of debug info
Got this message:
While executing query "DELETE FROM cpg1410_plugin_captcha where UNIX_TIMESTAMP(time) < 1191148396 " on 0
mySQL error: Table 'xy_fotoalbum.cpg1410_plugin_captcha' doesn't exist
Bestand: /var/virtual/www.xarno.nl/fotoalbum/include/functions.inc.php - Regel: 249
Seems logical, I didn't install anything in the database.
But what must be installed? Didn't see it in the Readme.
(edited wrong error message)
-
uninstall captcha and re-install it
-
have tried this but it doesn´t work! :(
-
Make sure your mysql user has permission to create new tables. Alternatively create the tables needed manually.
-
@runny :I was suggesting that for ff
and here is you answer :
I think you are looking at wrong captcha.php
you should copy original captcha.php to your gallery root
-
ok. now the captcha.php is in gallery root!
now i have double files in the root and in plugins/captcha root
have version V3 captcha
http://galerie.vwteam.com/captcha.php
BUT NOW MY GALLERY DOESN´T WORK! :'(
http://galerie.vwteam.com
-
uninstall captcha and re-install it
Works. Great, thank you.
-
@runny:
I can see that you've different issue , here is what I go
http://galerie.vwteam.com/displayimage.php?album=90&pos=16
Fatal error: Call to undefined function: get_meta_album_set() in /is/htdocs/wp1042278_CLQ3D3VQ99/www/html/scripte/bilder/displayimage.php on line 249
So please first uninstall captcha plugin and then try to browse
http://galerie.vwteam.com/displayimage.php?album=90&pos=16
if still getthat error then you need to re-upload displayimage.php and include/functions.inc.php
-
can´t uninstall
http://galerie.vwteam.com/pluginmgr.php
-
re-upload include/themes.inc.php
-
i upload it and its the same.
i try something...
i re-upload include/functions.inc.php too...
should i delete the cpg143_plugin_captcha from the database?
edit: now it works perfect... :-\ but please don´t ask me why i don´t know.
i re-upload all captcha files and it works. Sorry for your time...
- solved -
-
Hi,
I've read the whole thread... and did not manage so far to make Captcha 3.0 work! Version 1.8 just worked fine!
http://www.unmomento.net/captcha.php
Checked in debug mode as well.. no error message.. DB is fine as well (Table are present).
Any ideas? Instead of a picture it shows only a "red" cross...
Thanks.. b.t.w. a really great plugin!
-
try to uninstall and re-install the plugin and after that if error exist
Would you please enable debug mode for all and let me know to check that
-
wow, thanks for the quick reply.
--> reinstall did not solve the problem (I've checked if the uninstall did work)
--> debug for all enabled
thanks!
-
Thank you! Very good job. Simple to integrate, thank you again!
-
@holyworld: Do you have any other plugin installed?
- try to move captcha plugin to the top of all other installed plugin with plugin manager
-
Thanks!
I've removed a pluging called "Contact" which is using Captcha as well.. this might have cause the trouble.
Problem is not solved yet. Now instead of a red cross I do get the word "image".
http://www.unmomento.net/captcha.php
Any hints?
Thanks a lot!
PS1: Is there a way to use the plugin "contact" together with the Captcha plugin? Probably by just changing the order as you suggested..
PS2: The contact plugin by Franzt works fine.. the image is being displayed correctly...
Cheers
-
Your image is corrupted by a plugin that is injecting code to all pages
First of all disable all plugins except CAPTCHA and check if it's working then go ahead and install others and check
Is there a way to use the plugin "contact" together with the Captcha plugin? Probably by just changing the order as you suggested..
Sure , there shouldn't be a major problem with that
-
Thanks for the quick response.
--> removed ALL plugins (actually I have done this before as well)
1) Installed V1.9 --> OK
2) installed V2.0 --> OK
3) installed V3.0 --> NOT OK, red cross
reinstalled and still the red cross... no other plugins are installed.. and the Captch plugin is original. The table exists in the DB...
All customization I have done is based on the normal framework.
right now I have installed V2.0... but would love to switch to V3.0
any other hints where to look?
Thanks!!
-
just copy captcha.php from v 3.0 to your gallery root and let me know
-
done, incl. switched on debug mode.
thanks
-
Sorry but you need to create cpg133_plugin_captcha table too
here is the code
CREATE TABLE `cpg132_plugin_captcha` (
`time` datetime NOT NULL default '0000-00-00 00:00:00',
`ip_addr` tinytext NOT NULL,
`code` char(32) NOT NULL default ''
) TYPE=MyISAM COMMENT='Used to store captcha code and user ip';
you should run it under phpmyadmin by selecting your gallery databse
-
OK, table created successfully!
The capcha.php still return the same text: "image".
hmnn I am really wondering, why V2.0 and the Contact plugin do work.. and V3.0 not...
-
Pm me
- An admin account of your gallery
- A ftp account
if it's okay with youand I'll take a look at that
-
@holyworld: That wasn't (directly) captcha plugin issue
you had an empty line at the very first of themes/unmomento/theme.php and that cause captcha image break
I fixed it for you ;)
This kinds of mistakes may effect some other functionality of gallery as well (ZIP download of favorite)
-
Indeed it is fixed.. for both issues!!
Thanks a lot for this fantastic help!
Cheers
PS I see now what price has to be payed, when you customize these themes too much!... I had issues as well with Highslide.. but its working now....
-
I tried upgrading from 1.8 to 3.0, and
1. the captcha image didn't show up.
2. I got a critical database error when I tried to log back in. I had to delete the plugin in order to login.
-
- Enable debug and post actual error (not debug info) here
- Post a link to gallery
-
I upgraded from 1.7 to 3.0, installation was ok and also plugin is working as expected. There is only a small problem with ecards, if you preview an ecard the "textarea" with the message in the preview is empty. I fixed the problem by adding the following line:
$message = get_post_var('message');
after
case 'ecard.php':
in function captcha_main()
I don't know whether this is the correct way to do it but now it works.
Gianpaolo
-
Thanks for pointing that out I'll add it to next version
-
Hi!
I installed this plugin, but the image verification IMAGE isn't loading. What am I missing here?
http://www.jarodsafehouse.com/mtwscrapbook/displayimage.php?album=lastup&cat=0&pos=0
-
Do not forget to put captcha.php at the root of your coppermine.
3.Copy captcha.php to gallery root
-
My captcha.php image breaks as well....gallery is http://a-scott.for-fan.org/gallery
here is the debug code:
Removed
really want this to work :( i've uploaded all the other stuff
-
Don't post debug_output unless requested. Posting a link to your gallery might help more.
-
oh sorry! i just edited my post with the link :)
-
sorry i need help asap
haveta always delete it so i can log back in again since the image verification isnt loading so i can't even log into admin panel...
-
OK first problem the image verification thing shows up even when the 'Administrators' group is under $CAPTCHA_DISABLE array! So everytime I try to login to my Admin account I can't coz I can't see the image! Hence I have to delete the captcha folder log in then restore the folder. Sorted it out silly me
Secondly why isn't the image showing up? Please help thanks!
-
Please Do not PM me next time .
Requirement:
===========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- What is your php version?
- GD version ?
- is freetype supported ?
Enable debug mode and let me know , I'll check it ASAP .
Also Don't forget to upgrade to 1.4.14 ASAP , there is a XSS vulnerability on 1.4.13 read this for more info:
http://forum.coppermine-gallery.net/index.php?topic=48106.msg230026#msg230026
-
ok PHP version 4.4.7
GD version 2.0.28
but cant find the freetype support (where do i look for this? under phpinfo as well?) so maybe I don't have it? :o
ok will enable debug now for all users
P.S. Will update tomorrow after my exam heeeheh
-
I'm also having a freetype issue. I'm using php with gd, but cannot find anything on the freetype webpage to install it correctly in a windows environment.
Any tips would be greatly appreciated. Oh and I did do the update (xss) ;)
-
@suwii:
You should have something like this on your phpinfo :
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
if you don't have freetype support then ask your host to enable it
@chowland
this is not relatd to this topic nor this forum
BTW you may need to install new version of GD on your server
check this:
http://ca.php.net/manual/en/ref.image.php
-
On Windos-driven servers, you just uncomment the corresponding option in PHP's ini file (if the server is yours to administer). Self-hosting is not recommended though, nor do we provide support for webserver setup. Please don't clutter this thread with webserver setup issues. This plugin has some pre-requisites. If you don't meet them, fix this first (looking for help somewhere else).
-
thanks for the great plugin!
one little issue which i think is due to our server but if anyone could help i would be grateful
on our gallery since installing plugin it says "This is sample data returned from plugin ""."
link to gallery: www.freshclubbing.net/gallery
-
Remove the sample plugin.
-
Remove the sample plugin.
how do i do that?
-
login as an admin go to plugin manager and uninstall sample plugin
Not related to this (captcha) plugin !!!
-
Hello Sami,
In one of my Gallerys, i found a curious issue ! (it do'nt work)
All Captcha 3.0 was correctly installed inside "plugins/captcha/", and Captcha.php placed on the Gallery's root.
Unfortunately, like other CPG's Users the IMG code do not appear at all.
But at the same time, if i want to open directly Captcha.php (/CPG-root/captcha.php) only the text "/CPG-root/captcha.php" appear on my screen.
Now, from this blank page, if i want to view the "Page Properties" her weight is 2.69 Ko (2750 octets) !
2.69ko just for a small URL on my screen, it's totally weird !
Then, this page's source code i'm opening is the JPEG image code ???
See the first line of this code source :
blablabla CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality blablabla
I think the generated JPEG is wrong! but my GD is good :
GD
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Do you see this issue before ?
PYAP
-
Check for whitespace before the headers are sent.
-
As Nibbler already said , you have something (plugin or mod) that loads before this plugin , this plugin/mod inject whitespace or some text to captcha.php which makes this issue
-
Hi.. i have a problem on my site..
the Captcha plugin works on everthing except the Registration page.. no image is showing.
so no users can register.. Please help.. ;D
they get a code dont match error.
my site: www.onlinegalleriet.dk (http://www.onlinegalleriet.dk)
i have read the readme and searched all the forum, but no answer, hope you can help..
Best reg.
Admin Onlinegalleriet.dk
-
http://forum.coppermine-gallery.net/index.php?topic=36319.msg225008#msg225008
-
Sorry.. :) my register.php does not include thoose lines. ?
Hi.. ;D i changed the Codebase instead.. it worked.. thanx.. anyway..
-
Hi all
I'm trying to install Captcha (version 3)
I've only two plugins : Captcha and Contact Plugin but captcha doesn't works if Contact Plugin is installed. Instead of image, the red cross appears...
But i need both ;D
If Contact Plugin is (re) enabled Captch doesn't works anymore...
I've tried to find blank spaces in my files but i can't find them.
Could you help me
And sorry for my bad english :P
cpg has been upgraded with last version
-
That should be check over contact plugin side IMO
-
What is "IMO" ? :P
-
IMO=In My Opinion ;)
-
Doesn't works anymore, what else ::)
-
"Doesn't work" doesn't mean anything and is far from a valid support request. Post a real question, with a link and non-admin test user account
-
Question was before
I've only two plugins : Captcha and Contact Plugin.
But captcha doesn't works if Contact Plugin is installed and "vice versa".
Instead of captcha image, the red cross appears...
Here is my website -http://www.fande-loisirs-creatifs.com
At this moment, only captcha is enabled and works fine but i need contact plugin too.
-
on the plugin manager list try setting one of the two first in order of loading. Might help.
-
At this moment, only captcha is enabled and works fine but i need contact plugin too.
the Contact use also Captcha verification and i think there is an interference with Tha Captcha plugin.
-
Probably yes
-
Hi all
My problem is always here :-\
"Captcha Plugin" works alone ; but if "Contact Plugin" is enabled, red cross appears instead of captcha image.
My questions are following :
In "Contact Plugin", is it possible to remove captcha image ?
Or, is there another "Contact Plugin" without captcha ?
Thank you
-
see here version 1.2 http://forum.coppermine-gallery.net/index.php?topic=37612.0 (http://forum.coppermine-gallery.net/index.php?topic=37612.0)
or here http://forum.coppermine-gallery.net/index.php?topic=37956.0 (http://forum.coppermine-gallery.net/index.php?topic=37956.0)
P.S. Next time search the plugin board ;)
-
@Frantz: maybe we should go for new contact plugin ?
-
please help i can not see confirmation code, and i have GD 2.x (2.0.28 or later is recommended) with Freetype support i just install the captcha plugin.
user test
pedrotest
123456
http://www.huitzuco.org/photo/index.php
http://www.huitzuco.org/photo/captcha.php
http://www.huitzuco.org/photo/plugins/captcha/captcha.php
http://www.huitzuco.org/photo/displayimage.php?album=topn&cat=-314&pos=9
i see confirmation code now.
i just add my group that i did not wanted to see captcha code.
on codebase.php after adding my user group it work fine
$CAPTCHA_DISABLE = array('login' => 'Administrators',
'register' => 'Administrators',
'comment' => 'Administrators',
'report' => 'Administrators',
'ecard' => 'Administrators',
);
$CAPTCHA_TIMEOUT = 300; // How many sec should passed before we remove the code from database
require ('plugins/captcha/include/init.inc.php');
require('plugins/captcha/include/captcha.class.php');
switch ($_SERVER['PHP_SELF']) {
case 'login.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == 'Administrators') {
if (isset($_POST['submitted']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=login.php\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'login.php');
pagefooter();
exit;
}
}
break;
case 'register.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['register']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['register'] == 'Administrators') {
if (isset($_POST['submit']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=register.php\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'register.php');
pagefooter();
exit;
}
}
break;
case 'db_input.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['comment']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['comment'] == 'Administrators') {
if (isset($_POST['msg_body']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=displayimage.php?pos=" . (- $_POST['pid']) . "\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "displayimage.php?pos=" . (- $_POST['pid']));
pagefooter();
exit;
}
}
break;
case 'report_file.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['report']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['report'] == 'Administrators') {
if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "report_file.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
pagefooter();
exit;
}
}
break;
case 'ecard.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['ecard']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['ecard'] == 'Administrators') {
if (count($_POST) > 0 AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, "ecard.php?album={$_GET['album']}&pid={$_GET['pid']}&pos={$_GET['pos']}");
pagefooter();
exit;
[Edited by Sami]
Added code block
-
Great script, many thanks :)
Got it working easilly at http://www.cncworld.org/gallery/
-
not to login on my page http://www.galeria-ts.yoyo.pl/login.php?referer=index.php code does not appear. My English it is not good, apologize.
-
@Frantz: maybe we should go for new contact plugin ?
Yes, you're right. But it seems to hard for me for the moment :-\ .
the problem would be resolved with CPG1.5 :)
-
Do not forget to put captcha.php at the root of your coppermine.
I did that and STILL couldn't get the verification image to load. I had about given up on getting it to work when I noticed where the image was trying to load from ..... my WEBSITE root instead of where it was SUPPOSED to load from .... I changed link in codebase and voila! It worked :D
jsh
-
its copy captcha.php at the root folder still noting http://www.galeria-ts.yoyo.pl/captcha.php
-
Check you have the minimum requirements for this plugin, ie. GD 2.x (2.0.28 or later is recommended) with Freetype support
-
I have GD 2.x
-
how to remove this plugin to normally login
-
in the plugins database table, delete the captcha entry
-
You should uninstall using the plugin manager.
-
You should uninstall using the plugin manager.
Yes, but he can't login so long he can't se the verification image...
-
error repaired after new installation galery thanks for help http://www.galeria-ts.yoyo.pl/captcha.php "this plugin not compatybility in Right clicmenu plugin"
-
Thanks for good plugin !
how we can add the same for Ecards ???
Regards
-
it's enabled by default
post a link please
-
I've installed the captcha plugin and it works great. Thank you for all your work!
I have read all the threads on the captcha and I'm sorry if I missed this question.
Membership requires admin verification and activation so once someones a member I don't want them to have to deal with the captcha at login.
How can I disable the captcha at login?
Thank you
-
These is a very great mod. It had stop all my spam at my gallery. But I have one litle question. I have a black background in my gallery so I have choose black background image for captcha 3. But now I have the Problem that the letters are very dark and so sometimes its not to the the letters. Now my question how can I change the color of the letters. Thx
Best Regards
Crazymodder
-
Thaks for great Captcha plugin. I have just installed v.2 and works great. I also disabled comments for guests, just to be sure...
And I would like to ask you - is there any way to display (somewhere under existing comments) sentence something like "You must be logged in for posting comments" ? I have searched in this support phorum and also in code of gallery itself, but I have not found the way how get this sentence under the comments. Thank you for help...
-
@thomasso: this thread eals with the captcha plugin. Your question is unrelated, so it shouldn't have gone into this thread. I'm pretty sure that this question has been asked and answered already, so why don't you search the board a bit? If you can't find an answer (after a reasonable amount of searching and re-phrasing your search terms), start a thread of your own on the support board.
@Crazymodder: you can change the color scheme, but there is not config section for this, you'll have to review the code and modify it.
-
GauGau: I´m sorry, I will continue trying to find the answer in the board. I have been really searching...
-
And I would like to ask you - is there any way to display (somewhere under existing comments) sentence something like "You must be logged in for posting comments" ? I have searched in this support phorum and also in code of gallery itself, but I have not found the way how get this sentence under the comments. Thank you for help...
Posted to http://forum.coppermine-gallery.net/index.php?topic=48871.0
Any further questions in that thread please.
-
thanks GauGau for your Reply. I have try to chnage the parameters for the color but it don't work. In the captcha.class.php in line 62 - 63 I have made the following changes:
function DrawOwnerText() {
$iBlack = imagecolorallocate($this->oImage, 225, 225, 225);
But the Letters are alway dark I hope you can help me :)
Best Regards
Crazymodder
-
You should be changing this I think:
// select random greyscale colour
$iRandColour = rand(0, 100);
$iTextColour = imagecolorallocate($this->oImage, $iRandColour, $iRandColour, $iRandColour);
Either adjust the range or hardcode your favourite colour.
-
@ CD69 : Read the readme.txt file that comes with package
from Readme.txt
1-You can set which group shouldn't see captcha on each page
open codebase.php
Find captcha_page_start function and $CAPTCHA_DISABLE array , there you can put name of each group for each page that you don't want captcha
- If you want to enable Captcha for all users then you should set the value to empty ('') string
- If you want to disable Captcha for all users then put the name of all group there something like this :
'Administrators,Registred,Guests'
- Bridged gallery should use BBS/integrated app's group name instead of gallery group name
-
@ Nibbler
Thx this works very great. :) :) :)
-
Hi
I have a Problem after installing Whos Online plugin, or any other plugin as a matter of fact.. :-)
it does´nt matter wich plugin i install.
i only want captcha on my comments, and this works great or it did.. not anymore..
i really dont know what the problem could be i have searched the forums through.. but nothing really..
i am running :
CPG 1.4.14
Stramms Modpack for 1.4.14
User Gallery Alphabetic Tabbing v1.2
Remove Crop and Rotate v1.1
Display Fields v1.02
CAPTCHA v3.0
Onlinestats (Who is online) v1.2 (translated to danish)
there are several plug ins that i would like to have installed but then the captcha image does not show..
my site is: onlinegalleriet.dk (http://onlinegalleriet.dk)
test user: test password test
BR
Torben
Arhgg...!! :o
I Found the error.. for some reason the Whos Online (Onlinestats) my danish translation, could´nt co exist with Captcha 3.0, so now i use the original Onlinestats.. (i know that i cannot do this here..) but is there a danish translation of onlinestats..
thanx anyway.. :-)
-
Hi. I have installed the version 3 on my gallery. And it looks like it works, but when i change the language of the page, the image dissapear after a second.
You can check it here:
http://www.grabadosplaza.es/displayimage.php?album=random&cat=0&pos=-20&lang=spanish
If i choose another language it works. It doesnt work on spanish and french.
In registration page it works in every language so the plugin is working.
Thanks.
-
check both spanish.php and french.php and remove any line after php end tag ?> or php start tag <?php
-
Hi, Sami...
After upgrading to 3.0 (CPG 1.4.14; previously 1.4.13 - same condition), I can't seem to get a proper validation. I'm seeing this during registration (persistent "Confirmation code didn't match" messages).
Apache 2.2.6 (OS/2)
PHP 5.2.5 (FastCGI)
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
I see the image clearly enough, but no matter what I type, I can't get a match.
I've checked the db, and the table is there (uninstalled and re-installed, just to be sure). Upon accessing the registration page, I do see the table get populated with data. I'm seeing no errors when I turn on debugging.
Any suggestions?
TIA
-
Post a link to your gallery please
-
Hi.
I believe I meat all requirements.. I have next to latest version and have it set to GD 2.x, but for some reason, the image doesn't appear on the login screen. What do you suggest?
http://no-such-thing.net/fandom
-
I've got 500 Internal error when I try
http://www.no-such-thing.net/fandom/captcha.php
So , first of all check your server log and see if there is an entry about the error.
-
Ok, here's the error reported:
[Sun Jan 6 17:14:09 2008] [error] [client 69.247.184.238] Premature end of script headers: /home/nosuchth/public_html/fandom/captcha.php
-
After reinstalling, the image still doesn't appear, but the internal error message doesn't appear anymore.
-
So I'm trying to login, but I can't. I can't see the CAPTCHA. Can someone help me please?
http://neyopictures.net/login.php
Is their any chance I can disable this mod w/ phpMyAdmin so I can login?
-
@tracey12: You should copy captcha.php to gallery root
@cooly291: Your gallery is offline and I can't check it !
-
Sorry!! >_<
That didn't even occur to me. However, once it's back up, the image appears, just without letters...
-
So I'm trying to login, but I can't. I can't see the CAPTCHA. Can someone help me please?
http://neyopictures.net/login.php
Is their any chance I can disable this mod w/ phpMyAdmin so I can login?
Hello,
I have the same problem, I cant login because I don't see the image text!
Can you help me please?
http://sl55creationweb2.free.fr/cpg148/
-
Check if your server has the plugin's requirements
Manually enable debug mode and let me know
@cooly291: Check if your server support freetype
-
I can't do anything if I can't login on the gallery?
-
@tracey12: You should copy captcha.php to gallery root
@cooly291: Your gallery is offline and I can't check it !
Okay. Thank you soo much!
One more thing, it works on the login page, but I also have a login form on index.php and the rest of my gallery. How do I also include the captcha there and not just on login.php
-
I make two new languages
Czech and Slovak
How it works you can see here http://olympus.digitalne.eu/gallery/ (http://olympus.digitalne.eu)
-
Hi,
I've been asked by non English speaking people to make some installation instruction in Czech language. U can find it on http://dino.saur.cz/view.php?cisloclanku=2008012101 (http://dino.saur.cz/view.php?cisloclanku=2008012101) ;D
Cesky navod na instalaci pluginu zde http://dino.saur.cz/view.php?cisloclanku=2008012101 (http://dino.saur.cz/view.php?cisloclanku=2008012101)
-
ok I'm back and the image verification still loads with a red cross :(
Here are my details:
PHP Version 4.4.8
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
Gallery: http://a-scott.for-fan.org/gallery
I have no other mods/plugins installed
When I load http://a-scott.for-fan.org/gallery/captcha.php it says "There was an error while processing a database query" - I enabled debug mode and it came out with this:
While executing query "INSERT INTO cpg_plugin_captcha (time,ip_addr,code) VALUES (NOW(),'58.175.137.60','ecb73b28ba8209da53c459bce5c60dc4')" on 0
mySQL error: Table 'ascott_copp1.cpg_plugin_captcha' doesn't exist
File: /home/ascott/public_html/gallery/include/functions.inc.php - Line: 249
What does it mean and how do I go about fixing this?? Thanks in advanced :)
-
The error message should be pretty self-explanatory, don't you think. Uninstall the plugin, then re-install (the most recent version).
-
Check if your server has the plugin's requirements
Manually enable debug mode and let me know
@cooly291: Check if your server support freetype
I cant see my confirm image... why this problem??.....
can you help me please.?
sorry 4 my bad english..
My website: http://www.postribe.com/album/displayimage.php?album=lastup&cat=0&pos=2
-
Hello Guys! ;)
First I want to greet you for the lovely plugin. It would have done awesome job, before I got 30 000 inactive spam registrations in just one day, but this is another thing. ::)
I'm writing, because I have problems with it. The verification image doesn't display. I've read all threats relating this mod and still can't find a solution... Here is some info:
Visual Confirmation Mod Version: 3.0
Coppermine Version: 1.4.14 (stable)
Other mods co-existing in my enviornment: Online Stats
GD Information:
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support:
JIS-mapped Japanese Font Support:
My URL: www.pazardjik.com/cpg/ (http://www.pazardjik.com/cpg/)
I've tried reinstalling, it doesn't work. Moving the mod on top of the others doesn't help too. Please help me, I spent 2 hours in reading and testing and still no result... Here is a test
username: coppermine|support
password: 123456
* I disabled IVM, because my users complained a lot, but you can still see my problem here:
http://www.pazardjik.com/cpg/register.php (http://www.pazardjik.com/cpg/register.php)
Hope you can help me soon :)
-
To me is OKE.....
i change the captcha.class.php ....
i have upload this to the captcha/include... and now it working perfect...
http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=36319.0;attach=5443
Thank you
-
Well it's not working for me... ::)
-
Well it's not working for me... ::)
well well in begin work it to me but now NOT work it:s:s why this??
-
You have a BOM somewhere. This is caused by editing your files in unicode with an editor that doesn't support it properly. It doesn't seem to be in your theme or lang file, so you must have modified core files somewhere. You need to update your gallery anyway, which should solve the problem (until you edit files again).
-
I updated to version 1.4.15 today, all core files changed except the one mentioned in the update guide. Still no image is displayed, please help me solve this... With my 30 000 bot registrations, I'm maybe the biggest victim of spammers. I badly need this mod. :'(
-
Try disabling the other plugins and see if that helps.
-
I'll try and write back, thank you for the fast answer! ;D
-
You have a BOM somewhere. This is caused by editing your files in unicode with an editor that doesn't support it properly. It doesn't seem to be in your theme or lang file, so you must have modified core files somewhere. You need to update your gallery anyway, which should solve the problem (until you edit files again).
I have deleted the files first, then I just took them back to the directory plugins uploaded ..
Now I get this error message ...
Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /customers/postribe.com/postribe.com/httpd.www/album/plugins/captcha/include/init.inc.php on line 26
Fatal error: require() [function.require]: Failed opening required 'plugins/captcha/lang/english.php' (include_path='.:') in /customers/postribe.com/postribe.com/httpd.www/album/plugins/captcha/include/init.inc.php on line 26
What can I do ...??
Thnx
-
Upload the files that are missing.
-
Upload the files that are missing.
I would not know what file is missing ...??
Init.inc.php the file already exists in the folder ..
I do not know which file I should add ..
Can you help me ..?
-
Read the error message.
plugins/captcha/lang/english.php is missing.
-
Read the error message.
plugins/captcha/lang/english.php is missing.
English.php are already in the directory plugins / captcha / lang / ... I do not know what I should do?
I have removed and re-upload it is not!
-
This mod isn't working for me too any more. Before I had Abbas Ali manual plugin (I had to change php files and themes manually) but today it stopped working because of unknown reason. So I upgraded gallery to 4.15 and added captcha 3.0 plugin but the problem is the same - confirmation image don't appear.
Notices:
/include/logger.inc.php
Warning line 155: unlink(logs/global.log.php) [function.unlink]: Permission denied
Warning line 51: fopen(logs/global.log.php) [function.fopen]: failed to open stream: Permission denied
Warning line 53: fwrite(): supplied argument is not a valid stream resource
Warning line 54: fclose(): supplied argument is not a valid stream resource
/include/themes.inc.php
Notice line 2240: Undefined index: uid
Notice line 2316: Undefined variable: ecard_tgt
Notice line 2317: Undefined variable: ecard_title
Notice line 2324: Undefined variable: report_tgt
Notice line 1943: Undefined index: uid
/displayimage.php
Notice line 319: Undefined variable: meta_keywords
What is wrong?
E: confirmation image address is shown as mywebsite.com/captcha.php
-
Read the error message.
plugins/captcha/lang/english.php is missing.
I just try different ...
I have downloaded this version and now manage it ... Now we have the code to see ...
Captcha_2_0.zip (106.58 KB - downloaded 228 times.)
It is a bit strange but I can also work with this version?
-
Those of you who owant help should post a link to their galleries together with their request for help. ::)
-
Hello, after diabling the other mods, still no good. Where could be the problem? ???
-
Last thing to try is to mod the plugin. Edit captcha.php, look for
define("IN_COPPERMINE", true);
require('include/init.inc.php');
After that, add
ob_end_clean();
-
Great news people, after removing, all used mods captcha works at last :) There was a conflict with Online stats mod by Frantz. It's really great, but I want to have both - the online stats mod and captcha. How to modify them in order to work both in the same time?
p.s: I know that Nibbler told me to disable and see the result some days ago, but I did that at 3:00 AM and didn't see the result in the right way. Please just tell me how to have both mods and I'll stop bothering :)
-
Has somebody a workout te make this plugin work with the Photo-Shop plugin?
That last plugin seems te work with a separate registration-form which I want to disable until the right confirmation code is given.
-
It's seems that it has conflict with most of the plugins. Captcha is great mod, and I'm sure that the crew will think of a way to remove the interference of plugins... ::)
-
Image isn't showing for Captcha. Any suggestions?
www.thedigitalangel.co.uk
-
Enable debug mode.
-
Sorry, done.
The OK button still shows as well.
-
The captcha table does not exist. Make sure your mysql user has permission to create new tables and re-install the plugin. If that doesnt work you might need to create the table manually.
-
Hmmm, the user has all privileges available on the database.
How would I go about creating it manually?
-
CREATE TABLE `cpg1411_plugin_captcha` (
`time` datetime NOT NULL default '0000-00-00 00:00:00',
`ip_addr` tinytext NOT NULL,
`code` char(32) NOT NULL default ''
) TYPE=MyISAM COMMENT='Used to store captcha code and user ip';
-
Where does the code go?
-
Into your phpmyadmin window.
-
Thanks. All works now.
Shall note down that code in case I need it at a later date.
-
Thanks for this great plugin, works really nice.
I just thought that - as there's a polish language file for the entire gallery - it would be nice to attach one to this captcha plugin also.
So here it is :)
-
Hi!
I'm using Coppermine 1.4.16 and just installed your captcha plugin. My gallery is in German but unfortunately the plugin doesn't use the German language file. :( Of course I could rename the English language file to german.php, but that would not be the best solution in my opinion. :)
Thanks in advance!
-
hmm i updated to cpg 1.4.16 a few days ago and i've been using the script for over a week now but since yesterday i started having trouble with it. I can't see the confirmation image no more (it worked fine yesterday morning). my server holder says that they haven't changed anything since then. The last update they did was about a week ago when i first installed captha and then it worked perfectly (update to php 5, apache 2.2 and mysql 5.0). I tryed reinstalling it by manually removing the tables, reuploading the files and reinstalled it from the plugin manager but the same problem occurs
I'm trying to get to you as much information as i know... so i hope i'm not overdoing it :D
When i turned on the notices in debug mode i noticed something weard though... This is shown both, on the login page and on the comments page.
/include/plugin_api.inc.php
Warning line 71: mysql_fetch_assoc(): 12 is not a valid MySQL result resource
Warning line 104: mysql_free_result(): 12 is not a valid MySQL result resource
I just checked my phpinfo aswell... and GD (2.0.34) with freetype (2.2.1) is enabled
Problem solved by uninstalling update history plugin
EDIT: adding you estonian translation file
-
unfortunately the plugin doesn't use the German language file.
from the very first post
language:
========
- Italian Thanks to lontano
- Dutch Thanks to Hein
- French Thanks to spikeweb
- German Thanks to m@rk
- Brazilian portuguese Thanks to Bonato
- Spanish thanks to pepemosca
- Turkish thanks to Benim
if it don't work, look what's the default lang set up in the config and in your browser
-
Thanks, I figured it out already. My Coppermine language was set to "german_sie" and not to "german" so I just copied the captcha plugin language file "german.php" to "german_sie.php" and now it works! :)
-
:D
Like before, in another post, just wanted to say : THANK YOU.
Sam
-
This plug in looks promising. It installed easily and displays the CAPTCHA, but whatever I do, I get "Confirmation code didn't match".
On visual inspection, the data in the database seems to match what is being compared to it, but the sql doesn't return a match
What to do next?
Site: http://www.jesus.org.uk/gallery
Test user: CPGtest
Password: ******
CAPTCHA only required for commenting. Only registered users can comment.
[Edit: Sorted by Sami, many thanks. Captcha timeout was insufficient. User account and Password removed.]
-
OK we also just installed this on our 1.1.14 CPG install and none of it works.. no image, post/register button still shows, AND the post comments is now broken..... no other plugins installed.
ANY ideas?
http://gallery.ppnstudio.com/ is the page
HELP!
-
@ jesusarmy and PPNSteve
both of you guys , please enable debug mode and let us know
-
@ jesusarmy and PPNSteve
both of you guys , please enable debug mode and let us know
Done..
hopefully you can see the problem.. i couldn't.... and had to uninstall this so people could join/post comments etc..
thanks.
register page
USER:
------------------
Array
(
[ID] => 9551c6e6c6ae614xxxxxxxxxx4676e7
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 1512
[can_rate_pictures] => 1
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 1
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 3
[num_file_upload] => 2
[num_URI_upload] => 1
[custom_user_upload] => 0
[disk_max] => 1512
[disk_min] => 1512
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg11d_filetypes; (0s)
[1] => select * from cpg11d_plugins order by priority asc; (0s)
[2] => delete from `ppnstudi_gallery`.cpg11d_sessions where time<1204904018 and remember=0; (0.001s)
[3] => delete from `ppnstudi_gallery`.cpg11d_sessions where time<1203698018; (0.001s)
[4] => select user_id from `ppnstudi_gallery`.cpg11d_sessions where session_id=md5("0688f55c6c1b41c3982831502axxxxxxxxxxxxxxxxee8d8ccb565665d2cd"); (0.001s)
[5] => select user_id as id, user_password as password from `ppnstudi_gallery`.cpg11d_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 3 (0s)
[8] => update `ppnstudi_gallery`.cpg11d_sessions set time='1204907618' where session_id=md5('0688f55c6c1b41c3982831502axxxxxxxxxxxxxxxxe8d8ccb565665d2cd'); (0.001s)
[9] => DELETE FROM cpg11d_banned WHERE expiry < '2008-03-07 16:33:39' (0.011s)
[10] => SELECT * FROM cpg11d_banned WHERE (ip_addr='24.xxx.xxx.170' OR ip_addr='24.xxx.xxx.170' OR user_id=0) AND brute_force=0 (0s)
[11] => SELECT aid FROM cpg11d_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[agree] => I agree
)
==========================
Page generated in 0.193 seconds - 12 queries in 0.015 seconds - Album set : AND aid NOT IN (34,38,150,257,284,327,372,745,760,824,750,673,675,711,741,783,784,786,795,817,830) ; Meta set: ;
on a picture page, where there SHOULD be comments field, there is none (it breaks the comments)
(see screenshot as well)
USER:
------------------
Array
(
[ID] => 9551c6e6c6ae614f3f986c888d4676e7
[am] => 1
[lang] => english
[liv] => Array
(
[0] => 25994
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 1512
[can_rate_pictures] => 1
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 1
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 3
[num_file_upload] => 2
[num_URI_upload] => 1
[custom_user_upload] => 0
[disk_max] => 1512
[disk_min] => 1512
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg11d_filetypes; (0s)
[1] => select * from cpg11d_plugins order by priority asc; (0s)
[2] => delete from `ppnstudi_gallery`.cpg11d_sessions where time<1204904415 and remember=0; (0.001s)
[3] => delete from `ppnstudi_gallery`.cpg11d_sessions where time<1203698415; (0s)
[4] => select user_id from `ppnstudi_gallery`.cpg11d_sessions where session_id=md5("0688f55c6c1b41c3982831502a1bcabxxxxxxxxxxxxxxe8d8ccb565665d2cd"); (0s)
[5] => select user_id as id, user_password as password from `ppnstudi_gallery`.cpg11d_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg11d_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM cpg11d_usergroups WHERE group_id= 3 (0s)
[8] => update `ppnstudi_gallery`.cpg11d_sessions set time='1204908015' where session_id=md5('0688f55c6c1b41c3982831502a1bcabxxxxxxxxxxxxxxxxxxxxxccb565665d2cd'); (0s)
[9] => DELETE FROM cpg11d_banned WHERE expiry < '2008-03-07 16:40:15' (0s)
[10] => SELECT * FROM cpg11d_banned WHERE (ip_addr='24.xxx.xxx.170' OR ip_addr='24.xxx.xxx.170' OR user_id=0) AND brute_force=0 (0s)
[11] => SELECT aid FROM cpg11d_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
[12] => SELECT aid FROM cpg11d_albums (0.001s)
[13] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) (0s)
[14] => SELECT * FROM cpg11d_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) ORDER BY pid DESC LIMIT 0 ,1 (0.024s)
[15] => SELECT title, comments, votes, category, aid FROM cpg11d_albums WHERE aid='4' LIMIT 1 (0s)
[16] => UPDATE cpg11d_pictures SET hits=hits+1, lasthit_ip='24.xxx.xxx.170', mtime=CURRENT_TIMESTAMP WHERE pid='25994' (0.002s)
[17] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM cpg11d_comments WHERE pid='25994' ORDER BY msg_id ASC (0.001s)
[18] => SELECT COUNT(*) from cpg11d_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) (0.04s)
[19] => SELECT * FROM cpg11d_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) ORDER BY pid DESC LIMIT 0 ,10 (0.022s)
)
==========================
GET :
------------------
Array
(
[album] => lastup
[cat] => 0
[pos] => 0
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.22 seconds - 20 queries in 0.091 seconds - Album set : AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) ; Meta set: AND aid IN (1,2,3,4,9,10,14,15,16,17,19,21,22,23,24,25,26,27,28,29,30,31,32,33,35,36,37,39,40,41,42,43,44,49,53,58,59,61,62,64,65,66,67,70,72,77,80,93,100,105,113,117,118,119,121,122,123,124,125,126,127,128,129,130,131,132,136,137,138,139,140,141,142,143,144,146,147,148,151,152,156,159,160,161,162,163,165,168,169,170,171,172,173,174,175,176,177,178,179,181,182,183,184,185,186,187,188,189,190,192,193,194,196,197,198,203,204,205,206,207,208,211,212,213,214,215,216,222,223,224,225,226,227,229,230,231,232,233,234,239,241,242,243,244,245,246,250,251,252,253,255,258,262,264,265,266,267,268,269,270,271,274,276,279,280,282,285,286,287,288,289,290,291,292,293,295,296,297,298,300,301,308,309,310,314,315,319,320,321,323,324,326,330,331,332,333,334,339,341,343,344,346,347,349,352,353,354,356,357,358,359,360,361,362,363,364,365,366,369,370,371,373,381,383,384,386,387,389,390,391,399,400,415,417,418,419,421,424,427,429,430,431,432,433,434,436,439,440,441,442,443,444,445,446,449,450,451,452,453,454,455,458,459,460,461,463,464,466,467,468,469,470,473,475,478,479,480,481,483,485,487,490,491,494,495,496,497,498,499,500,502,506,507,516,518,519,520,521,523,524,527,529,530,533,534,535,536,538,539,541,543,547,548,549,551,552,553,555,558,563,567,568,573,575,577,581,584,585,586,588,589,592,593,594,596,597,599,602,606,609,613,617,619,620,621,634,635,637,638,644,647,648,649,650,651,652,653,654,655,657,660,661,664,665,666,668,670,671,672,674,676,677,678,679,681,682,686,689,691,693,694,695,696,697,698,699,703,704,705,706,710,713,715,716,717,718,719,720,721,722,723,724,725,727,728,729,730,731,736,737,738,740,742,743,746,749,752,753,754,756,757,758,759,761,762,763,764,765,767,768,769,770,771,777,778,779,781,782,787,788,789,790,791,792,793,796,797,798,799,803,804,805,807,808,809,810,811,812,813,814,818,819,822,825,826,827,828,829,831,832,833,834,835,836,837,838,839,840,841,842,843,844,845,846,847,848,849,850,851,852,853) ;
Notices
/include/themes.inc.php
Notice line 2240: Undefined index: uid
Notice line 2316: Undefined variable: ecard_tgt
Notice line 2317: Undefined variable: ecard_title
Notice line 2324: Undefined variable: report_tgt
Notice line 1943: Undefined index: uid
login page (see screenshot as well)
-
I don't see anything on your posted debug output BTW it would be better to enable plugin just one more time and let me know to check it ;)
-
OK the plugin is re-installed and the debug is back on... take a look... try to register / (log out) then log in... comment on any image..
-
if you try this http://gallery.ppnstudio.com/captcha.php you'll see a blank html page (I also check the headers and it was text/html ) and that means you do not have on of requirement for this plugin :
- GD 2.0.28 or later is recommended
- Freetype support
-
if you try this http://gallery.ppnstudio.com/captcha.php you'll see a blank html page (I also check the headers and it was text/html ) and that means you do not have on of requirement for this plugin :
- GD 2.0.28 or later is recommended
- Freetype support
Umm... wrong... the gallery USES GD for the thumbnails and so forth... it works fine... (also other of my sites on this server [I admin this server] have no issues with captcha image generation) so perhaps it's something else.
when i go to the captcha.php page, I see: Fatal error: Call to undefined function imageftbbox() in /home/ppnstudi/public_html/gallery/plugins/captcha/include/captcha.class.php on line 119
edit: also let me double check the php build.. make sure ttf / freetype is indeed supported.
-
Well I don't see the Fatal error , I just get a blank page but if you do then
check php.net
http://us3.php.net/manual/en/function.imageftbbox.php
you'll find two notes about this function
- This function requires GD 2.0.1 or later (2.0.28 or later is recommended).
- This function is only available if PHP is compiled with freetype support (--with-freetype-dir=DIR)
maybe you need to re-build php with --with-freetype-dir=DIR option
-
Well I don't see the Fatal error , I just get a blank page but if you do then
check php.net
http://us3.php.net/manual/en/function.imageftbbox.php
you'll find two notes about this function
- This function requires GD 2.0.1 or later (2.0.28 or later is recommended).
- This function is only available if PHP is compiled with freetype support (--with-freetype-dir=DIR)
maybe you need to re-build php with --with-freetype-dir=DIR option
I did get the image to show up in the log-in page, but its still not showing for register page..
Not sure whats wrong there.. not even anything related noticed in the view source
-
So what was the problem ? did you re-build php or what ?
for your registration page issue check this:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
So what was the problem ? did you re-build php or what ?
for your registration page issue check this:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
Ok apparently that above link had a quick fix.. shows (and works) on register page as well as login and comments.. now just one thing.. its breaking the style.. any way to fix that so it all fits in correctly and looks good??
thanks for your help with this.. :)
-
Edit codebase.php and change theses lines (around lines 85~88) the way you want
if (preg_match($exper, $html)) {
$newcpch = '<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"><img src="captcha.php" align="middle"></tr><tr><td colspan="2" align="center" class="tablef">
<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />
</td></tr>';
-
thanks.. I kinda figured it'd be something like that.. It's all fixed now..
thanks again for the work on the plugin and for all the help getting it to run on my gallery
cookie +1
-
You are welcome
-
@ jesusarmy and PPNSteve
both of you guys , please enable debug mode and let us know
Debug mode now enabled for all. Any help appreciated.
-
Everything seems normal to me , let's check mysql select
edit plugins/captcha/codebase.php
and add this line
var_dump($result);
to line #267
something like this
.
.
.
if ($result['ccount']) {
var_dump($result);
return true;
}
.
.
.
this way we could find if mysql select works okey or not
- after adding this line let me know
-
@Sami:
Line added as requested
-
mysql select return false !
I need to look into database to solve this
PM me a phpmyadmin account or something similar if it's ok with you (+ an FTP account and gallery admin account would be much better)
-
Hello,
I've got a problem concerning the Captcha Plug-In: It is not visible in the register.php, so it seems that the process can be finished without visual confirmation. I have set the CAPTCHA DISABLE at "register" to (' ') in codebase.php, so it should be visible to every group.
I have tested to register, and the thing is that I do not see any CAPTCHA-Field in the register-page, but when I go on and finish the process I receive a notification that the anti-spam-code is not correct - but I did not have the chance to enter it anywhere and I do not see the the code! I also have tested another skin (now I use skyball), but with the same effect.
Any idea?
Thanx a lot!
Leon
-
Hi All
I found an article in WebUser (UK Mag) about spammers managing to bypass CAPTCHA, I thought the article may be of interest to those using captcha on their galleries:
http://www.websense.com/securitylabs/blog/blog.php?BlogID=171 (Spammers bypass Windows Live Messanger - Info on how they do this as well)
http://www.websense.com/securitylabs/blog/blog.php?BlogID=174 (As above but with G-mail)
Will this have an effect on this CAPTHCA plug-in?
Cheers - James
-
We are aware of the captcha problems that happened at Gmail among others. The captcha plugin is stil a useful tool for delaying spam comments however.
-
@Leon79
if you enable captcha on registration page but it does not show up , check this link:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
@mentalist3d
I'm not going to say this captcha is unbreakable but I would say it's hard enough for regular spammers
1- It's not using session
2- Using 2 different font
3- Random character positioning
4- Random character angle
5- Random background lins
2,3,4,5 makes this captcha harder for OCR program to break
-
Hi!
I've installed this plugin in my coppermine component to avoid spammers. I have installed GD2 and freetype. I've copied the captcha plugin to the plugin folder, then I've go to pluginmgr.php and have installed it.
I've copied the captcha.php file to the root of my site.
And I have a "broken image" icon.
I've attached a screenshot so you can see what's happening to me.
The Gallery URL is:
http://www.pasionensevilla.tv/comunes/concursos/imagenes2008/login.php
Please, I need help to solve this because the day after tomorrow I'll open the gallery again to people and I cannot handle more than 2000 spam comments each day.
Thanks and greetings from Spain
Pady
EDIT: When I'm logged in with my admin account and I get to "captcha.php" I can see the captcha correctly. But when I logout I cannot see anything (even cannot login)...until I uninstall it by deleting the captcha plugin table and the field "captcha" in the plugin table with phpMyAdmin. Hope this helps
-
Your gallery is offline. The captcha does not work when the gallery is offline.
-
Yes...now it works. (Thank You Very Much for this).
But now I have another problem:
When I go to:
http://www.pasionensevilla.tv/comunes/concursos/imagenes2008/register.php
To register a new user, I cannot see any captcha imagen; But when I fill the form and send it, the system tells me that "Código de confirmación incorrecto" (in english: "Wrong confirmation code").
Any help with this?
-
Try http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
Hi Nibbler,
I can't find those lines in my register.php.
I'm using 1.4.15 stable in spanish.
When I try to search the variable "$exper" in the code I get no results.
May I find it in other place?
Thanks!
-
The code to change is in the plugin's codebase.php, not register.php.
-
It worked for me!!!!
Thanks!!! Great, great support! ;)
-
Interesting "quirk" I just found while installing this plug in.
I first made sure I met all the reqs and installed the plug in according to the installation instructions.
At the beginning I had the issue of it not showing up on the registration page but after searching the thread I found the work around.
At that point the plug in was displaying the infamous broken image.. so I searched on that one and saw that there were some conflicts with other plug ins. The only other one I had installed was Wirewolf's contact plug in (I have the older non captcha one installed). I went to remove the plug in to test if that fixed it and found that somehow or another I was logged out. So now I am stuck.. but looking again I see where it is explained how to manually remove the plug in so you can log in once again. Follow the instructions and am able to log in fine. Go back into the plug ins manager and uninstall the contact us plug in and reinstall the captcha plug in.
Captcha plug in now is working flawlessly... but unfortunately I lost the functionality of the contact us plug in :-[
Now here is the odd part... When I had the contact us plug in installed I had gone ahead and created a custom link on the page template to jump to the contact form. This, of course, is still showing since the plug in manager cannot uninstall what it doesn't know about. Before going into the template and removing the code, I click the link to see what kind of error it throws and it takes me to the contact form... hmmmmm.. so I put in a test message, send it off, and it works without a hitch! So now I can have both plug ins running (although one is marked as not being installed).. the only thing I lose is the automatic insertion of the "Contact Us" button in the menu.
Anyone else run into this?
- Michael
-
Installed this plugin for cause of chinese bots, and now I can't login!
On login page In FF I can't see any captcha image, in IE bloken link image. I modified codebase.php as indicated by Sami here: http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008 , but it's the same.
How can I solve this? Please help.
www.artefatta.biz
-
@MELeBlanc
This is a known issue (you can't have both plugin at the same time yet!) , contact us plugin needs some modification , maybe in near future .... ;)
@artefatta
You missed 3rd installation step
3.Copy captcha.php to gallery root
-
2Sami:
THANKS A LOT!!! ::)
-
@MELeBlanc
This is a known issue (you can't have both plugin at the same time yet!) , contact us plugin needs some modification , maybe in near future .... ;)
I understand that... what I was trying to point out in my post was that eventhough you disable the "contact us" plugin, it still works! So it is possible (with a little tweak) to have both running at the same time! ;D
-
I have followed all the directions to load the captcha plugin and it is working beautifully on all my pages except for the register page.
I can tell it not to use captcha for this page and that is fine. However, when I specify that all the users (Administrators,Registered,Guests) SHOULD see captcha (by removing them from ' '), it does not work properly. There is no image that shows up for me to look at in order to type in the letters, so naturally no one can register to use the gallery, which is the point. However, it is not keeping the malicious bots out of my inbox either.
any ideas?
the link is http://allianceofillustrators.org/portfolios/register.php
thanks -cherish
-
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
Hello,
the captcha version 3.0 would be hacked from somebody.
Because since last night i got more new registration from spamming/advertising peoples.
Is there one update out there?
Many thanks for all helping answers!
-
- Link to your gallery please
- How many user did they register per hour ?
if it was a robot registration then it should be more than 1000
keep in mind that captcha only prevent robots to register not the humans
-
Hello,
the captcha version 3.0 would be hacked from somebody.
Because since last night i got more new registration from spamming/advertising peoples.
Is there one update out there?
Many thanks for all helping answers!
same problem....
I have had 10 new spam registrations in the past 3 days.
http://www. y u s k o n e t ..com (no spaces)
-
I too have noticed that I've had an increase in spam accounts being created on my gallery.... I added another font to the array in the captcha.php file and it appears (though I cannot be 100% positive) that this may have deterred them a bit. Only issue is that you have to be really careful which fonts you add since some of them are completely illegible when displayed through captcha.
- M
-
There are rumours that spammers managed to break captcha using OCR, so you might have a point here to use another font. After all, this is a war between website owners and spammers - as much as we're striving to develop anti-spam mechanisms, they are trying to circumvent those methods.
Let me quote part of the discussion on the dev-only board for cpg1.5.x that is meant to illustrate that the dev team is aware of captcha not being the final method to get rid of spam permanently:I just finished reading this : http://blogs.iss.net/archive/CAPTCHA.html (http://blogs.iss.net/archive/CAPTCHA.html).
Since 1.5 offers captcha as a option under the comments settings in config i thought of coppermine when reading that article.
[...]
Should we be looking for a other way for users to safeguard comment posting or is it safe to continue using captcha ?
It was only a question of time untill spammers where able to defeat captcha imo - I have anticipated that they would be able to compromise captchas sooner or later. The key in the article you refered to is this sentence:Personally, I dont think its really worth strengthening the algorithms used to create more complex CAPTCHAs instead, just deploy them as a small speed-bump to stop the script-kiddies and their unsophisticated automated attack tools. CAPACHAs arent the right tool for stopping todays commercially minded attackers.
This being said, consider captchas not as method that will stop spamming once and for all - it will just slow down the number of spam attacks by keeping the script kidies away (at least for a while).
That's why I have introduced comment moderation as well into cpg1.5.x. We might even consider adding the akismet mod into the core. Not because those methods will deliver the final blow to spammers - I agree to the author of the article that this fight has already been lost, but because it will allow our end users to achieve less spam comments.
Bottom line: captcha is not dead (yet), but it's certainly a valid idea to consider other technologies of spam prevention than captcha.
[...]I have added some explanation to the comments section of the docs (http://coppermine.svn.sourceforge.net/viewvc/*checkout*/coppermine/trunk/cpg1.5.x/docs/comments.htm?revision=4308#comments_options_spam) to clarify our concerns
-
Hi all,
After upgrading from version 1.4.14 to 1.4.16, the captcha plugin isn't working correctly.
When I try to register, nothing is shown, but I get an error that the code isn't correct.
When the plugin is configured to pop up at the login page, it works correctly.
Config hasn't changed, only upgraded coppermine.
What am I doing wrong?
Thnx.
-
If you can't see captcha image only in register page then check this:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
Thank you Sami.
Everything works fine now.
-
Is there an update for Captcha? I see elsewhere it has audio challenges, etc. I know My gredit union uses pictures. Maybe we could do a rotating image (of say a boat for example) then select one of 4 options ( boat, car, plane, mouse).
-
Or with the MS variant http://research.microsoft.com/asirra/ ?
Is there a OpenSource Project with the same idea?
-
I don't believe in adding more technological barriers - see my reply http://forum.coppermine-gallery.net/index.php/topic,36319.msg248913.html#msg248913
-
It's strange I can't see any issue here !
preg_match can't see the expression (Line #82 $exper) on your register.php output , but when I check I can see it
BTW try this :
change this (Line #82)
$exper = '(<td colspan="2" align="center" class="tablef">.*
.*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
.*</td>)';
to this
$exper = '(<td.*>.*\n.*<input type="submit" name="submit".*\n.*</td>)';
Update: changed new exper
I can't find the above lines on my register.php and I'm using the latest coppermine. My problem is that I can't get the captcha to work. No image shows on the registration page, only a text input box but no image so that visitors can see what to type in the text box. I had to uninstal it before posting this so that people can be able to register while I look for help. My gallery is at http://lurrenzinc.com/photos *NSFW*
-
you did place captcha.php at the root of your site ?
-
I can't find the above lines on my register.php
The code to change is in the plugin's codebase.php, not register.php.
-
I want to have the coding only in my comments.
I installed captcha but it only does it at the registration.php and login.php
I don't want it there, I only want it at my comments!!!
Where is it written how I could do that?
Please help me!!!
-
Read the readme file.
-
Yes, it helped, thank you! :)
-
I juggled around Captcha 1.8, 1.9, 2, and 3 earlier in the evening yesterday and encountered a specific error in each... I've since uninstalled and deleted each of the folders and gotten rid of the `cpg1410_plugin_captcha` table by dropping it.
I tried reinstalling the Captcha 3.0 today and it gives me this:
Critical Error: There was an error while processing a database query.
I go to PHPMyAdmin and I check the table and it gives me the warning that it has no index...
Btw while I'm here, I deleted the case's for everything but displayimage but when I try to login (it obviously wont show the captcha anymore) but it DOES give me the invalid captcha error message and throws me back to the login page.
-
It would be better to post a link to your gallery that you have issue with and also a test account (since you have a login issue)
BTW after searching and looking on your other posts I find this site
http://www.coppermine.hqubed.com
But I don't see any captcha error message by trying login
Please be more specific about your issue
-
I really can't be- I have no CAPTCHA anymore simply because when I try to install it, it gives me the critical error... It makes the database table that it's supposed to, but it's empty, could that be the issue?
Other plugins (ie Easy RSS) work fine-but obviously have nothing to do with the DB, and I can add images without any issue either.
-
can't you give us a test account ?
-
User: Test
Pass: Tester
the login issue dosent happen anymore because of the plugin simply not installing anymore, but it's all yours.
Thank you in advance for your time, you've helped me before and I very much appreciate it-- mine was one of the many that got hit with the PHP virus string and I could tell that the users were exhausting the admins... thank you :)
-
I'm confuse ???
At first you said you got error on login even when plugin was unistall and now you said error gone !
So what's the point?
If you need this plugin, install it and then if you have any problem post it here
-
That was before-
I installed the plugin, 3.0; and it worked at first but then it gave me the you can't login deal to which i renamed the plugin folder but ended up deleting it before clicking uninstall... so I uploaded it back and then it wasn't installed anyway so I tried to reinstall but it gives me that critial error now.
Should I just go with 2.0? haha.
-
Enable debug and try to install and post the actual error you've got
-
Alright - I did what you said and was able to fix THAT problem by myself, as it turns out, the CAPTCHA plugin left a string in the _plugins table that wasn't deleted until I did it manually...
Now it is installed and just wont show the captcha itself besides a missing image box.. I hope the fix isnt as obvious as it probably is... all files are uploaded btw, Test account is still valid.
-
Copy captcha.php to gallery root
-
Haha of course, forgot that... well, next issue:
Script called without the required parameter(s).
File: /home/.klara/mechmykl/coppermine.hqubed.com/db_input.php - Line: 58
after I uploaded captcha.php...
USER:
------------------
Array
(
[ID] => 84a1dc912e05be6e3f93df1649623eb1
[am] => 1
[lang] => english
[liv] => Array
(
[0] => 9534
[1] => 8352
[2] => 6762
[3] => 6764
[4] => 8378
)
[search] => Array
(
[search] => [Panorama]
[album] => search
[title] => on
[newer_than] =>
[caption] => on
[older_than] =>
[keywords] => on
[type] => AND
[params] => Array
(
[title] => on
[caption] => on
[keywords] => on
)
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => MechMykl
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 1
[ufc_min] => 1
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 0
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 1
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg1410_filetypes; (0.002s)
[1] => select * from cpg1410_plugins order by priority asc; (0.002s)
[2] => delete from `hqubed`.cpg1410_sessions where time<1208558417 and remember=0; (0.002s)
[3] => delete from `hqubed`.cpg1410_sessions where time<1207352417; (0.002s)
[4] => select user_id from `hqubed`.cpg1410_sessions where session_id = 'b2ad7cb4ab5117f4fdb79fb3cef3efbf' (0.001s)
[5] => select user_id as id, user_password as password from `hqubed`.cpg1410_users where user_id=1 (0.001s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `hqubed`.cpg1410_users AS u INNER JOIN `hqubed`.cpg1410_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
[7] => SELECT user_group_list FROM `hqubed`.cpg1410_users AS u WHERE user_id='1' and user_group_list <> ''; (0.002s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg1410_usergroups WHERE group_id in (1) (0.002s)
[9] => SELECT group_name FROM cpg1410_usergroups WHERE group_id= 1 (0.002s)
[10] => update `hqubed`.cpg1410_sessions set time='1208562017' where session_id = 'b2ad7cb4ab5117f4fdb79fb3cef3efbf' (0.002s)
[11] => SELECT user_favpics FROM cpg1410_favpics WHERE user_id = 1 (0.002s)
[12] => DELETE FROM cpg1410_banned WHERE expiry < '2008-04-18 18:40:17' (0.002s)
[13] => SELECT * FROM cpg1410_banned WHERE (ip_addr='72.189.172.138' OR ip_addr='72.189.172.138' OR user_id=1) AND brute_force=0 (0.002s)
[14] => SELECT COUNT(*) FROM cpg1410_pictures WHERE approved = 'NO' (0.004s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.3 - OK
------------------
mySQL version: 5.0.24a-standard-log
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.2
Linked Version 1.2.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/local/php5/lib/php:/usr/local/lib/php | .:/usr/local/php5/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 7M | 7M
post_max_size | 8M | 8M
==========================
Page generated in 0.158 seconds - 15 queries in 0.03 seconds - Album set : ; Meta set: ;
-
Login works ok for me , captcha is working !
where did you get that error ?
Please don't post debug output unless requested
-
Yessir:
That error occurs maybe 1 in 10 times I login... I can click the banner and go to the homepage logged in, but it happens.
I removed the "case" for showing the CAPTCHA during registering, and at the bottom, and added "anonymous" to the disable for login, but i still get the confirmation is wrong link now that it dosent show the captcha.
-
You shouldn't remove case !!!
if you want to disable/enable cpatcha for particular page just edit $CAPTCHA_DISABLE array under captcha_page_start function
please read readme.txt file that comes with plugin package for more info
- Use Guests instead of "anonymous"
-
When I read the readme that part didn't make sense; I read it differently than you meant.
Thanks very much for your time, problems are all solved, and I'll get back to you if I get that occasional db_input error.
-
I'm refusing to upgrade my coppermine install because I simply don't want to mess with having to get captcha working again, as it works fine today. I imagine myself spending hours diffing files and combing through these threads to get it working again.
Will captcha become a standard feature anytime soon? What is coppermine's roadmap? If I stop using captcha what is the next best way to control comment spam other than turning off comments altogether?
-
I read that CAPTCHA is standard in Coppermine 1.5, but I warn against not upgrading because you run the risk of getting that .php virus everybody's been getting lately (and that is NO fun.)
I really made things harder on myself that it needed to be, my over-complicating shouldn't keep you from updating.
-
@bsvee:
Updating Coppermine wont touch your captcha plugin installation and it will works as it was before .
Just make sure to do not overwrite plugins directory on updating process.
-
I have problem with this plugin, I cant to install it.
I upload it manually in plugins/captcha folder, captcha.php upload in root and after that I go to my site pluginmgr.php page, but on that page I dont see captcha to I install it. Please help me and tell me what I to do, how to install this great plugin?
-
Post a link to your gallery please
-
www.footballwallpapers.us is my site
Tell me to I give you access to my admin account.
-
I'm refusing to upgrade my coppermine install because I simply don't want to mess with having to get captcha working again, as it works fine today. I imagine myself spending hours diffing files and combing through these threads to get it working again.
BIG mistake! You can either mess with the update now or mess with having to cleanse every single php and html file on your website EVERYWHERE. I just came from there, and I've been working on it all night and most of the morning (had to take the day off from work to do it).
At the very least make a complete backup of your website including databases. You WILL need it WHEN you get hit.
-
Okay, I upgraded my gallery so I'm safe now, but captcha doesn't work. I believe that I configured it in 2006 when it wasn't technically a plug-in but more of a hack. Is there anything in my theme from 2006 that may need updating to support the plug-in? This is just what I feared with the upgrade.
--edit
I should add that I had files in the gallery root and include directory with the old plug-in. I downloaded the plug-in from page one of this thread and followed those install instructions.
--edit
Never mind, I'm in business! ::)
-
@mladja04:
Can't find captcha folder in plugins and neither captcha.php in your gallery root
please make sure to copy both of them
-
I delete all files because I have some problems and upload new, than forget to upload this captcha files.
Now I upload it, but still isn't visible into plugin administration page. :(
-
You didn't upload all files and folder !
For example I can't find : codebase.php , configuration.php , schema.sql , .... within captcha folder
please re-upload all files and folder and try again
-
I think that I download and upload some bad veriosn and missing some files. I now upload again captcha version 3.0 but now at top of center position in all pages I and all visitors see this red message:
This is sample data returned from plugin "".
What happen?
-
You installed the sample plugin.
-
:o :o :o :-X :-X :-X
Thank you very much.
;D ;D ;D
-
One sugestion about captcha. In send ecard preview page missing captcha for confirmation, user can't to send ecard bacause get error message.
-
And since we do not have a crystal ball or mind-reading caps you wil have to post the error message also..
-
http://www.genealogia.okiem.pl/foto2/register.php
Everythink looks fine, my server support GD 221
Why captha doesnt't work ? (no picture)
-
Did you place captcha.php at the root of your cpg site ?
Usually the version number of cpg is included on the page.. i can't see it with your site, did you remove it ?
Latest version is 1.4.18.. if you run a older version then please upgrade asap.
-
thank you for interesting
yes I have new version (18) and I have this file in root
I also disallow and allow againg plugin
I can prepare you account with administrator rigths if you want to look thru options. - Please send email to me
-
CAPTCHA doesn't work on my page www.genealogia.okiem.pl/foto2
I try to do everything what is written here.
*have captcha.php i root
*have php high version
*have gd high version
*unistal, reinstal
*changing code in few ways as mentioned here
Captcha WAS working before - but since few days doens't (I haven't noticed exactly when)
I see red cross (IE, or small picture in Firefox), right click in firefox give blank page with url-text to captcha.php
Please help
This is debug information of entering registriation
USER:
------------------
Array
(
[ID] => f9e39f2602d4d01b56fbf84a77df8bf7
[am] => 1
[liv] => Array
(
[0] => 1796
[1] => 1798
[2] => 1780
[3] => 1915
[4] => 1909
)
[lang] => polish
[search] => Array
(
[search] => jaśkiewi
[album] => search
[title] => on
[newer_than] =>
[caption] => on
[older_than] =>
[keywords] => on
[type] => AND
[params] => Array
(
[title] => on
[caption] => on
[keywords] => on
)
)
[sort] => dd
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 0
[can_post_comments] => 1
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 3
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM fotogen_filetypes; (0s)
[1] => select * from fotogen_plugins order by priority asc; (0s)
[2] => delete from `okiem_fotogen`.fotogen_sessions where time<1210027499 and remember=0; (0.001s)
[3] => delete from `okiem_fotogen`.fotogen_sessions where time<1208821499; (0s)
[4] => select user_id from `okiem_fotogen`.fotogen_sessions where session_id = '83680a30b59fa2ecd070f2f91678f420' (0s)
[5] => select user_id as id, user_password as password from `okiem_fotogen`.fotogen_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM fotogen_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM fotogen_usergroups WHERE group_id= 3 (0s)
[8] => update `okiem_fotogen`.fotogen_sessions set time='1210031099' where session_id = '83680a30b59fa2ecd070f2f91678f420' (0s)
[9] => DELETE FROM fotogen_banned WHERE expiry < '2008-05-06 00:44:59' (0s)
[10] => SELECT * FROM fotogen_banned WHERE (ip_addr='79.189.48.214' OR ip_addr='79.189.48.214' OR user_id=0) AND brute_force=0 (0s)
[11] => SELECT aid FROM fotogen_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[agree] => Zgadzam się
)
==========================
Page generated in 0.025 seconds - 12 queries in 0.001 seconds - Album set : AND aid NOT IN (19,22,26,27) ; Meta set: ;
-
ok - I solved problem
it was </html> on the very end of language file (after colsing php sign)
(ufffff ... 4 hours of searching!)
-
Well this seemed a very good plug-in for the spam problem but...
Installed the gallery back last November 2007, (1.4.12) all okay until every picture had spam comments added, & frequently, so removed manually all this on regular basis. Banning gibberish user/names too.
Yesterday 10/05/08 finally grasped knowledge to backup & installed the lastest update. All working fine.
Downloaded v3.0 Captcha, followed README file & installed in plug-in folder, and copied captcha.php to root folder, assume that is root of gallery not site root!
Now all I get is this on every attempt to access gallery folder & its index page!
http://sussex-transport.co.uk/gallery/admin.php 82.24.12.*** /gallery/admin.php sussex-transport.co.uk Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) 403
Disabled it, then removed it, overwrote all the folders again from yesterdays backup, looked through the php tables & no plug-in now there but for the simple URL plug-in. This text response looks like its a 403 error!
What went wrong! The visitor gallery is now less operative than it was before the upgrade to 1.4.18 !!
Anyone like to suggest what I do now, I would follow a simple guide again but I did what it said, (why copy captcha.php to root, & which root?), then I can enable it, & add the debug panel for a visitor to assess, IF we can get in again.
Could not work out what the different download points are for the plug-in, only seems the one with 3 zip versions, so whats the reference to a MOD & not a plug-in for captcha?
-
(why copy captcha.php to root, & which root?),
The coppermine root folder; if you installed coppermine into your webroot, then it's the webroot where captcha.php is supposed to reside. If you have your coppermine gallery in a sub-folder, the file captcha.php needs to go into that sub-folder as well.
-
Ta for that bit, & thats what I gathered, but why is that copied, two copies of it operating?
Both the original folder AND the root of the gallery itself.
Still rather miffed at losing ALL the gallery after that update & attempting to secure a method to stop spam comments to evry photo on the site.
Have restricted guests & basic members, hinders new joining, but how else to but for verification option.
-
Ta for that bit, & thats what I gathered, but why is that copied, two copies of it operating?
Both the original folder AND the root of the gallery itself.
It isn't. If that is the case for you, you must have made a mistake.
Still rather miffed at losing ALL the gallery after that update & attempting to secure a method to stop spam comments to evry photo on the site.
Have restricted guests & basic members, hinders new joining, but how else to but for verification option.
If you have lost data, you have made a mistake. Roll back a backup in that case. Your issue seems to be beyond the scope of this thread, so you better start a thread of your own.
-
It isn't. If that is the case for you, you must have made a mistake.
No mistake, I did what it said, thats just it, it says to COPY the captcha.php to the root folder of the coppermine gallery, where surely if its NOT to stay with all the other new files then it ought to be said to MOVE or CUT&PASTE that to the new location. To me COPY means just that, which is to duplicate.
As for the other issue, really annoying as it appears to have lost everything to do with the gallery for issue above ought to be better clarified I think in its description.
-
My new separate thread on this topic was solved here;
http://forum.coppermine-gallery.net/index.php/topic,52603.new.html#new
-
I want to use a dark background image for my CAPTCHA letters. If I do that, how do I change the color of the letters that show up? I think it's this code:
// select random greyscale colour
$iRandColour = rand(0, 100);
But how do I tell it to show lighter colors?
-
Shift the range up. Instead of 0-100 try 100-200. Increasing the contrast will probably weaken the captcha though.
-
Hallo, I have been looking f on the thread and made some search without resoult. I apologize if already asked:
How can I set captcha only on registration?
And not, for example in Log-in?
Is there a clean way to achive it?
???
I would not like to annoy my users to have to retype each time logging in, and I would like to stop those stupid bots from registering with awfal names... aka22234, abc1221, gon2653465 .... ::)
-
I am sorry if this has been gone over before but I am not able to find it. I have just done a fresh install of Coppermine and the first plugin I added was the Capcha one. I get the image on the login page and the other pages, but not on the registration page. However when you try to register you get an error saying the capcha confirmation code did not match (so its there, it just isnt showing). Can you help me out?
-
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
Ok Im back with a steady gallery again, (I think) but back to captcha, loaded files again & moved the captcha.php to root also see that the plug-in seems to be enabled & loaded in config ok.
Now any click on most in my album list or menu (NOT as admin) takes users to my 404 error page!
So still baffled, cant see an admin option to tinker with it, just editing codebase.php and FTP I imagine.
So anyone like to say why it still does not work? At least my gallery appears accessable via admin.
How about anyone else, am I really stupid & still missing a really obvious step.
Really great idea with this plug-in, although only seen one other on the web that reckons it helps with blind users too.
For me this would be fine if I can get it to work as there is a contact point in the main site anyway.
www.sussex-transport.co.uk/gallery/
By the way, when I login to admin, it now brings up a visual verification image but comes up with this too, amoungst others;
Notices
/pluginmgr.php
Notice line 242: Undefined index: op
-
Emergency!
I tried using your steps to manually uninstall Captcha (as it's not working) and now it says I am BANNED.
edit: Okay, managed to delete the ban in PHPMyAdmin. The ban was a result of trying to log in with the captcha and being denied like 20 times (which is why I uninstalled).
-
Russian Translation for 3.0 version
-
" -You can set how many secounds should pass before we delete old records from database "
Can you please explain this a little bit ?
-
Hi all,
I tried both this plugin and the original mod to let anonymous users leave comments avoiding spam, but I keep getting no confirmation code under comments box (and registration page too, with the plugin now installed), with the message "Confirmation code doesn't match" if an anonymous user tries to register or leave a comment.
Any suggestion to make it work?
My Gallery: http://vanrokken.altervista.org/
Gallery 1.4.18 with MiniCMS, Search Albums and Statistics - Hits plugins (Captcha on top)
PHP 4.4.8 with GD 2.0.28 and Freetype support enabled
Debug mode output as anonymous user on the displayimage.php page:
USER:
------------------
Array
(
[ID] => 2cfd36c11a77c015e2279ae2293a330d
[am] => 1
[lang] => italian
[lap] => 11
[liv] => Array
(
[0] => 1336
[1] => 649
[2] => 432
[3] => 1163
[4] => 505
)
[search] => Array
(
[search] => dinavolo
[album] => search
[plugin_search_album] => true
[newer_than] =>
[older_than] =>
[type] => AND
[album_title] => on
)
[sort] => pa
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 0
[can_post_comments] => 1
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 0
[num_file_upload] => 0
[num_URI_upload] => 0
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 0
[ufc_min] => 0
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM coppermine_filetypes; (0s)
[1] => select * from coppermine_plugins order by priority asc; (0.001s)
[2] => delete from `my_vanrokken`.coppermine_sessions where time<1211204833 and remember=0; (0s)
[3] => delete from `my_vanrokken`.coppermine_sessions where time<1209998833; (0s)
[4] => select user_id from `my_vanrokken`.coppermine_sessions where session_id = '2f340572ede4758e9b81e9a7927ec0d4' (0s)
[5] => select user_id as id, user_password as password from `my_vanrokken`.coppermine_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM coppermine_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM coppermine_usergroups WHERE group_id= 3 (0s)
[8] => update `my_vanrokken`.coppermine_sessions set time='1211208433' where session_id = '2f340572ede4758e9b81e9a7927ec0d4' (0s)
[9] => SHOW TABLES LIKE 'coppermine_cms_config' (0.001s)
[10] => SELECT * FROM coppermine_cms_config (0s)
[11] => DELETE FROM coppermine_banned WHERE expiry < '2008-05-19 16:47:14' (0s)
[12] => SELECT * FROM coppermine_banned WHERE (ip_addr='79.27.21.18' OR ip_addr='79.27.21.18' OR user_id=0) AND brute_force=0 (0s)
[13] => SELECT aid FROM coppermine_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
[14] => SELECT aid FROM coppermine_albums (0s)
[15] => SELECT aid from coppermine_pictures WHERE pid='505' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) LIMIT 1 (0s)
[16] => SELECT title,keyword from coppermine_albums WHERE aid='29' (0s)
[17] => SELECT COUNT(*) from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) (0.001s)
[18] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) ORDER BY position ASC (0.002s)
[19] => SELECT title,keyword from coppermine_albums WHERE aid='29' (0s)
[20] => SELECT COUNT(*) from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) (0s)
[21] => SELECT * from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) ORDER BY position ASC LIMIT 32 ,1 (0.001s)
[22] => SELECT title, comments, votes, category, aid FROM coppermine_albums WHERE aid='29' LIMIT 1 (0s)
[23] => SELECT name, parent FROM coppermine_categories WHERE cid = '2' (0s)
[24] => UPDATE coppermine_pictures SET hits=hits+1, lasthit_ip='79.27.21.18', mtime=CURRENT_TIMESTAMP WHERE pid='505' (0.028s)
[25] => INSERT INTO coppermine_hit_stats
SET
pid = 505,
search_phrase = '',
Ip = '79.27.21.18',
sdate = '1211208434',
referer='http%3A%2F%2Fvanrokken.altervista.org%2Findex.php',
browser = 'Unknown',
os = 'Windows 98' (0.054s)
[26] => SELECT COUNT(*) from coppermine_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) (0.007s)
[27] => SELECT * FROM coppermine_pictures WHERE approved = 'YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) ORDER BY RAND() (0.057s)
[28] => SELECT * FROM coppermine_exif WHERE filename='albums/viaggi/alassio0609/IMG_0227.JPG' (0s)
[29] => INSERT INTO coppermine_exif VALUES ('albums/viaggi/alassio0609/IMG_0227.JPG', 'a:10:{s:13:\"VerboseOutput\";i:0;s:6:\"Errors\";i:0;s:9:\"ValidJpeg\";i:1;s:13:\"ValidIPTCData\";i:0;s:13:\"ValidJFIFData\";i:1;s:13:\"ValidEXIFData\";i:0;s:13:\"ValidAPP2Data\";i:0;s:12:\"ValidCOMData\";i:1;s:4:\"JFIF\";a:4:{s:4:\"Size\";i:16;s:4:\"Data\";s:14:\"JFIF\0\0H\0H\0\0\";s:10:\"Identifier\";s:5:\"JFIF\0\";s:13:\"ExtensionCode\";s:2:\"01\";}s:3:\"COM\";a:2:{s:4:\"Size\";i:15;s:4:\"Data\";s:13:\" Corp.\";}}') (0.123s)
[30] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM coppermine_comments WHERE pid='505' ORDER BY msg_id ASC (0.002s)
[31] => SELECT title,keyword from coppermine_albums WHERE aid='29' (0s)
[32] => SELECT COUNT(*) from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) (0.001s)
[33] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from coppermine_pictures WHERE ((aid='29' AND aid NOT IN (73,74) ) ) AND approved='YES' AND aid IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72) ORDER BY position ASC LIMIT 28 ,8 (0.001s)
[34] => SELECT * FROM coppermine_cms WHERE conid='505' AND type='2' ORDER BY cpos (0.051s)
)
==========================
GET :
------------------
Array
(
[album] => random
[cat] => 0
[pos] => -505
)
==========================
POST :
------------------
Array
(
)
Debug mode output trying to leave a comment as an anonymous user:
USER:
------------------
Array
(
[ID] => 2cfd36c11a77c015e2279ae2293a330d
[am] => 1
[lang] => italian
[lap] => 11
[liv] => Array
(
[0] => 1336
[1] => 649
[2] => 432
[3] => 1163
[4] => 505
)
[search] => Array
(
[search] => dinavolo
[album] => search
[plugin_search_album] => true
[newer_than] =>
[older_than] =>
[type] => AND
[album_title] => on
)
[sort] => pa
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 0
[can_post_comments] => 1
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 0
[num_file_upload] => 0
[num_URI_upload] => 0
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 0
[ufc_min] => 0
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM coppermine_filetypes; (0s)
[1] => select * from coppermine_plugins order by priority asc; (0s)
[2] => delete from `my_vanrokken`.coppermine_sessions where time<1211204995 and remember=0; (0s)
[3] => delete from `my_vanrokken`.coppermine_sessions where time<1209998995; (0s)
[4] => select user_id from `my_vanrokken`.coppermine_sessions where session_id = '2f340572ede4758e9b81e9a7927ec0d4' (0s)
[5] => select user_id as id, user_password as password from `my_vanrokken`.coppermine_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM coppermine_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM coppermine_usergroups WHERE group_id= 3 (0s)
[8] => update `my_vanrokken`.coppermine_sessions set time='1211208595' where session_id = '2f340572ede4758e9b81e9a7927ec0d4' (0s)
[9] => DELETE FROM coppermine_plugin_captcha where UNIX_TIMESTAMP(time) < 1211208295 (0s)
[10] => SELECT COUNT(*) AS ccount FROM coppermine_plugin_captcha WHERE ((ip_addr = '79.27.21.18') AND (code ='d41d8cd98f00b204e9800998ecf8427e')) LIMIT 1 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[msg_author] => Anonimo
[msg_body] => bello!
[event] => comment
[pid] => 505
[submit] => OK
)
No PHP errors.
-
Re-active the plugin so we can get a good look at the effect on your site.
-
It is active at this moment: plugin installed and captcha.php moved to gallery root
-
When looking at the ouput generated by your gallery I can't spot reference to the captcha. Are you sure that you have installed the plugin? If yes, please attach a screenshot of your pluginmanager page to your posting.
The captcha itself is working as expected - go to http://vanrokken.altervista.org/captcha.php to verify.
-
Are you sure that you have installed the plugin?
Definitely sure! :)
If yes, please attach a screenshot of your pluginmanager page to your posting.
Here it is...
The captcha itself is working as expected - go to http://vanrokken.altervista.org/captcha.php to verify.
More and more confused... ???
-
This post just to let the community know ;D that I surrended to the plugin, :'( but I managed to get the mod working at least :D ;)
-
Ok Im back with a steady gallery again, (I think) but back to captcha
To ask anyone on this thread, have they tried to look at my site at all?
at the gallery album list, try click on menu items & its taking users to my 404 error page!
www.sussex-transport.co.uk/gallery/
So why does it say the files have moved. Back up & replace now done twice & captcha works on registration/login
-
Not related to the captcha plugin at all, but to your usage of the SEF_URLs plugin. Turn that plugin off if it doesn't work for you. Don't clutter the captcha-plugin announcement thread with unrelated issues!
-
Not related to the captcha plugin at all, but to your usage of the SEF_URLs plugin. Turn that plugin off if it doesn't work for you. Don't clutter the captcha-plugin announcement thread with unrelated issues!
You may well be right in your explanation but how am I to know and same with others who have not the experience you have.
How am I to know its unrelated! Dont actually know what the other plug-in is for, dont understand it & that appeared there by default!
As for the captcha, I am trying to get it to work & looks like I am not likely to get assistance so will leave the thread, as im cluttering...
-
A plugin like sef_url is not installed automaticly.. it is to be manually installed. So it can not have just appeared there by default.
-
that appeared there by default!
Nonsense! As Hein suggested: that plugin is off by default. You must have deliberately enabled it. It doesn't even come with cpg1.4.18.
-
Hallo there!
I have been reading this large thread more than once but still did not find answer to my situation:
I have been using captcha for some months without problems, some weeks ago I upgraded my gal and added some plug ins (photo_shop and full_size acess control and Mini CSM).
Now installing Captcha semms working, apart fromn the fact that it does not recognize the letters I type!! :-(
I mean confirmation code did'nt match comes out each time I type the characters I see....
I have tryed ereasing all files and uploading again the whall plug in.... and problem persists...
If someone hase faced this, and hase a clue on where is the problem, I would appreciate huegly a hint! :-)
-
Please post a URL to your gallery
- Do not forget to enable captcha
-
i installed this on Coppermine Photo Gallery 1.4.18 (stable) and it is not working for me. cant see the captcha image when going to login or register. gd2.0 is installed.
ideas?
-
Please post a URL to your gallery
-
www.gottialbum.com
-
i installed this on Coppermine Photo Gallery 1.4.18 (stable) and it is not working for me. cant see the captcha image when going to login or register. gd2.0 is installed.
ideas?
Hi There
I have allmost the same setup, Coppermine 1.4.18 with Stram MOD, i have installed Captcha 3.0 i have no Image showing, i have cleared my IE cache so.. my link is
www.onlinegalleriet.dk (http://www.onlinegalleriet.dk)
Captcha is enabled
Br.
Torben
-
@GoTTi:
- Are you sure that your server meets the requirement
GD 2.x (2.0.28 or later is recommended) with Freetype support
- Your gallery needs username/password so please post a test account
@torbeniver:
make sure that your server meets requirement
GD 2.x (2.0.28 or later is recommended) with Freetype support
-
Hi Sami
Here are some inf. from PHPinfo
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
i have the the support.. :-)
any idears.
Br
Torben
-
please disable all other plugins and try again and let me know the result
-
@GoTTi:
- Are you sure that your server meets the requirement
GD 2.x (2.0.28 or later is recommended) with Freetype support
- Your gallery needs username/password so please post a test account
[/b]
i know gd2.0 is installed, how do i check the "freetype support" option?
and there is no need for a test account. i am only using this option for new registering users only.
-
www.yoursite.com/phpinfo.php , do a search on that page if freetype is installed or not.
-
www.yoursite.com/phpinfo.php , do a search on that page if freetype is installed or not.
i do not see a freetype support on there...
i do have several vbulletin forums running and they are working with a captcha mod, i dunno if its similiar, but its working.
so not seeing freetype in the info page, what do i do?
-
i do not see a freetype support on there...
so not seeing freetype in the info page, what do i do?
Ask your host to install it
i do have several vbulletin forums running and they are working with a captcha mod, i dunno if its similiar, but its working.
This plugin is differ from those captcha
-
i am the host. its my server. how can i do it?
-
Google it ;)
You find stuff like this: http://freetype.sourceforge.net/download.html (http://freetype.sourceforge.net/download.html)
-
please disable all other plugins and try again and let me know the result
I have tried to disable all plugins but that did not work, also what if it did, i use all the installed plugins, then i would be at the start without a solution, so i uninstalled Captcha, and only reg. users can know post comments, great plugin anyway, keep up this work.. ;D
I´ll wait for the release of CP 1.5.. Thanx anyway. :-)
Best regards
Torbeniver
-
i am the host. how do i install it?
-
We are not a support board for Freetype installation. If you are your own host then you had better also know you're way around installing additional software on your own server to support various items. The link i already gave you clearly says "It comes with simple install and uninstall scripts". Download it and install it. If you do not know how to do this go ask somewhere else or get someone else to do it for you.
-
Suggestions for next version of plugin:
1) Link directly to the captcha.php in the plugin folder. That would remove the need to move the file to the root manually after installing the plugin.
codebase.php
Find all occurrences of
<img src="captcha.php"
Change to
<img src="index.php?file=captcha/captcha"
2) Clean the output buffer just before the image is displayed.
captcha.php
Find:
$code = $oPhpCaptcha->Create();
Change to
ob_end_clean();
$code = $oPhpCaptcha->Create();
3) Check for the required functions for generating the image at install time and display a helpful error message.
That should cut down on the number of support posts.
-
Nibbler:Thanks for Very helpful suggestions , I'm working on a ajax based version (based on JQuery) and I'll take your suggestions too
-
well i cant seem to figure out how to install this mod. is there another mod like it that i can use that doesnt require me to install any addons?
-
This is not a mod. It's a plugin. Which you can install using the plugin manager. A mod is.. wel it's a mod which basicly means more manual work to get captcha working.
-
You may look at
Mod/Hack: Adding Akismet spam-checking to Coppermine commenting (http://forum.coppermine-gallery.net/index.php/topic,33827.0.html)
which is better in your situation ;)
-
I uploaded the latest Captcha 3.0 plugin in my CPG 1.4.18, but it is not working on the registration page. I currently block users from seeing photos unless registered. The captcha image shows and works correctly in login page, but not in register page. I am using the mac OSX theme. Website is here: http://gallery.bica.us Looking for suggestions on how to get this to work, I am getting registration attempts by Bots every day, good thing I have to approve new users first.
-
Have you read the readme that comes with the plugin?
-
Yes, that's the first thing I did. But it does not apply to my setup:
1. There is no mention of registration page, and why captcha it's not working in my case.
2. From the README: "You can set which group shouldn't see captcha on each page"
What group is it when you have not logged in yet, and all you see is the login or register page? I tried a few combinations without success.
By the way, my captcha plugin codepase.php code is this:
/* Setting Options */
/**
* Enable/Disable array
*
* Set which group should NOT see Captcha on each page
* ''=> Captcha Enable for all users
* COppermine Standard Group Name:
* Administrators,Registered,Guests,Banned
* You can add your custome group name too
* Seprated by ','
*/
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered,Guests,Banned',
'register' => '',
'comment' => 'Administrators,Registered',
'report' => 'Administrators,Registered',
'ecard' => 'Administrators,Registered',
);
I think something from this code in codebase.php is not working properly
case 'register.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['register']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['register'] == '') {
$exper = '(<td colspan="2" align="center" class="tablef">.*
.*<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />.*
.*</td>)';
if (preg_match($exper, $html)) {
$newcpch = '<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"><img src="captcha.php" align="middle"></tr><tr><td colspan="2" align="center" class="tablef">
<input type="submit" name="submit" value="' . $lang_register_php['submit'] . '" class="button" />
</td></tr>';
$html = preg_replace($exper, $newcpch, $html);
}
}
break;
-
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
The suggestion above worked. Thanks!
-
I have been using Captcha V3.0 for ages without any problems but now when I log in I get the error 'confirmation code didn't match'. I followed the advise in a previous thread as follows:
"I was able to add comment on your website. Check http://www.kidsandcolors.com/colorina_colors-1355.html and you will see a comment 'Nice horse' added by me. Make sure that 5 letters are coming in the image. If not then reupload the fonts directory. Also make sure that the image reads different letters every time you refresh a page. If not then that means the image is coming from your cache and is not the correct image."
However, I still can't fix the problem and can no longer log in. Any ideas?
Barry
-
- Please post a link to your gallery
- Did you install any other plugin?
-
Captcha ver 3.0
As I see , we have more than 240 downloads (till now) from Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php?topic=29564.0) mod by Abbas Ali , yes it's a great mod ;)
(IMO it should goes to core)
So here is the mod as a plugin ... Enjoy
Requirement:
===========
- GD 2.x (2.0.28 or later is recommended) with Freetype support
- Better compatibility with php 4.3.5 or later
Installation:
==========
0. Uninstall any older version of this plugin
1.Copy captcha folder to your plugins folder
2.Use plugin manager to install it
3.Copy captcha.php to gallery root
feature:
=======
- Captcha for Comment
- Captcha for Registartion
- Captcha for Report to admin
- Captcha for login
- Captcha for Ecard
Settings:
========
-You can set which group shouldn't see captcha on each page
if you are using custom group name or using bridge then you should use your custom group name or bbs's group name
-You can set how many secounds should pass before we delete old records from database
-You can set captcha image setting under captcha.php
More detail under Readme.txt
language:
========
- Italian Thanks to lontano
- Dutch Thanks to Hein
- French Thanks to spikeweb
- German Thanks to m@rk
- Brazilian portuguese Thanks to Bonato
- Spanish thanks to pepemosca
- Turkish thanks to Benim
Update:
v3.0 - 2007/11/21 7:30 AM GMT
- Rerwite whole plugin engine (improvement)
Captcha code now stores to db instead of session
Have an issue with plugin ? can't login to disable it ?
Manually disable captcha plugin:
=======================
- Use a mysql tool (e.g. phpmyadmin)
- Drop xxx_plugin_captcha table
- Open xxx_plugins table of gallery DB (xxx_ is your table prefix)
- Delete CAPTCHA row
fixes:
====
- works with bridged gallery to SMF
Added language:
===============
- Turkish thanks to Benim
- Hungarian thanks to Szalay ( hungarian.php is in the hungarian.zip file. Put this file into the /captcha/lang/ )
-
Thank you for translation
I'll add it to initial post
-
Hi,
I've looked through the pages here but haven't found the solution to this problem.
I had this captcha plugin working perfectly, and then moved to a new server.
The new server has the latest GD (2.0.28 or whatever it is) and freetype both installed. All the files are in the right place and the plugin is "running" etc (ie it's identical to the old setup)
for some reason however I get no letters in my generated captcha image... just the scratchy background line.
Does this problem seem familiar to anyone? does anyone have any ideas where I might find a solution?
Thanks
-
it dosnt work with my page - http://www.etennis.mobitek.biz/cpg1416/index.php?cat=3
-
@bitcloud: check fonts folder
@joginvik: Are you sure it's enable ?
-
Hey Sami,
Thanks for the help...
I replaced the font files with the ones from your original archives... somehow they got corrupted..
It all works now... cheers for saving me hour upon frustrating hour dealing with spammers and bots...
-
thanks, all good with your mod
I'll done it
-
Hi installed the mod with no probs
But i am a bit confused about changing who has to use the captcha. I have read the readme Doc and have found the code that I need to change which is this
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators',
'ecard' => 'Administrators',
I only want new users who register for the first time to use the captcha and I dont want registered users or admins to have to keep using the captcha do I just take out the "Registered' from the above code so that it looks like this
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators',
'ecard' => 'Administrators',
Can anybody help me with this please
-
Here is the array that shows captcha to Guest users only on all pages:
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators,Registered',
'ecard' => 'Administrators,Registered',
);
-
2.Use plugin manager to install it
Can you disscuse this step by photos
I really don't understand it
with my whole thanks
almoali
-
Problem : the captcha image is not displayed, got a "red cross" instead of the image :(
Using IE6 at work, not tested with normal browser...
Test : http://gilles.wittezaele.fr/photos_mariage/ and can try to login or leave a comment...
-
@almoali:Please read documentation , here is the link to online version:
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin_manager
@Gilles50110:Captcha is working , you have a client (browser) issue
- Disable any network security app that you have such as Norton & ZoneAlarm , .... they detect captcha image as an advertisement and removed it !
-
Here is the array that shows captcha to Guest users only on all pages:
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators,Registered',
'ecard' => 'Administrators,Registered',
);
Thanks that work a treat
-
Is there a way to control the position of the captcha?
On my site it comes up and cuts off the box its asking you to type in. Making it look very messy.
http://img242.imageshack.us/img242/9036/messaa1.jpg [Edit GauGau] Replaced hotlinked image with attachment [/Edit]
-
If you are a coder , you can edit /plugins/captcha/codebase.php , under captcha_main function you'll find $newcpch variables which is contain captcha image code for each pages, there you can change the code to fit with your design
Or
you can change your custom template width to fit
-
Hi,
i installed the captcha plugin without any problems about the plugin manager. i copyed the captcha.php in the gallery root directory.
If i go now as an guest to my picture comments the is still "anti spam protection" but no picture is shown.
the site is http://www.evol-eno.de/gallery/
i used the joomla bridge for Coppermine - is this a problem?
-
here debug code - i hope somebody can help me. Sorry for the double post - i don't find the "edit" button ???
USER:
------------------
Array
(
[ID] => 6bd1ca4fd0296e9f4e3b2ad2a9b17dd9
[am] => 1
[lang] => german
[liv] => Array
(
[0] => 448
[1] => 482
[2] => 639
[3] => 69
[4] => 312
)
[name] => el Mucho
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 62
[user_name] => Phatair
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => SELECT * FROM cpg14x_bridge (0s)
[3] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (1) (0s)
[4] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 1 (0s)
[5] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 62 (0s)
[6] => SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,my_profile FROM cpg14x_final_extract_config WHERE Group_Id=1 (0s)
[7] => DELETE FROM cpg14x_banned WHERE expiry < '2008-07-15 14:25:50' (0s)
[8] => SELECT * FROM cpg14x_banned WHERE (ip_addr='194.138.39.140' OR ip_addr='194.138.39.140' OR user_id=62) AND brute_force=0 (0s)
[9] => SELECT title,keyword from cpg14x_albums WHERE aid='12' (0s)
[10] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='12' ) ) (0s)
[11] => SELECT * from cpg14x_pictures WHERE ((aid='12' ) ) ORDER BY filename ASC LIMIT 0 ,1 (0s)
[12] => SELECT title, comments, votes, category, aid FROM cpg14x_albums WHERE aid='12' LIMIT 1 (0.001s)
[13] => SELECT name, parent FROM cpg14x_categories WHERE cid = '4' (0s)
[14] => SELECT title,keyword from cpg14x_albums WHERE aid='12' (0s)
[15] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='12' ) ) (0s)
[16] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg14x_pictures WHERE ((aid='12' ) ) ORDER BY filename ASC (0.001s)
[17] => SELECT msg_id, msg_author, msg_body, UNIX_TIMESTAMP(msg_date) AS msg_date, author_id, author_md5_id, msg_raw_ip, msg_hdr_ip, pid FROM cpg14x_comments WHERE pid='350' ORDER BY msg_id DESC (0s)
[18] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
[19] => SELECT title,keyword from cpg14x_albums WHERE aid='12' (0s)
[20] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='12' ) ) (0s)
[21] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg14x_pictures WHERE ((aid='12' ) ) ORDER BY filename ASC LIMIT 0 ,10 (0.001s)
[22] => SELECT count(*) from cpg14x_comments where pid=350 and msg_id!=0 (0s)
[23] => SELECT count(*) from cpg14x_comments where pid=351 and msg_id!=0 (0s)
[24] => SELECT count(*) from cpg14x_comments where pid=354 and msg_id!=0 (0s)
[25] => SELECT count(*) from cpg14x_comments where pid=353 and msg_id!=0 (0s)
[26] => SELECT count(*) from cpg14x_comments where pid=349 and msg_id!=0 (0s)
[27] => SELECT count(*) from cpg14x_comments where pid=352 and msg_id!=0 (0s)
[28] => SELECT count(*) from cpg14x_comments where pid=355 and msg_id!=0 (0s)
)
==========================
GET :
------------------
Array
(
[album] => 12
[pos] => 0
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 5.0.51a-6
------------------
Coppermine version: 1.4.18(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support: 1
JIS-mapped Japanese Font Support: 1
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 3
Client API version 5.0.51a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient_r
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3.3
Linked Version 1.2.3.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | debug_backtrace, disk_free_space, diskfreespace, disk_total_space, dl, error_log, exec, fsockopen, get_current_user, getrusage, leak, link, openlog, passthru, pfsockopen, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, symlink, sys_getloadavg, syslog, system | debug_backtrace, disk_free_space, diskfreespace, disk_total_space, dl, error_log, exec, fsockopen, get_current_user, getrusage, leak, link, openlog, passthru, pfsockopen, popen, proc_close, proc_get_status, proc_nice, proc_open, proc_terminate, shell_exec, symlink, sys_getloadavg, syslog, system
file_uploads | On | On
include_path | .:/etc/php/lib | .:/etc/php/lib
open_basedir | /users/phatair/temp:/users/phatair/www:/etc/php/lib | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i -fno-reply_phatair_report-spam-to@bplaced.net -F bplaced.net | /usr/sbin/sendmail -t -i -fno-reply@bplaced.net -F bplaced.net
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 12 | 8
max_input_time | 300 | 300
upload_max_filesize | 128M | 32M
post_max_size | 132M | 32M
==========================
Page generated in 0.495 seconds - 29 queries in 0.003 seconds - Album set : ; Meta set: ;
-
Captcha is working fine for me there .
If you can't see the captcha image then it means something remove it from your browser (clinet issue)!
Please disable any internet security app such as Norton internet security , ZoneAlarm or any other type of adware remover
Note:Please do not post debug output unless you asked to do it.
-
hm...thanks for your help.
i tested it on 3 different PC's (home, office, friend) and 4 different Browsers (IE6, IE7, FF2, FF3) and on no config i see the captcha? I disabled Kaspersky Internet Security, AdBlock and so on....but i dont see the captacha :(
Sorry for the debug post - i thought it will be helpful.
-
Check the german lang file for added whitespace.
-
Hi Nibbler, what excatly do you mean with "Check the german lang file for added whitespace."
-
You need to check "{gallery-root}/plugins/captcha/lang/german.php" and see if you have any empty line after php close tag (?>) and remove it
-
Hi Sami,
there are no empty lines in the language file. the php close tag is in the last line.
-
Apply suggestion 2 from http://forum.coppermine-gallery.net/index.php/topic,36319.msg258786.html#msg258786
Edit: looks like you have a BOM at the start of the file, caused by editing it with an application that does not correctly support unicode.
-
Thanks Nibbler,
i will try to clean the output buffer.
oh, ok! Thats possible - i edit the file with a editor of Joomla - so maybe this editor isnt the best editor to make these changes. I will remove the BOM and check the captcha again.
Thanks a lot for your help!!
-
Hi,
i changed the code in the captcha.php from:
$code = $oPhpCaptcha->Create();
to this like in the other thread:
ob_end_clean();
$code = $oPhpCaptcha->Create();
but the code isnt still there.
@Nibbler - i don't see the BOM (for me a BOM is a "bad character" in the code) in which file do you see the BOM?
-
I am seeming to have this same issue. It began right around July 18th, for us.
It kept leaving processes open on the server for the captcha.php file, which ended up shutting down all php scripts we were running.
I had to remove the captcha plugin to be able to stop the processes from reoccurring, but now, we are dealing with lots of spam comments. I want to put captcha back on, but not if we can't get the images to show when logging on or doing anything else...
Please help...
-
Try uploading a clean copy of german.php. The only reason I can think of as to why it works in other languages but not German is that there is something wrong with your German lang file.
The BOM appears as a »¿ at the start of your page, but your browser may hide it from you.
-
Hi,
so i uploaded a clean new german.php file but nothing changed. I renamed the english.php in german.php and the german.php in english.php. So if the german.php is wrong then it must be fine with the english.php (now the german.php). But the same error appears.
I searched in the source code of my page but i dont found the BOM??
-
no other solution for this problem?
-
The BOM is still there. Solution is still to remove it. Maybe it's coming from Joomla.
-
BUMP... I posted this before, but it went completely ignored...
We don't use German and it was working before, but now it is not:
Original post:
I am seeming to have this same issue. It began right around July 18th, for us.
It kept leaving processes open on the server for the captcha.php file, which ended up shutting down all php scripts we were running.
I had to remove the captcha plugin to be able to stop the processes from reoccurring, but now, we are dealing with lots of spam comments. I want to put captcha back on, but not if we can't get the images to show when logging on or doing anything else...
Please help...
-
No idea. Find out what happened July 18th.
-
Hi Nibbler,
thanks again for your answer - can you please tell me where exactly you see the BOM? I dont see them. THis would be very helpful for me.
Thanks!
Best regards.
-
It's in the raw output of captcha.php. I doubt that helps you. See if disabling the bridge has any effect.
-
Edit the file with notepad++ and choose the doctype "UTF8 without BOM" and save the file.
A BOM can't be "seen".
Look at "Byte Order Mark" on WP.
-
Hi,
so i disabled the bridge - installed the plugin again but the captcha code is not shown.
I downloaded the notepad++ and opened the captch.php.
i try format -> encode in utf8 - without BOM and i tried format -> convert to utf8 without bom
both changes didnt help - the captch is not shown. I opend the changed captcha.php again and there is still dos/windows and ANSI info in the right side of notepad++
i think i have to disable the comment function for guets because without captchas there are to much spam comments :(
-
thanks again for your answer - can you please tell me where exactly you see the BOM? I dont see them. THis would be very helpful for me.
Try the solution I posted in http://forum.coppermine-gallery.net/index.php/topic,25865.msg119270.html#msg119270
-
thanks for the link
but if i search in my complete coppermine or joomla directory for the BOM (ğż) i find around 100 matches in several files. This character appears in my jpgs, in other files and so on...
i cant believe that all this files are corrupted. i think i delete this plugin and only registerd users can comment the photos. this is not the best solution but i think i will not find the problem and i am not so good in this hole php thing - i dont want waste your time.
thanks a lot for your help.
-
@Sami: I just wanted to comment on the plugin.
What a great tool! ;D I've installed it in my amateur gallery (http://pics.oklahomaedge.com (http://pics.oklahomaedge.com)) and it is working great! Now I can advertise this thing and really open up the registration gates without a flood of spambots. Thank you for providing such clear guidance in the "Read Me" doc. Everything works smoothly.
Jeff
-
hello
How I can hidden the captcha from the register.php? I dont find the code..
-
Just installed the Captcha 3.0 zip files.
The confirmation image was totally chicken scratches, no visible fonts.
I looked in the captcha.php and changed the number of noise lines from 70 to 4, then 1.
At 1 there is a blank box, anything else is totally chicken scratches.
So no way to even log in. I deleted the captcha folder to regain access to my own gallery.
What's going on?
-
check the requirement please .
make sure , font folder is exist
-
Captcha Plugin is not indicated in register, but is checked.
What do I make wrong?
www.album.schlenet.de
-
Sorry, I have found suitable posting in forum, and now it also functions with me.
www.album.schlenet.de
Thank You
-
I have problems with captcha. When I use URL with www. I can't see image for captcha and can't register or write coment but when I use url whitout www. I see captcha image. What to do to fix this problem?
-
I have problems with captcha. When I use URL with www. I can't see image for captcha and can't register or write coment but when I use url whitout www. I see captcha image. What to do to fix this problem?
Count as fixed. After I change from windows to linux server captcha start to work on both urls (with or whitout www) So is that because of server or because of new version of gallery i install yesterday (cpg1.4.19) I realy don't know but it start to work and it's only matter :)
-
Hi, I just installed the captcha plugin on to my new coppermine gallery and everything went smoothly.
Until I went to use it. No matter what I do, I always get back "Confirmation code doesn't match"it
http://www.photogenicfrustration.com/gallery/
I'm certain it is the site not my browser(s) as I've tried it across all 3 OSes I'm running and I captcha works for me on other sites...
Advice/help/pointing in the direction will be greatly appreciated!
-
Hi, I just installed the captcha plugin on to my new coppermine gallery and everything went smoothly.
Until I went to use it. No matter what I do, I always get back "Confirmation code doesn't match"it
http://www.photogenicfrustration.com/gallery/
I'm certain it is the site not my browser(s) as I've tried it across all 3 OSes I'm running and I captcha works for me on other sites...
Advice/help/pointing in the direction will be greatly appreciated!
Upgrade to 1.4.19 first!
-
Done. Still doesn't work however. I've tried searching the forums, but haven't found anything that helps.
-
Done. Still doesn't work however. I've tried searching the forums, but haven't found anything that helps.
Is the captcha image to confirm only 2 characters? Because I can only see 2, but I've got mine working with 5 characters.
-
I changed it to 2 characters as to minimise the number I had to type in and to minimise the chance of reading a character wrong. It was originally set to 5. 5 did not work either.
-
Further information. I confirmed my session.save_path is absolute, not related. The directory is write-able and other php apps are using it fine.
I modified captcha.php to only use the letter 'a' now make my debugging easier.
It must be something to do with the session stuff though, because where-as other apps write in the session directory, coppermine/captcha doesn't... :(
Any ideas?
-
I uploaded the captcha plugin, copied the captcha.php to the main directory, activated the captcha, logged out to test it and now I can't login. I get a screen that has username, password and a field "confirm." What is confirm? I put my password in there, but it didn't work. Help! I can't login at all!
-
Please help. This is urgent. I must login. I have to upload wedding photos tonight for a client and I cannot login!!!!
-
Ok, I logged into my FTP, deleted all CAPTCHA (folder and php) and am able to login again. I guess I can't use captcha :(
-
Hi there i am having a few problems i have installed it and it is showing the box to enter the code but i am getting a square box with a red cross in it where the code is ment to be.
i have uploded to plugins folder and moved the captcha.php to root folder i dont know what i could of done wrong could you please help
Thank you in advanced
BigNick
-
Hi there i am having a few problems i have installed it and it is showing the box to enter the code but i am getting a square box with a red cross in it where the code is ment to be.
i have uploded to plugins folder and moved the captcha.php to root folder i dont know what i could of done wrong could you please help
Thank you in advanced
BigNick
I have the same problem but only with IE and Safari (for Windows). With Firefox it is working fine... .
-
Update:
The problem happens in the Validate subroutine. The select statement returns ccount as 0, however, if I take the exact SQL statement it used, and paste it into my mysql administration page it returns ccount as 1!
Any ideas? It puts the entries for the captcha in the db just find, it is just when it goes to check if the entry is in the db, it returns it isn't, even though it is and running the sql outside of cpg confirms this.
As a side note, in a future version maybe the md5'ing of the captcha code should be removed? After all, all this code is server-side, stored in a db. It isn't like the captcha code is being hashed by the client then sent across so the hashing being done doesn't actually make it more 'secure'
-
Hello.
I did CZECH language for Captcha.
Bye
-
Hiiiz please help me out. urgent help required. i have installed captcha manually from a post on this forum. i cannot find that post now. i did it by editing the register.php and english.php but the problem with the captcha is that i users cannot see the captcha image in the registeration page. please help me out.
the link to my gallery: http://gallery.gokufanclub.com
thx
-
http://gallery.gokufanclub.com/captcha.php returns the text
http://gallery.gokufanclub.com/captcha.php.
on an image instead of an image of random characters. Fix that first. Make sure that you actually have the minimum requirements.
-
what??? im sory i didnt get you. what are u trying to say plz explain.
-
http://gallery.gokufanclub.com/captcha.php looks as screenshot 1 "goku.jpg". However, it should look like screenshot 2 "supposed_look.jpg". Read this thread before asking further questions - I'm not going to repeat this for you just because you're too lazy to read it up.
-
http://gallery.gokufanclub.com/captcha.php looks as screenshot 1 "goku.jpg". However, it should look like screenshot 2 "supposed_look.jpg". Read this thread before asking further questions - I'm not going to repeat this for you just because you're too lazy to read it up.
ok buddy ur right abt the lazy thing. but i have to sort this thing out so i have gone through 31 of ur pages :( took me two hours. i read every single post and tried everything its still not working and if i upload a plugin 3.0 of captcha it dont shows the register page. plz help me out. here is the link again http://gallery.gokufanclub.com
yes and i did manuall installation by mr abbas ali first. it still like that plz help me.
-
Do you fullfill the minimum requirements? Do you have Freetype?
-
goku I gave your answer through PM
You are using this MOD
http://forum.coppermine-gallery.net/index.php/topic,53883.0.html
-
Omg THanks ur a life savior hehee. thanks alot buddy and so sorry for the trouble i have given u guyz.
-
Hey buddy thanks for directing me to that mod by lud. i undo all the stuff and after that i installed the captcha 3.0 but after taht i cudnt login coz can't see the pic i tried several things from ur posts but didnt work . so i deleted teh pplugins_captcha table and the captcha row in teh plugins. but now it says there is sum kinda critical error plz help me.
-
oop sorry for to give u the link. http://gallery.gokufanclub.com if u need anyother stuff plz let me know
-
- I don't see any critical error message !
- Check your php setting to meet the requirement (GD 2.x (2.0.28 or later is recommended) with Freetype support) for this plugin
-
yes i have gd2.034 and free type enabled. this error occurs when we login. plz use this user and pass to check out.
user: broly
pass: 03224256990
-
Username/Password does not work!
-
Goku is temporarily banned, see
@goku: Stop the wannabe-gangster gibberish - I already told you:You have been told to post proper English - why don't you start doing as you have been told? Avoid wannabe-slang expressions like "nuthing", "plz", "coz", "dono" and so on, as this is an international forum - you can't expect people to understand your (pseudo-)cool slang. "Lolz" falls into the same category of words you should not use. I suggest to apply proper capitalization instead and be more carefull when composing your replies to make sure that there are less typos. This increases search-engine-friendliness as well as readability. Thank you.
It's "because", not "coz". It's "you", not "u". It's "please", not "plz". The words "im really depressed" should be "I'm really depressed". You're banned from posting for two days to take a look at a dictionary. Next ban will be permanent.
You have spread your postings over various threads, which is not a bright idea neither (but rather a breach of board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270632.html#msg270632)):
- Support > cpg1.4.x Support > cpg1.4 plugins > cpg1.4 plugin contributions > Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard (http://forum.coppermine-gallery.net/index.php/topic,36319.0.html)
- No Support > Modifications/Add-Ons/Hacks > Mods: Miscellaneous > [Mod] Captcha (Visual Confirmation) for new users registration (http://forum.coppermine-gallery.net/index.php/topic,53883.0.html)
- No Support > Modifications/Add-Ons/Hacks > Mods: Comments > Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php/topic,29564.0.html) (this thread here)
- Support > cpg1.4.x Support > cpg1.4 plugins > Cannot see Captcha Image (http://forum.coppermine-gallery.net/index.php/topic,55419.0.html)
-
is it possible to do a refresh of the captcha image? sometimes its hard to read and I have a failed login limit set up. I don't want people getting locked out because they can't read the captcha all the time.
-
In next version maybe
-
Hi, I just received and massive comment atack. So I came here, downloaded the v3.0 and installed as explained. But, the image doesn't show so I can't even login as admin to unistalled the plugin. :( In fact, I don't want to unistall I really want this in my site. The problem is I can't see the image, any advise?
Link: http://fabriferrero.com.ar/pics/index.php (http://fabriferrero.com.ar/pics/index.php)
-
I can see the image at http://fabriferrero.com.ar/pics/login.php?referer=index.php. Problem solved?
-
No, it's not solved yet.. :( Why can you see the image and I don't? I clean cookies and cache... I don't know what could be the problem but I can't see the image. And I still can't login to my gallery. :'(
Snapshot attached...
-
Its an issue of language file. I tested in english language. Make sure there is no empty lines after the closing php tag (?>) in your lang file.
-
That's what I though. I have already checked that. There is no empty line. Not even a space after closing tags. Thanks to helping my so far. :D
Any other solution? Please... I can't login my gallery yet..
-
You have a BOM, usually caused by editing the lang file in something that doesn't support unicode properly. Save the file in something that does. In the meantime switch to english so you can login.
http://en.wikipedia.org/wiki/Byte_Order_Mark
-
Thanks both for your replys. Anyway, the problem it's unsolved and it's even stranger. I already login thanks to Nibbler sugestion but I want to make this plugin work for spanish talkers.
I tried some things without luck:
- I change the word "Confirmación" to "Confirmacion" in order not to use " ´ ". And the same to "código" to "codigo".
- That didn't work, so I deleted the file "spanish.php" and duplicate (without editing anything) the "english.php" and renamed it to "spanish.php". But, it didn't work either. :-\
If you have any other suggestion I will keep trying to make this plugin useful for spanish talker. If not, thank both of you so much and I will unistall this plugin due to my main problem (login) it's solved. If I could choose, I do want to use this great plugin.
-
The problem is with the main gallery spanish.php not the plugin's spanish.php. Upload a clean copy of that.
-
:-[ The only thing I did with that file is check if there was an empty line. I din't try with a fresh copy of it. I already upload a clean copy and it's working perfect.
Thank you very much for the support! :D
Cheers,
-
The BOM is not visible using notepad.exe. You need an editor that is capable to find the BOM. Please read up previous discussions about the BOM - I suggested a tool there as well to get rid of all BOMs at once and what editors are capable to handle utf-8 encoded files without messing with the BOM.
-
Thanks for the advise. I will keep in mind. I have already my gallery working perfect.
Regards,
-
Hi.
Would it be possible to modify this plugin so that it only affects the comments and e-cards? I'm the only only one using my gallery so there are no registrations and there's no reason for me to enter the captcha code on the login page.
I had a look at codebase.php but I'm not sure what to edit.
Thanks,
Meek.
-
Is there any way to create an auto-login link ( A link to send in an email to log into a specific account - with access to a specific album) with captcha enabled? This would be easier than sending the link and telling the person to login with a specific username and password. This way they would click the link and be automatically logged in.
-
Hi.
Would it be possible to modify this plugin so that it only affects the comments and e-cards? I'm the only only one using my gallery so there are no registrations and there's no reason for me to enter the captcha code on the login page.
I had a look at codebase.php but I'm not sure what to edit.
Thanks,
Meek.
I got it working by uncommenting case 'login.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == '') {
$exper = '(<input type="password".*</td>)';
if (preg_match($exper, $html)) {
$newcpch = '<!-- CAPTCH PLUGIN 3 --><input type="password" class="textinput" name="password" style="width: 100%" tabindex="2" /></td></tr><tr><td class="tableb">' . $lang_plugin_captcha_conf . '</td><td class="tableb" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="20" class="textinput" style="width=50%" tabindex="3"><img src="captcha.php" align="middle"></td>';
$html = preg_replace($exper, $newcpch, $html);
}
}
break;
and case 'login.php':
$valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == '') {
if (isset($_POST['submitted']) AND !Validate($_POST['confirmCode'])) {
load_template();
pageheader($lang_error, "<META http-equiv=\"refresh\" content=\"3;url=login.php\">");
msg_box($lang_error, "$lang_plugin_captcha_error", $lang_continue, 'login.php');
pagefooter();
exit;
}
}
break;
in codebase.php
-
I have Captcha enabled for both registration and comments but I'm still getting a lot of spam. Is there anything I can do to stop it? :(
-
You might want to try Akismet as well. Not related to this thread though, therefor no details here.
-
Thanks Joachim, I will give it a try.
-
Hi all :)
First of all thank you for the Captcha! It helped a lot.
But I have a question and hope that someone can help me:
I was changing server with my coppermine foto gallery and was using CAPTCHA 3.0 without any problems before. Now with the new server (I took all data from the old one) the anti spam code cannot be seen. That means the field for typing in the antispam code is there but not the visible code itself.
Does anyone know this problem and can give me a hint what I could check? Thanks.
-
Check the new server meets the minimum requirements for the plugin. Post a link to your gallery.
-
Thanks.
Here is the link:
http://tsdiskstation.dyndns.org/fotogalerie/login.php?referer=index.php (http://tsdiskstation.dyndns.org/fotogalerie/login.php?referer=index.php)
I start it up new at the moment... ;)
-
Are there any known bugs with this system and AOL Browser? I have a user that has used the AOL browser and when they type the captcha in it says its incorrect every time. If they use another browser it works fine.
-
None of the devs and supporters here is using the AOL browser (whatever flavor they use these days). If the AOL browser plays by the rules, there should be no issues with this plugin imo, as it doesn't use proprietary browser hacks.
-
I wouldnt think any self respecting dev would use AOL Browser! I'll just make a note in my site's FAQ that it's been known to cause problems and encourage users to browse with something more mainstream. Thanks for the response.
-
Okay experts :)
I am in dire need of help. I'm a little fish swimming in a huge pond. I know very little about Coppermine and even less about PHP.
I have read through the majority of this thread trying to fix the issue on my own but, admittedly, I am now completely confused and lost.
I am hoping someone will extend some kindness and tell me what I'm missing to get the Captcha to appear upon registration. I've tried to turn on debug but even then I'm not seeing what it seems I should be seeing to decipher the problem myself.
All I want is to limit the ability of people to access my photo albums ... nothing super fancy.
Could someone help me out?
Thanks,
Kim
-
Having trouble implementing this to my gallery.
I did exactly as explained below. What am i doing wrong?
1. Download the file captcha_3_0.zip to my desktop
2. Unzipped it and copied the folder "captcha" via. ftp (filezilla client) to the plugins folder inside my coppermine gallery root.
3. Then installed it via plugin manager
4. Copied the file captcha.php to my coppermine gallery root.
5. Logged out to check the captcha image when trying to login. The captcha-image is not displayed. Not in IE or FF.
6. I tried going directly to the URL of the captcha.php file to see if it was displaying an image correctly there.
6a. In Firefox it gave the following error "Fatal error: Call to undefined function imageftbbox() in /home/tobiasau/tobiasaugust.no/html/bilder/plugins/captcha/include/captcha.class.php on line 119"
6b. In IE it was just a blank page.
I tried searching the forum for the errormessage aswell as "imageftbbox()" but did not find any feedback that actually helped me.
PHPinfo says that i have the following versions:
* PHP Version 5.2.6
* GD Version ...bundled (2.0.34 compatible)
Hoping that somebody recognizes the errormessage that i've been trying to figure out for the last two hours googling and searcing this forum. If this is something that has been Solved earlier, i apologize in advance, i hate being the guy that askes the same question as 50 others who haven't read the documentation properly :) I did try to search the forum without any luck, so im taking a shot on this reply :)
-
Forgot to mention that i have also tried uninstalling the plugin, removing the files from the server, redownloading from this thread, extracting, uploading via ftp, and installing again, but same happens.
Shout if you need an admin user to check it out, and ill supply it. :)
-
Minimum requirement for the plugin is:
- GD 2.x (2.0.28 or later is recommended) with Freetype support
You don't have freetype support so the plugin doesn't work. Talk to your webhost to get it enabled.
-
italian translation added (just a few words... but some love reading his native language!) :)
The Russian added translation (only a few words..., but there is some love, reading his native language!)
-
Because of Captcha the pattern (theme) of gallery parts. It basically concerns where "Input" (enter a name of the user and the password for an input) in gallery and "Registration"
-
I can`t see the image, always it seems broken in IE and nothing in firefox!!
I reinstall it twice and nothign, I make a fresh install of copermine and install /configure /etc and nothing.
I have all necesary GD2 with freetype support
There is the output of the debug php for the admin account:
USER:
------------------
Array
(
[ID] => 1fb0dba66de749d403ba7740817e7c74
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => rashid
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
[1] => select * from cpg_plugins order by priority asc; (0s)
[2] => delete from `pzdotcom_copp1`.cpg_sessions where time<1227300592 and remember=0; (0s)
[3] => delete from `pzdotcom_copp1`.cpg_sessions where time<1226094592; (0s)
[4] => select user_id from `pzdotcom_copp1`.cpg_sessions where session_id = '9611e16e1f373e6d64c1653a053df19a' (0s)
[5] => select user_id as id, user_password as password from `pzdotcom_copp1`.cpg_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `pzdotcom_copp1`.cpg_users AS u INNER JOIN `pzdotcom_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `pzdotcom_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg_usergroups WHERE group_id= 1 (0s)
[10] => update `pzdotcom_copp1`.cpg_sessions set time='1227304192' where session_id = '9611e16e1f373e6d64c1653a053df19a' (0s)
[11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
[12] => DELETE FROM cpg_banned WHERE expiry < '2008-11-21 21:49:52' (0s)
[13] => SELECT * FROM cpg_banned WHERE (ip_addr='201.237.139.74' OR ip_addr='201.237.139.74' OR user_id=1) AND brute_force=0 (0s)
[14] => UPDATE cpg_config SET value = '0' WHERE name = 'debug_mode' (0s)
[15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[gallery_name] => copermine
[gallery_description] => cope
[gallery_admin_email] => info@gallerywebs.com
[ecards_more_pic_target] => http://perezzeledon.com/copermine/
[home_target] => index.php
[enable_zipdownload] => 1
[time_offset] => 0
[enable_help] => 2
[clickable_keyword_search] => 1
[enable_plugins] => 1
[ban_private_ip] => 0
[browse_batch_add] => 1
[lang] => english
[language_fallback] => 1
[charset] => utf-8
[language_list] => 0
[language_flags] => 0
[language_reset] => 1
[theme] => classic
[theme_list] => 0
[theme_reset] => 1
[display_faq] => 0
[custom_lnk_name] =>
[custom_lnk_url] =>
[show_bbcode_help] => 1
[vanity_block] => 1
[custom_header_path] =>
[custom_footer_path] =>
[main_table_width] => 100%
[subcat_level] => 2
[albums_per_page] => 12
[album_list_cols] => 2
[alb_list_thumb_size] => 50
[main_page_layout] => breadcrumb/catlist/alblist/random,2/lastup,2
[first_level] => 1
[categories_alpha_sort] => 0
[link_pic_count] => 0
[thumbcols] => 4
[thumbrows] => 3
[max_tabs] => 12
[caption_in_thumbview] => 1
[views_in_thumbview] => 1
[display_comment_count] => 0
[display_uploader] => 0
[display_filename] => 0
[default_sort_order] => na
[min_votes_for_rating] => 1
[picture_table_width] => 600
[display_pic_info] => 0
[max_img_desc_length] => 512
[max_com_wlength] => 38
[display_film_strip] => 1
[display_film_strip_filename] => 0
[max_film_strip_items] => 5
[slideshow_interval] => 5000
[filter_bad_words] => 0
[enable_smilies] => 1
[disable_comment_flood_protect] => 0
[max_com_lines] => 10
[max_com_size] => 512
[email_comment_notification] => 0
[comments_sort_descending] => 0
[comments_anon_pfx] => Guest_
[jpeg_qual] => 80
[thumb_width] => 100
[thumb_use] => any
[make_intermediate] => 1
[picture_width] => 400
[max_upl_size] => 1024
[max_upl_width_height] => 2048
[auto_resize] => 0
[allow_private_albums] => 1
[show_private] => 0
[forbiden_fname_char] => $/\\:*?"'<>|` &
[allowed_img_types] => ALL
[allowed_mov_types] => ALL
[media_autostart] => 1
[allowed_snd_types] => mp3/midi/mid/wma/wav/ogg
[allowed_doc_types] => doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb
[thumb_method] => im
[impath] => /usr/bin/
[im_options] => -antialias
[read_exif_data] => 0
[read_iptc_data] => 0
[fullpath] => albums/
[userpics] => userpics/
[normal_pfx] => normal_
[thumb_pfx] => thumb_
[default_dir_mode] => 0777
[default_file_mode] => 0666
[allow_user_registration] => 0
[allow_unlogged_access] => 1
[reg_requires_valid_email] => 1
[reg_notify_admin_email] => 0
[admin_activation] => 0
[allow_duplicate_emails_addr] => 0
[upl_notify_admin_email] => 0
[allow_memberlist] => 0
[allow_email_change] => 0
[users_can_edit_pics] => 0
[login_threshold] => 5
[login_expiry] => 10
[report_post] => 0
[user_profile1_name] => Location
[user_profile2_name] => Interests
[user_profile3_name] => Website
[user_profile4_name] => Occupation
[user_profile5_name] =>
[user_profile6_name] => Biography
[user_field1_name] =>
[user_field2_name] =>
[user_field3_name] =>
[user_field4_name] =>
[cookie_name] => coppermine
[cookie_path] => /
[smtp_host] =>
[smtp_username] => **********
[smtp_password] => ******
[log_mode] => 0
[log_ecards] => 1
[vote_details] => 0
[hit_details] => 0
[debug_mode] => 0
[debug_notice] => 0
[offline] => 0
[update_config] => Save new configuration
)
==========================
VERSION INFO :
------------------
PHP version: 4.4.8 - OK
------------------
mySQL version: 4.1.22-standard
------------------
Coppermine version: 1.4.19(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support: 1
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | proc_open | proc_open
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 8M | 8M
==========================
Page generated in 0.08 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;
Edit:Added code tag around debug info.
-
This is http://perezzeledon.com/copermine/captcha.php output: ::)
Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20
Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20
Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20
Fatal error: main() [function.require]: Failed opening required 'include/captcha.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pzdotcom/public_html/copermine/captcha.php on line 20
Place all files where they are supposed to be placed...
-
You are using 1.7.1 version which has a bug and outdated
Please try 3.0 and let us know if you have any problem
-
You are using 1.7.1 version which has a bug and outdated
Please try 3.0 and let us know if you have any problem
And what there about addition of Russian and displacement schedules after installation Captcha?
-
Thank you for Russian translation , I'll put it to next package
and about your placement issue , it could be your custom theme problem , I don't see any problem with classic theme on my test bed
-
Great script seems to be working for me on 1.4.9, not getting any spam registrations any more. I did have a few questions though.
1. Can I have this set just for the registration page. (I did see it can be adjusted for groups) If not can you incorporate this for the next release
2. How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go. I've tried to search the forums for it but can't seem to figure it out.
Thank you in advance for any and all responses.
-
Great script seems to be working for me on 1.4.9,
Yikes! That version is ancient! Upgrade!
1. Can I have this set just for the registration page. (I did see it can be adjusted for groups) If not can you incorporate this for the next release
Will be a feature in cpg1.5.x
2. How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go.
Start a thread of your own, describing your question (and only that one question, as we have a "one question per thread" policy that you agreed to when signing up) together with a link to your gallery.
-
1. Can I have this set just for the registration page. (I did see it can be adjusted for groups) If not can you incorporate this for the next release
Yes you can set it just for registration page
Edit {gallery-root}/plugins/captcha/codebase.php
around line #173 you'll see $CAPTCHA_DISABLE array , there you can set who should not see the captcha in which page , as you want captcha to show only on registration page you should change that array to this:
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered,Guests',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered,Guests',
'report' => 'Administrators,Registered,Guests',
'ecard' => 'Administrators,Registered,Guests',
);
-
Joachim, When i said it worked for me on 1.4.9 I meant that I was using 1.4.19 of coppermine, which is hte latest and greatest.
Samie, thank you this worked for me.
Also when I was talking about "How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go. I've tried to search the forums for it but can't seem to figure it out. " I meant that of the image Capthcya places on the confirm line, we should be able to adjust this now. I don't think we have to wait for a coppermine update for this ? I mean i see other websites that are able to change the width depending on how wide they their website. I just can't seem how to fix it. I'll do some more looking into the files. I apologize for my original post and will be more specific the next time. Thank you all for the reponses.
-
Ok guys, I looked further into the code here, it seems that when they wrote this they wanted to seperate the actualy input field and the capthca image into two sep fields in the table. But they either didn't put a markup for the captcha image code into the second col for that field or they just forgot to change the colspan to 1. Either way if you guys want to fix it if you haven't already figured it out do the following.
Edit {gallery-root}/plugins/captcha/codebase.php
At or about line # 86
Find the following Code
<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="2">
Change the colspan to 1
<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="1">
I hope this helps, I know it helped me :)
-Salvo
-
Hi All,
I've read through the posts on this topic and tried out quite a few suggestions but nothing worked for me. I get broken image with cross, no matter what I try.
It can be seen at http://lurrenzinc.com/photos/login.php?referer=index.php
When I tried to look up http://lurrenzinc.com/photos/plugins/captcha/captcha.php
I got this message;
Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26
Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26
Fatal error: require() [function.require]: Failed opening required 'plugins/captcha/lang/english.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26
I hope to get help soon.
Thanks.
-
Check if you have the requirement:
GD 2.x (2.0.28 or later is recommended) with Freetype support
ignore thoese warnings and fatal error , you shouldn't run captcha.php from plugins directory , you need to run it from gallery root
http://lurrenzinc.com/photos/captcha.php
do not forget to enable debug for us.
-
Hi Sami,
Thanks for a quick reply. I've checked and my host met all the requirements. But please how can I run it from from gallery root, anywhere I can get the instructions?
-
When I say run it from gallery root I mean this:
http://lurrenzinc.com/photos/captcha.php
captcha.php is meant to run/call from gallery root and you shouldn't call it from plugin directory .
there is not any instruction it should works if you meet the requirement.
I see you uninstall the plugin , this way we can't help you
please install it and also enable debug and then let us know to check your gallery
-
I have reinstalled capcha a enabled debug.
Thanks
-
Please disable rcmenu plugin,
that plugin is not compatible with captcha and it will break it.
-
I have disabled rcmenu
-
login as an administrator and post the debug info you get , please make sure to remove any password before post it
-
Here is the debug message
------------------------
USER:
------------------
Array
(
[ID] => da7e8cca485fad1f849efae94a3a52c8
[am] => 1
[liv] => Array
(
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => admin
[groups] => Array
(
[0] => 1
)
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[can_post_comments] => 1
[can_upload_pictures] => 1
[can_create_albums] => 1
[has_admin_access] => 1
[pub_upl_need_approval] => 0
[priv_upl_need_approval] => 0
[group_name] => Administrators
[upload_form_config] => 3
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => delete from `lurrenzi_photos`.cpg14x_sessions where time<1230011167 and remember=0; (0s)
[3] => delete from `lurrenzi_photos`.cpg14x_sessions where time<1228805167; (0s)
[4] => select user_id from `lurrenzi_photos`.cpg14x_sessions where session_id = '3df1136fe38ab634820c1ef68049e176' (0s)
[5] => select user_id as id, user_password as password from `lurrenzi_photos`.cpg14x_users where user_id=1 (0s)
[6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `lurrenzi_photos`.cpg14x_users AS u INNER JOIN `lurrenzi_photos`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[7] => SELECT user_group_list FROM `lurrenzi_photos`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (1) (0s)
[9] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 1 (0s)
[10] => update `lurrenzi_photos`.cpg14x_sessions set time='1230014767' where session_id = '3df1136fe38ab634820c1ef68049e176' (0s)
[11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
[12] => DELETE FROM cpg14x_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0s)
[13] => REPLACE INTO cpg14x_mod_online (user_id, user_name, user_ip, last_action) VALUES ('1', 'admin', '83.253.227.182', NOW()) (0s)
[14] => DELETE FROM cpg14x_banned WHERE expiry < '2008-12-23 06:46:07' (0s)
[15] => SELECT * FROM cpg14x_banned WHERE (ip_addr='83.253.227.182' OR ip_addr='83.253.227.182' OR user_id=1) AND brute_force=0 (0s)
[16] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '' ORDER BY pos (0s)
[17] => SELECT aid FROM cpg14x_albums WHERE category = 3 (0s)
[18] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0.001s)
[19] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '3' (0s)
[20] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,12 (0.001s)
[21] => SELECT a.aid, count( p.pid ) AS pic_count, max( p.pid ) AS last_pid, max( p.ctime ) AS last_upload, a.keyword FROM cpg14x_albums AS a LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (266, 267, 268, 269, 270, 271, 272, 273, 274, 276, 277, 278)GROUP BY a.aid (0.001s)
[22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='413' (0s)
[23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='851' (0.018s)
[24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='486' (0s)
[25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='407' (0s)
[26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='480' (0s)
[27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1410' (0s)
[28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='500' (0s)
[29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='476' (0s)
[30] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='425' (0s)
[31] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='445' (0s)
[32] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='494' (0s)
[33] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '3' ORDER BY pos (0s)
[34] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
[35] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0.001s)
[36] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1' ORDER BY pos (0s)
[37] => SELECT aid FROM cpg14x_albums WHERE category = 5 (0s)
[38] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 5 (0s)
[39] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '5' (0s)
[40] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=5 ORDER BY a.pos LIMIT 0,1 (0s)
[41] => SELECT a.aid, count( p.pid ) AS pic_count, max( p.pid ) AS last_pid, max( p.ctime ) AS last_upload, a.keyword FROM cpg14x_albums AS a LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (292)GROUP BY a.aid (0.001s)
[42] => SELECT count(pid) AS link_pic_count
FROM cpg14x_pictures
WHERE aid != 292 AND
keywords LIKE '%Public album%' AND
approved = 'YES' (0.002s)
[43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1752' (0s)
[44] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '5' ORDER BY pos (0s)
[45] => SELECT aid FROM cpg14x_albums WHERE category = 2 (0s)
[46] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
[47] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '2' (0s)
[48] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,2 (0s)
[49] => SELECT a.aid, count( p.pid ) AS pic_count, max( p.pid ) AS last_pid, max( p.ctime ) AS last_upload, a.keyword FROM cpg14x_albums AS a LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (1, 374)GROUP BY a.aid (0.001s)
[50] => SELECT count(pid) AS link_pic_count
FROM cpg14x_pictures
WHERE aid != 1 AND
keywords LIKE '%Nigeria, nigerian photos, images of lagos, abuja,%' AND
approved = 'YES' (0.002s)
[51] => SELECT count(pid) AS link_pic_count
FROM cpg14x_pictures
WHERE aid != 374 AND
keywords LIKE '%Houses%' AND
approved = 'YES' (0.002s)
[52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1471' (0s)
[53] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1245' (0.001s)
[54] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '2' ORDER BY pos (0s)
[55] => SELECT aid FROM cpg14x_albums WHERE category = 6 (0s)
[56] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
[57] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '6' (0s)
[58] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,1 (0s)
[59] => SELECT a.aid, count( p.pid ) AS pic_count, max( p.pid ) AS last_pid, max( p.ctime ) AS last_upload, a.keyword FROM cpg14x_albums AS a LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved = 'YES' WHERE a.aid IN (398)GROUP BY a.aid (0s)
[60] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1594' (0s)
[61] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '6' ORDER BY pos (0s)
[62] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
[63] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
[64] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0.001s)
[65] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0.002s)
[66] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
[67] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0.002s)
[68] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
[69] => SELECT user_id,user_lastvisit FROM cpg14x_users WHERE user_lastvisit LIKE '2008-12-23%' (0.001s)
[70] => SELECT count(*) FROM `lurrenzi_photos`.cpg14x_users WHERE 1 (0s)
[71] => SELECT COUNT(*) FROM cpg14x_mod_online (0s)
[72] => SELECT COUNT(*) FROM cpg14x_mod_online WHERE user_id <> 0 (0s)
[73] => SELECT user_id AS user_id, user_name AS user_name FROM `lurrenzi_photos`.cpg14x_users ORDER BY user_id DESC LIMIT 1 (0s)
[74] => SELECT user_id, user_name FROM cpg14x_mod_online WHERE user_id <> 0 (0s)
[75] => SELECT * FROM cpg1411_plugin_news WHERE active=1 ORDER BY date DESC (0.001s)
[76] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '0' (0s)
[77] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 4 (0.021s)
[78] => SELECT count(*) from cpg14x_comments where pid=1410 and msg_id!=0 (0.001s)
[79] => SELECT count(*) from cpg14x_comments where pid=288 and msg_id!=0 (0s)
[80] => SELECT count(*) from cpg14x_comments where pid=1746 and msg_id!=0 (0s)
[81] => SELECT count(*) from cpg14x_comments where pid=503 and msg_id!=0 (0s)
[82] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' AND hits > 0 (0.002s)
[83] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES'AND hits > 0 ORDER BY hits DESC, filename LIMIT 0 ,4 (0.007s)
[84] => SELECT count(*) from cpg14x_comments where pid=1582 and msg_id!=0 (0s)
[85] => SELECT count(*) from cpg14x_comments where pid=66 and msg_id!=0 (0s)
[86] => SELECT count(*) from cpg14x_comments where pid=560 and msg_id!=0 (0s)
[87] => SELECT count(*) from cpg14x_comments where pid=73 and msg_id!=0 (0s)
[88] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' and hits > 0 (0.002s)
[89] => SELECT *, UNIX_TIMESTAMP(mtime) as mtime FROM cpg14x_pictures WHERE approved = 'YES' and hits > 0 ORDER BY mtime DESC LIMIT 0 ,4 (0.008s)
[90] => SELECT count(*) from cpg14x_comments where pid=66 and msg_id!=0 (0s)
[91] => SELECT count(*) from cpg14x_comments where pid=560 and msg_id!=0 (0s)
[92] => SELECT count(*) from cpg14x_comments where pid=1579 and msg_id!=0 (0s)
[93] => SELECT count(*) from cpg14x_comments where pid=1448 and msg_id!=0 (0s)
[94] => SELECT count(cpg14x_albums.aid) FROM cpg14x_pictures,cpg14x_albums WHERE cpg14x_pictures.aid = cpg14x_albums.aid AND approved = 'YES' GROUP BY cpg14x_pictures.aid (0.001s)
[95] => SELECT *,cpg14x_albums.title AS title,cpg14x_albums.aid AS aid FROM cpg14x_pictures,cpg14x_albums WHERE cpg14x_pictures.aid = cpg14x_albums.aid AND approved = 'YES' GROUP BY cpg14x_pictures.aid ORDER BY cpg14x_pictures.ctime DESC LIMIT 0 ,4 (0.013s)
[96] => SELECT count(*) from cpg14x_comments where pid=1753 and msg_id!=0 (0s)
[97] => SELECT count(*) from cpg14x_comments where pid=1734 and msg_id!=0 (0s)
[98] => SELECT count(*) from cpg14x_comments where pid=1597 and msg_id!=0 (0s)
[99] => SELECT count(*) from cpg14x_comments where pid=1579 and msg_id!=0 (0s)
[100] => SELECT COUNT(*) from cpg14x_pictures WHERE approved = 'YES' (0.001s)
[101] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,4 (0s)
[102] => SELECT count(*) from cpg14x_comments where pid=1754 and msg_id!=0 (0s)
[103] => SELECT count(*) from cpg14x_comments where pid=1753 and msg_id!=0 (0s)
[104] => SELECT count(*) from cpg14x_comments where pid=1752 and msg_id!=0 (0s)
[105] => SELECT count(*) from cpg14x_comments where pid=1751 and msg_id!=0 (0s)
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.6 - OK
------------------
mySQL version: 5.0.67-community
------------------
Coppermine version: 1.4.19(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:
==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.67
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 512000 | 512000
max_input_time | 128000 | 128000
upload_max_filesize | 500M | 500M
post_max_size | 500M | 500M
==========================
Page generated in 0.152 seconds - 106 queries in 0.094 seconds - Album set : ; Meta set: ;
Edited By Sami , code tag added around debug info
-
I see there are other plugin installed on your gallery , would you please temporary disable them to see if captcha woking
-
When I disabled all the plugins, capcha stared working
But some of the plugins are really important. What should I do?
-
First of all you need to find which plugin is incompatible with Captcha to do that please enable each plugin one by one and check captcha if it's working or not
When you find the plugin you need to ask plugin maker/writer for support , also I'll check if I can solve your issue from captcha side too
-
Thanks very much. The problem is with the Right Click Menu, one more thing, how can I mage the image texts clearer. I tried to open acidic.ttf and hurryup.ttf on notepad but it was very messy.
-
You disable Right Click Menu (rcmenu) before please check other plugin too there should be one more incompatible plugin
Those are True type fonts you can't edit them with notepad ! You need font editor.
You shouldn't make it clearer at all this will make captcha useless !
-
OK, table created successfully!
The capcha.php still return the same text: "image".
hmnn I am really wondering, why V2.0 and the Contact plugin do work.. and V3.0 not...
site: http://rosebyrne.org/gallery/
I'm having the same problem. I've tried un-installing, reinstalling, deleting the tables manually and adding them manually. Everything is uploaded in the correct spot. I have no idea what is wrong. I just need the captcha for initial registrations and it's showing up as the little red X.
GD Version: bundled (2.0.34 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
Thanks for your help!
-
- Enable debug for everyone
- Disable ALL other plugins
- I need to see a page with captcha please enable it for login page or give me a test (none admin) account and enable captcha for comment
-
username: sami
password: dzsami03
Debug has been enabled for all users, captcha is enabled, the other plugins are uninstalled.
-
- I need to see a page with captcha please enable it for login page or give me a test (none admin) account and enable captcha for comment
-
lol well it was enabled for everything else except the log-in page. :D
It's disabled now, my apologies. ;)
Thanks
-
Hi Sami,
I just want to tell you that my problem was completely solved, the only plugin disturbing the capcha was the right click menu as you correctly predicted. Thanks very much and happy Christmas.
-
@cariel:
check {gallery-root}/themes/redrose/theme.php for empty lines, there shouldn't be a empty line before <?php (very first of file) and after ?> (end of file)
also if you change any language file ({gallery-root}/plugins/captcha/lang) please check it for empty lines before <?php and after ?>
-
YAY! ;D :o Thanks, Sami! You are amazing!
Happy Christmas and New Years! =D
-
To save me going through 35 pages; How do you add a validation on the registration screen (rather than login)? This is the only screen I want to add the image on, as I get a number of user creation attempts by what must be bots.
-
If you just go back 1 page back you'll see that I explained this to someone else, is this that hard ?
okay here you go :
http://forum.coppermine-gallery.net/index.php/topic,36319.msg278089.html#msg278089
-
Sami: Thanks, but the array already has this:
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
'register' => 'Administrators,Registered',
'comment' => 'Administrators,Registered',
'report' => 'Administrators',
'ecard' => 'Administrators',
);
(default array)
I can see the confirmation image on the login screen, but not on the registration screen (when making a new account as Guest), as I would expect.
-
check this thread:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
-
check this thread:
http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
Thanks Sami, it now works on the registration page.
-
I have a small (but annoying) problem with the captcha-plugin on my cpg-site.
Sometimes it´s only showing 4 characters instead of 5, and therefor the user can´t login.
How can that be?
Link: www.stcovers.org
-
Did you change any setting?
-
Did you change any setting?
No, nothing.
That´s why it´s so strange.
I´m really greatfull for all help i can get with this.
-
No, nothing.
That´s why it´s so strange.
I´m really greatfull for all help i can get with this.
Does anyone have the same problem?
How can it be that 4 characters is showing fine, but the fifth isn´t (sometimes)?
-
Sorry I can't help you , it's really weird problem
Try this:
- Uninstall plugin
- Delete captcha folder from {gallery-root}/plugins/
- Re-upload the plugin and re-install it
-
I'm in LOVE with this plugin - The last 4 days I've gotten 8 new registrations by lyjdan280@chongsoft.com and goldlike1000@gmail.com - This lil gem will fix their wagon :)
Thank you for sharing such a useful tool!!
- Jason
-
Hi,
You made a great plugin but I have one problem and I can't fix it. When my basic language file (gallery_root/lang) is set to utf-8 characters encoding then I don't see the confirmation code, but in other characters encoding is active. Let me show you the example:
First for utf-8 encoding:
http://www.wpgallery.com/gallery/displayimage.php?album=lastup&cat=0&pos=0&theme=srpski&lang=srpski - this is where is not working (look at the comments field, the captcha field (in serbian field 'potvrdi') is showing up but the picture don't
http://www.wpgallery.com/gallery/displayimage.php?album=lastup&cat=0&pos=0&theme=classic&lang=english - here is all ok
Is there a chance to fix this because to see special characters that serbian language uses you need to set it to utf-8
Thanks a lot in advance
Misha
-
Save the lang file with a different text editor. The one you are using is adding a BOM (http://en.wikipedia.org/wiki/Byte-order_mark) to the output. This is not related to the plugin but to your own modifications.
-
Thanks a lot... now it's ok
-
Hi there,
I also use the EnlargeIt plugin, and the Captcha disables this function, that is the standard view is back, did you also find this and perhaps have a working solution? If no solution I'll just do without it.
P.S. I also found out that another plugin Rightclick first disabled the view of the Captcha.
Thanks anyway
Cath
-
Capatcha image not showing heres the de-bug, there's a conflict with master template i believe as i uninstalled all plugins and tried everything, image doesnt show when mater template is installed..
USER:
------------------
Array
(
[ID] => 37ee57505bc87240fd21762a1414a692
[am] => 1
[lang] => english
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 0
[ufc_min] => 0
[has_admin_access] => 0
[group_name] => Anonymous
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => delete from `ashartph_coppermine`.cpg14x_sessions where time<1237628181 and remember=0; (0s)
[3] => delete from `ashartph_coppermine`.cpg14x_sessions where time<1236422181; (0s)
[4] => select user_id from `ashartph_coppermine`.cpg14x_sessions where session_id = 'a11eb0b913f3f5ef9f2fb58908b61885' (0s)
[5] => select user_id as id, user_password as password from `ashartph_coppermine`.cpg14x_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 3 (0s)
[8] => update `ashartph_coppermine`.cpg14x_sessions set time='1237631781' where session_id = 'a11eb0b913f3f5ef9f2fb58908b61885' (0s)
[9] => DELETE FROM cpg14x_banned WHERE expiry < '2009-03-21 20:36:21' (0s)
[10] => SELECT * FROM cpg14x_banned WHERE (ip_addr='202.90.48.138' OR ip_addr='192.168.8.26' OR user_id=0) AND brute_force=0 (0s)
[11] => SELECT aid FROM cpg14x_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
)
==========================
GET :
------------------
Array
(
[referer] => index.php
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.045 seconds - 12 queries in 0 seconds - Album set : ; Meta set: ;
can you see a fix anywhere?
-
Hi Sami, I am sorry for bothering you again... the captcha worked fine until I did gallery update to 1.4.21... now the problem is more specific. I see confirmation code on my computer in firefox and ie... and I try it on three other computers and it works fine... then, five of my friends can't see the code only in firefox... just to mention that I still see confirmation code and it's hard to me to see what is going on... I try everything that I read in this thread and doing it for a two days... some of my friends still can't see confirmation code and some of them can see... that's strange to me... do you know what it is?
thanks
-
Hi again, I think this will be interesting to you... this one solve the problem and only change I made is in template.html file (from cpg 1.4.21):
instead of this line on the top:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="us" lang="us" dir="{LANG_DIR}">
I added:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="{LANG_DIR}">
and now all my friends can see confirmation code and made comments. Hope this will help you in the future and thanks for the great plugin!
-
Initially this plugin worked fine, however in the last couple of weeks I have started getting spam registrations again, with user names very similar to those I got a few months ago, before I installed it..
I am not sure how they have got around the Captcha plugin, but it appears it is no longer stopping the spam bots registring on my album.
-
Could I get some quick help?
I've installed the plugin and have GD and Freetype installed, but when I load the comment page it hung on trying to load the captcha picture.
I'm not sure why this would happen.
Thanks for your help.
-
Could I get some quick help?
This is not a hotline.
As suggested countless times on this thread already, posting a link to your gallery might be a good idea. If your gallery is only accessible for registered users, it might be a clever idea to post a non-admin test user account as well.
If you want fast answers, you should post the information that supporters need. Hint: board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html) exist for particular reasons.
-
Thanks for your plugin, I've been using it on one of my Galleries for about 3 years and have rarely had any problems, Occasionaly I still get an intruder, it seems like a gmail address is always attached to it, perhaps this helps in finding a fix. None the less, I'm about to add it to a new gallery I'm creating for a friend's son who passed away. Best regards and thanks again.
-
Captcha helps against bots. It doesn't help against humans who drop spam messages. That's why you will still experience some spam after having applied captcha - the spam caused by human spammers. That doesn't mean that there is something wrong with captcha, nor is this related in any way to the email address they use.
-
Thanks Joachim, I wondered about that, I love this plugin and have never had any problems with it in particular. Seeing that you are one of the most knowledgable mods on the forums, would you know of any way to abate that particular problem (the human spammer element)?
Thanks again
-
No, not really. What could help is the akismet mod. However, this thread is not the correct place to talk about different, unrelated mods or plugins.
The problem will only improve in cpg1.5.x, where you will have comment approval. However, there's no scheduled release date for cpg1.5.x, nor should it be discussed in this thread. Back to topic please. If you want to lead a discussion about spam, start a thread of your own on the regular support board and not within this very announcement thread for a particular plugin.
-
Will do, thanks.
-
Hi!
What should I do to have a captcha only in the registration form?
Sorry if this question has already been.
-
did you read the Readme.txt file? and the annoucement post ?
Which version of this plugins ?
BTW it's not a brigth idea to send me PM if i don't tell you to do it. You posted here yesterday. You must be a bit patient, it's not a hotline here
-
Again sorry for my stupidity ;D
Yes i read Readme.txt and i know where i can change that, but dont work like I want. I dont want verification on login, but i have it.
All i need is verification in registration to block robots. Robot not register = no problems with it in future.
My version of Captcha is 3.0 and i have 2 additional groups Silver Premium and Gold Premium.
-
i have some problem to work with capcha
when me install capcha on my local it work but when install in my host capcha image not load.
like this: http://www.qopix.com/login.php?referer=index.php
please help me . :'( :'( :'(
-
The page you refered to is being reported as virus-infested (a drive-by download), so I crippled the link to it in your posting to make sure others don't get infected. Sanitize that site first as suggested in the thread "Yikes, I've been hacked! Now what? (http://forum.coppermine-gallery.net/index.php/topic,51927.0.html)".
http://www.qopix.com/captcha.php resturns an empty page, so you probably don't fullfill the minimum requirements, however that should be of no concern for you now that your site has made it to Google's malicious sites index. I'm attaching the screenshot for you that I get, although it probably doesn't mean much to you, as it is in the language my browser preferences are set to (using a similar mechanism we use for coppermine to detect the language preferences of a visitor).
Do not discuss this further within this thread, as your virus infection is not related to this plugin. If you need to discuss this in detail, start a thread of your own.
-
You can quickly respond to such simple questions but what about my question? You told me this is not hotline but i see you online almost everyday and problem is not resolved.
-
I'll tell you something else: it's up to my decision wether I want to give support or answer to a particular question or not. In your case, it just got less likely that I will be ready to look into your issues, taking into account your attitude. Now stop the meta discussion.
-
Thanks for the very useful plugin :)
Is there a way to change the settings to use an easier to read image generation script? Right now the letters are quite hard to make out. A basic and easy to read script would work just as well for my purposes.
-
Hi, i installed captcha, but itsn`t working. Please help me.
This is my phpinfo
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.7
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
This is debug info from login page when capctha enable
USER:
------------------
Array
(
[ID] => e13f0f2aee75bdb5e199dda2ede57413
[am] => 1
[lang] => russian
[liv] => Array
(
[0] => 512
[1] => 511
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
[0] => 3
)
[group_quota] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 0
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 0
[ufc_min] => 0
[has_admin_access] => 0
[group_name] => Anonymous
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
[0] => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => delete from `admin_foto`.cpg14x_sessions where time<1240782829 and remember=0; (0s)
[3] => delete from `admin_foto`.cpg14x_sessions where time<1239576829; (0s)
[4] => select user_id from `admin_foto`.cpg14x_sessions where session_id = '2fb8538aa79522b73461dcc1ef0cec2b' (0s)
[5] => select user_id as id, user_password as password from `admin_foto`.cpg14x_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 3 (0s)
[8] => update `admin_fotoXxx`.cpg14x_sessions set time='1240786429' where session_id = '2fb8538aa79522b73461dcc1ef0cec2b' (0s)
[9] => DELETE FROM cpg14x_banned WHERE expiry < '2009-04-27 01:53:49' (0s)
[10] => SELECT * FROM cpg14x_banned WHERE (ip_addr='62.148.xxx.xxx' OR ip_addr='62.148.158.189' OR user_id=0) AND brute_force=0 (0s)
)
==========================
GET :
------------------
Array
(
[referer] => index.php
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.155 seconds - 11 queries in 0 seconds - Album set : ; Meta set: ;
url http://kalugafoto.com/captcha.php (http://kalugafoto.com/captcha.php)
Coppermine Photo Gallery 1.4.21 (stable) with Stramm mod
Thanks in advance.
-
Well first of all I tried installing the mod version of this but I couldn't do it and asked for help but I got told to install a plugin and now I'm stuck on how to do that aswell. I have uploaded the captcha folder into the plugin folder and now I don't know what to do. It says use Plugin manager but I don't know what that is and theres nothing in my cpanel.
-
ive figured it now, in the plugin manager, which folder to i upload?
-
Captcha ver 3.0
As I see , we have more than 240 downloads (till now) from Captcha (Visual Confirmation) for adding comments (http://forum.coppermine-gallery.net/index.php?topic=29564.0) mod by Abbas Ali , yes it's a great mod ;)
(IMO it should goes to core)
So here is the mod as a plugin ... Enjoy
Added language:
===============
- Bulgarian
- Russian
-
Hi i removed the plugin Contact v1.3 and now it`s working good.
-
i have some problem with capcha
capcha.php not load in my host
please help me
my url: http://www.qopix.com/login.php
-
The page showed about 10 errors in my Firefox Error Console.
You might want to fix some of those errors as a start.
-
what is that
can you help me
how i can fix it
-
Firefox has a nice tool that can help to diagnose problems with a web page. It will
not show everything that might be wrong, however it is very helpful.
Running Firefox ver3.xx here.
- Tools Menu -> Error Console (will open in small window)
- "All" (shows all errors)
- Clear the console, then go to your home or login page
- the errors will show on the console and will guide you (sometimes) to where the error is
-
Hello
I have read all topics but I could not find any solutions.
I have installed captcha 3.0 ver. plugin but it does not work. I cannot see the token with the code.
Internet Explorer shows red cross ( means - picture not available), FireFox showed nothing :/
What is wrong? Do yuo know what should I do now ?
I have attached a a picture , to let you see the problem.
-
You should post a link to you gallery. That is a rule of this forum.
Also read this thread for troubleshooting (http://forum.coppermine-gallery.net/index.php/topic,36319.0.html)
-
I read all 37 pages. ::)
I believe I have all requirements except I'am not sure
GD Version bundled (2.0.34 compatible)
FreeType Version 2.2.1
And change everything that was suggested but the plugin still doesn't work.
Anyway by the middle of the thread I figure out that captcha v2 makes less troubles for integration in galeries.
So I tried and was succesfull. The plugin works good with many other plugins, also with Contact us mentioned for collision.
Thank you even is na older version it suits me completely.
I have one suggestion when you can't login, becuase of hidden captcha picture you don't need to delete captcha table in the base. It's enough to change the name (by ftp) of the captcha folder in plugins folders.
Here it is Macedonian language translation.
-
Hello
I have read all topics but I could not find any solutions.
I have installed captcha 3.0 ver. plugin on my gallery http://www.foto-wpadka.pl [Edit GauGau] Warning: link not safe for work! [/Edit], but it does not work. I cannot see the token with the code.
Internet Explorer shows red cross ( means - picture not available), FireFox showed nothing :/
What is wrong? Do yuo know what should I do now ?
I have attached a a picture , to let you see the problem.
-
in the plugin manager, which folder to i upload?
-
Hello
I have read all topics but I could not find any solutions.
I have installed captcha 3.0 ver. plugin on my gallery http://www.foto-wpadka.pl , but it does not work. I cannot see the token with the code.
Internet Explorer shows red cross ( means - picture not available), FireFox showed nothing :/
When I type directly path http://www.foto-wpadka.pl/plugins/capgtcha/captcha.php, I've got following errors:
Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/nidhog/public_html/plugins/capgtcha/include/init.inc.php on line 26
Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/nidhog/public_html/plugins/capgtcha/include/init.inc.php on line 26
Fatal error: require() [function.require]: Failed opening required 'plugins/captcha/lang/english.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nidhog/public_html/plugins/capgtcha/include/init.inc.php on line 26
What is wrong? Do yuo know what should I do now ?
I have attached a a picture , to let you see the problem.
-
jolly,
Please upgrade your coppermine install. You are currently using 1.4.19 whilst the mose recent version is 1.4.22.
If you are still experiencing the same problem once you have upgraded please come back.
Until you upgrade we cannot provide further assistance.
-
I did as you tole de, but no results..
The same errors as above, and confirmation code still no visible :(
-
Works as expected for me http://www.foto-wpadka.pl/captcha.php return an image for me (see attached screenshot). In the future, do as suggested per board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html) and post a warning with the link to your site - I edited your initial posting accordingly.
-
Yes it's work great now !! Thank you for your support. Upgrade to 1.4.22 solved this problem !
But now, after upgrading, my gallery does not send registration confirm. I did not change any settings, nothing. :/
Any ideas guys ?
-
Yes it's work great now !! Thank you for your support. Upgrade to 1.4.22 solved this problem !
But now, after upgrading, my gallery does not send registration confirm. I did not change any settings, nothing. :/
Any ideas guys ?
I swap the registration.php files. It is the old one again (1.4.19) and it works !
Thanks
-
There was a bugfix in that file in revision 5142, so I don't think it's a bright idea to go back, see http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.4.x/register.php?view=log and http://forum.coppermine-gallery.net/index.php/topic,51310.0.html
However, I can't see how this could have helped, as others don't have issues with the most recent version of that file.
-
can anyone answer my question? im not sure which folder i upload to the plugin manager, can anyone tell me?
-
CPG 1.4.22 + Stramm Mod unfortunately site is on localhost :(
Captcha 3.0
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.1.9
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
-
I'm not having any luck with this plugin. I've started from the beginning.
I've copied the captcha folder to the plugins folder, used the plugin manager to install it and copied the captcha.php to gallery root and still nothing. I've seen that it says to edit codebase.php which at the moment looks like the below code:
<?php
/*************************
Coppermine Photo Gallery
************************
Copyright (c) 2003-2006 Coppermine Dev Team
v1.1 originally written by Gregory DEMAR
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
********************************************
Coppermine version: 1.4.12
CAPTCHA Plugin
Based on Mod by Abbas ali(http://coppermine-gallery.net/forum/index.php?topic=29564.0)
Plugin Writen by bmossavari at gmail dot com
**********************************************/
if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
// Add a filter for the gallery header
$thisplugin->add_filter('page_html','captcha_main');
// Add actions
$thisplugin->add_action('page_start','captcha_page_start');
// captcha function to modify gallery header html
function captcha_main($html) {
global $lang_display_comments, $lang_register_php, $lang_plugin_captcha_conf;
if(!USER_ID) { // Remove this line if you want Captcha display to all
$exper='(<input type="submit" class="comment_button" name="submit" value="'.$lang_display_comments['OK'].'" />)';
if(preg_match($exper,$html)){
if(USER_ID) {
$newcpch = '<!-- CAPTCH PLUGIN --><input type="submit" class="comment_button" name="submit" id="submit" value="'.$lang_display_comments['OK'].'" /></td></tr><tr><td class="tableb_compact" colspan="2">'.$lang_plugin_captcha_conf.'</td><td class="tableb_compact" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"><img src="./plugins/captcha/captcha.php" align="middle">';
} else {
$newcpch = '<!-- CAPTCH PLUGIN --><input type="submit" class="comment_button" name="submit" id="submit" value="'.$lang_display_comments['OK'].'" /></td></tr><tr><td class="tableb_compact" >'.$lang_plugin_captcha_conf.'</td><td class="tableb_compact" ><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"><td class="tableb_compact"><img src="./plugins/captcha/captcha.php" align="middle"></td><td class="tableb_compact" > </td><td class="tableb_compact" > </td>';
}
$html = preg_replace($exper,$newcpch,$html);
}
}// Remove this line if you want Captcha display to all
$exper='(<td colspan="2" align="center" class="tablef">.*
.*<input type="submit" name="submit" value="'.$lang_register_php['submit'].'" class="button" />.*
.*</td>)';
if(preg_match($exper,$html)){
$newcpch = '<!-- CAPTCH PLUGIN --><input type="hidden" value="captcha_check" id="reg_captcha" name="reg_captcha" /><tr><td class="tableb" height="25" width="40%">'.$lang_plugin_captcha_conf.'</td><td class="tableb_compact" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput"><img src="./plugins/captcha/captcha.php" align="middle"></tr><tr><td colspan="2" align="center" class="tablef">
<input type="submit" name="submit" value="'.$lang_register_php['submit'].'" class="button" />
</td></tr>';
$html = preg_replace($exper,$newcpch,$html);
}
if($_SERVER['PHP_SELF']== 'report_file.php'){
$exper='(<textarea.*<br />)';
if(preg_match($exper,$html)){
$newcpch = <<<EOT
<textarea name="message" class="textinput" rows="8" cols="40" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" style="width: 100%;">$message</textarea><br /><br />
</td>
<tr>
<!-- CAPTCH PLUGIN 1.9 --><td class="tableh2" colspan="3"><b>{$lang_plugin_captcha_conf}</b><img src="./plugins/captcha/captcha.php" align="middle"></td>
</tr>
<tr>
<td class="tableb" colspan="3">
<input type="text" name="confirmCode" id="confirmCode" size="5" class="textinput" style="width: 100%;"><input name="report_captcha" value="1" type="hidden">
EOT;
}
$html = preg_replace($exper,$newcpch,$html);
}
return $html;
}
function captcha_page_start()
{
global $lang_plugin_captcha_conf, $CONFIG;
require ('plugins/captcha/include/init.inc.php');
require('plugins/captcha/include/captcha.class.php');
if(!USER_ID) { // Remove this line if you want Captcha display to all
if ((isset($_POST['msg_body']) && !PhpCaptcha::Validate($_POST['confirmCode'])) || (isset($_POST['submit']) && !PhpCaptcha::Validate($_POST['confirmCode']) && isset($_POST['reg_captcha'])) ) {
load_template();
pageheader($lang_error);
cpg_die(ERROR, "$lang_plugin_captcha_error", __FILE__, __LINE__);
}
}// Remove this line if you want Captcha display to all
if(isset($_POST['report_captcha']) && !PhpCaptcha::Validate($_POST['confirmCode'])){
load_template();
pageheader($lang_error);
cpg_die(ERROR, "$lang_plugin_captcha_error", __FILE__, __LINE__);
}
}
?>
Theres lines that say 'Remove this line if you want Captcha display to all' so obviously I remove those but do I remove the coding below that
if(isset($_POST['report_captcha']) && !PhpCaptcha::Validate($_POST['confirmCode'])){
or edit it in some way?
-
can anyone help?
-
My Confirm Image has stopped appearing all of a sudden. My gallery is http://ntsshow.com/coppermine [Not Work Safe] when I run http://ntsshow.com/coppermine/captcha.php nothing is returned expect " http://ntsshow.com/coppermine/captcha.php" Please help! I also checked for "whitespaces" and that's not it.
-
I disagree. This is a case of whitespace. You even have whitespace on your main gallery page - just view source.
-
Okay I thought whitespace was caused by blank lines at the top of your code in php files. However, I looked at my template.html (since that is the file that controls my main gallery) and there is no space at the top of the code. <!DOCTYPE html PUBLIC..... is on line 1. In looking at the page source as you said I do see the huge gap of space. How do I fix this?
-
You check any PHP files you have modified for whitespace. Alternatively apply suggestion 2 from http://forum.coppermine-gallery.net/index.php/topic,36319.msg258786.html#msg258786
-
Alright,
I downloaded and installed latest version. (of CM and CAPTCHA).
Reference: http://paulmasonphoto.net
I can not get the image to display at all. I have not edited anything. I have tried re-uploading all captcha files, etc. no success. Internet Explorer just says errors on the page (with an x where the image should be).
I get this error FYI:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Mon, 3 Aug 2009 05:02:48 UTC
Message: Expected identifier, string or number
Line: 529
Char: 2
Code: 0
URI: http://paulmasonphoto.net/displayimage.php?album=lastup&cat=0&pos=1
If I need to enable debug mode, how do I do this? (a bit noobish still here)
Any suggestions would be greatfully welcomed.
Thanks.
-
Did you check that your server meets the minimum requirements?
GD 2.x (2.0.28 or later is recommended) with Freetype support
-
How would I go about determining those? (Sorry if this is posted already).
-
Yes, this has indeed been posted, please read the thread you're replying to. Take a look at the ouput of phpinfo().
-
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
So yes, both are enabled and supported.
-
If I were in your shoes I would try...
1) Removing the plugin(s) you now have running to see if there is interference
2) "Prove" your GD is working OK by setting it as "Method for resizing images" (admin/config) and uploading a few files
-
Hi,
I am having some trouble with captcha. I upgraded my gallery to latest version from 1.4.x (sorry don't remember the exact old version).
after upgrade captcha image was being shown however it was not being checked on submission of comments. the user can easily by pass the Captcha without entering it.
Then I installed the latest available version of captcha plugin, now it shows two captcha images on my displayimage.php page and does not verify any captcha code I enter.
I have attached the screen shot
Please help.
thanks
-
Board rules / Forum policies: Post Links (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616)
-
the url can be found via http://tinyurl.com/pnx98s
sorry don't want to directly link the site
-
sorry don't want to directly link the site
...and I don't want to follow tinyurl links. Too bad it's you who's requesting support, not vice versa, so I'm out of this.
-
its not something I don't want to give you url. its bcoz I didn't want search engines to pick back links to the site from this forum. I don't know what would be the problem giving you covered links.
-
Hello,
there are my galleries:
http://www.gothicandart.com/PORTAL/cpg2
http://www.gothicandart.com/PORTAL/cpg
All requirements are fulfilled.
PHP Version 5.2.10
MySQL 5.0.67
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
I've updated my Coppermine Gallery from 1.4.19 (include Captcha 3.0) /<-- here works Capcha 3.0 properly , no problems any time/ to
Coppermine Gallery 1.4.25 yesterday.
I use Joomla and the Joomla-Bridge
Further version of Joomla was 1.5.8, now I've installed 1.5.14 inklude Joomla Bridge V 1.5
After these updates I have the problem that the captcha.php image does not appear. (IE = red cross; FF = nothing)
I've checked all impressions from this forum here (e.g. empty rows in all php-data, correct configuration in codebase.php (was not change since Coppermine 1.4.19 version, which works fine at this time), correct file in correct folders.
What can I do?
I need the comments of my guests and I does'nt need the thousand of spams (my record was 12000 entries on a day!!!)
Sorry for my english. Answers in german language via PN are welcome (similar to answers in english here :) )
best regards
Uwe
-
Same issue with captcha mod, after upgrading to 1.4.25
There's some conflict with include/init.inc.php updated version, temporarily fixed by commenting out
require("include/init.inc.php");
line in captcha.php (always wondered if that include was really needed, it's likely not).
-
...and I don't want to follow tinyurl links. Too bad it's you who's requesting support, not vice versa, so I'm out of this.
I fixed my issue myself. *beep* off with your support and rules...
-
I fixed my issue myself. *beep* off with your support and rules...
I am glad you managed to fix your gallery ( http://www.myrescueteam.com/gallery/ ) without our support as you can rest assured that with your attitude and bad language towards supporters we will not help you in future.
-
Thank you to those of you who were friendly and gave me a little bit of guidence:
I found that if you install "Active Search v1.0.0 (Beta)" it somehow interferes with Captcha.
To those of you that were rude and impatient:
Let me suggest you sit in front of a computer for less time each day and learn how to properly communicate with people, in person, and face-to-face. I think you will find yourself not able to be so rude in person, and maybe you could learn a thing or two.
Thank You.
-
How to disable the Captcha for the login page?
Thank you!
-
"Powered by Coppermine Photo Gallery" is not visible on your site:
http://www.galeriashqiptare.net/
Fix it before returning for help.
-
olti (http://forum.coppermine-gallery.net/index.php?action=profile;u=7486) is banned because of license breach (http://forum.coppermine-gallery.net/index.php/topic,57547.msg304541.html#msg304541).
Please ignore his postings.
-
hello
i have som problems with the captcha
i dont get enny pictures only a place to put in confirm
i have cpg 1.4.25
i have captcha 3.0
here is the adress
http://navla.no/bildegal/login.php?referer=index.php
-
Something might be wrong with your file captcha.php.
Upload a clean copy to your gallery root.
Make sure that all of the other Captcha plugin files are on your server and have not been modified.
[you also might want to increase the value of: Width of the main table in Config [for testing anyway]]
-
http://navla.no/bildegal/plugins/captcha/fonts/acidic.ttf : OK. Valid TT Font (Binary).
http://navla.no/bildegal/plugins/captcha/fonts/hurryup.ttf : OK. Valid TT Font (Binary).
http://navla.no/bildegal/captcha.php :
Fatal error: Cannot instantiate non-existent class: phpcaptcha in /var/www/vhosts/navla.no/httpdocs/bildegal/captcha.php on line 2
I would upload a clean copy, as suggested above.
-
oki thanks
I'll try it as I get back to you ;D
-
oki now it works
I had edited something inside captcha.php as I read on
forum
there was someone who wrote that I had to take away this
require ( 'include / init.inc.php');
leave it to the back-to-date te 1.4.25 to now it works
this is good
so i hope to clear all the fake users
thanks for all the support ;D ;D ;D
-
I see the Captcha tool on the login and the register page.
I don't see the Captcha tool by the comment box
-
Then read the readme and perform the needed edits
-
I can't see the captcha image on the registration page, so when people try to register they got the error "confirmation code didnt match". I followed the intructions of this post http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008 (http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008) but nothing happened. :-\
Link of my gallery: http://www.melinda-clarke.org/gallery/ (http://www.melinda-clarke.org/gallery/).
Thanks.
-
The first thing you need to do is upgrade. Your Coppermine version is out of date and vulnerable.
If you allow people to register with this old release then you will allow your site to be compromised.
(It is still vulnerable without new users too)
<!--Coppermine Photo Gallery 1.4.18 (stable)-->
After you upgrade you will need to "fix" your theme.
As you can see......
The captcha displays fine on this page: http://www.melinda-clarke.org/gallery/register.php?theme=classic
-
Thanks for the reminder! :) I just upgraded my gallery.
Well I will try to fix the theme, because since the upgrade the captcha image is not the only thing that does not work :-\.
Thanks again.
-
SOLVED
I had big problems with this plug-in before getting it to work.
So hopefully I can help others by telling what I did:
1. Problem was that the image and text didn't show up at the registration page at all - solved by this post http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008
2. Problem was that image didn't show. Only a red cross. In the time I was searching for a solution my login timed out. So now I couldn't even log in again, because I couldn't see image. In the future maybe login confirmation should be disabled by default when installing.
3. Tried to delete the SQL table as mentioned in this post http://forum.coppermine-gallery.net/index.php/topic,36319.msg170592.html#msg170592 - now I could log in again.
4. Changed the settings in file codebase.php so that this problem wouldn't occur again.
$CAPTCHA_DISABLE = array('login' => 'Administrators,Registered,Anonymous',´
'register' => 'Administrators,Registered,Anonymous',
'comment' => 'Administrators,Registered,Anonymous',
'report' => 'Administrators',
'ecard' => 'Administrators',
);
5. I tried Installing and Uninstalling the plug-in several times - no luck.
6. Found that you can put the code to a file instead of a picture.
Find this in captcha.class.php
function Create($sFilename = '') {
Change to
function Create($sFilename = 'test.jpg') {
This way i could check that the everything worked, because the code was actually made in the jpg file. Hmmmm OK thats one step further.
NOTE: File can be found in the root folder and the picture will NOT show until you remove this 'test.jpg' again. Only one is allowed at the same time - file OR picture.
I have no idea why this was working with the file, but not with the picture on the page itself. Maybe someone can answer this?
7. Looked through this huge thread trying to find a solution - at the moment it's 40 pages big. Found this post from Nibbler
2) Clean the output buffer just before the image is displayed.
captcha.php
Find:
$code = $oPhpCaptcha->Create();
Change to
ob_end_clean();
$code = $oPhpCaptcha->Create();
8. SUCCESS - now everything worked and now I just changed the configuration in codebase.php to the settings I would like to have on my page.
9. Attached is also the Danish translation of the confirmation messages - Huge job to translate ;)
Hope that this is helpful to someone. I found this solution by searching the board!
Not saying it's the fastest solution, but remember that the members here is helping because they would like to help - NOT because they have to!!!
-
Plugin works great on www.ddofaces.com
Thanks ! =)
-
I want the confirmation code for all users, how can i do that?
-
Read the readme file that comes with this plugin first. Then respect board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616). Sounds familiar?
-
Hello all,
I am just trying to enable Captcha on my gallery. http://www.mausfang.de/bilder/cpg/ (http://www.mausfang.de/bilder/cpg/)
It works fine at the registration, but is not shown at the comments input. When guests try to enter a comment, they get the error message, that they haven't entered the captcha code. But there isn't either a picture nor an input field, in all themes.
I read the readme.txt and also copied the captcha.php to the coppermine-root.
Any idea?
Thanks in advance,
Peter
-
I was able to enter a comment without seeing any captcha action. Did not see a registration link either.
Re-enable and re-post - someone might be able to help you.
-
Oh, I'm sorry, was just playing around with this plugin. Now it is enabled for comments, but there is no input field an no picture. You can change the theme to classic, or whatever else, but it isn't visible in any theme.
Peter
-
i was able to isolate what cause you Don't see captcha in registration page it was this mod Right Click Menu v2.0.1 (Stable) now i dont know how to remove this plugin without login in to admin. anyone has the solution?
even if i did this fix http://forum.coppermine-gallery.net/index.php/topic,36319.msg225008.html#msg225008 still the image capcha wont show.
thanks
-
You've been told about borad rules so often that it really hurts. For the thousandth time: Board rules / Forum policies: Post Links (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616)
-
I'm at a loss. I installed this here: http://staintalk.com/stainart
But it didn't show up under Registration, and the link provided on this thread must've been for an outdated version, because the command lines don't match.
Then my login timed out, and I can't log back in as admin to uninstall it, because that's also requiring captcha that isn't showing.
I was able to get to debug mode via PHPMyAdmin: (from login.php)
USER:
------------------
Array
(
[ID] => 3236483edbd30801421b735964c1f9c9
[am] => 1
[lang] => english
[theme] => staintalk
[liv] => Array
(
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 0
[user_name] => Guest
[groups] => Array
(
)
[group_quota] => 0
[can_rate_pictures] => 0
[can_send_ecards] => 0
[can_post_comments] => 0
[can_upload_pictures] => 0
[can_create_albums] => 0
[pub_upl_need_approval] => 1
[priv_upl_need_approval] => 1
[upload_form_config] => 3
[num_file_upload] => 5
[num_URI_upload] => 3
[custom_user_upload] => 0
[disk_max] => 0
[disk_min] => 0
[ufc_max] => 3
[ufc_min] => 3
[has_admin_access] => 0
[group_name] => Guests
[can_see_all_albums] => 0
[group_id] => 3
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content, player FROM cpg14x_filetypes; (0s)
[1] => select * from cpg14x_plugins order by priority asc; (0s)
[2] => delete from `staintal_stainart`.cpg14x_sessions where time<1275502864 and remember=0; (0s)
[3] => delete from `staintal_stainart`.cpg14x_sessions where time<1274296864; (0s)
[4] => select user_id from `staintal_stainart`.cpg14x_sessions where session_id = '382d47cbae158360eddae4156efa20c9' (0s)
[5] => select user_id as id, user_password as password from `staintal_stainart`.cpg14x_users where user_id=0 (0s)
[6] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as priv_upl_need_approval FROM cpg14x_usergroups WHERE group_id in (3) (0s)
[7] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 3 (0s)
[8] => update `staintal_stainart`.cpg14x_sessions set time='1275506464' where session_id = '382d47cbae158360eddae4156efa20c9' (0s)
[9] => SELECT home,login,my_gallery,upload_pic,album_list,lastup,lastcom,topn,toprated,favpics,search,my_profile FROM cpg14x_final_extract_config WHERE Group_Id=3 (0s)
[10] => DELETE FROM cpg14x_banned WHERE expiry < '2010-06-02 13:21:04' (0s)
[11] => SELECT * FROM cpg14x_banned WHERE (ip_addr='98.245.17.113' OR ip_addr='98.245.17.113' OR user_id=0) AND brute_force=0 (0s)
)
==========================
GET :
------------------
Array
(
[referer] => index.php
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.048 seconds - 12 queries in 0 seconds - Album set : ; Meta set: ;
Please help. I just want to get rid of this plugin. Do I have to completely uninstall Coppermine and start over? I didn't make up a backup like I would for mods because I assumed these were more stable.
Thanks in advance. :)
-
In the future please do not post debug output unless it is requested. That only makes a posting difficult to read, takes up extra space and electrons.
When trying to run captcha.php in your gallery root the response is:
Fatal error: Class 'PhpCaptcha' not found in /home/staintal/public_html/stainart/captcha.php on line 27
You should first try uploading a clean copy of the plugin files and especially the file captcha.php as instructed.
It is possible that your theme or lang. file(s) are interfering. If that is the case and the above does not work then use your phpmyadmin to delete the record of the plugin from "cpg_plugins", then login and delete the plugin.
-
hi,
i installed the captche plugin 3.1 for 1.4.x on may gallery www.kotor-faces.de 1.4.27
i dont see any captcha and cant login to my gallery :-(
did i do a mistake for this reason?
greetings,
Toa
-
Toa, did you copy captcha.php to the root folder of your site?
-
Toa, did you copy captcha.php to the root folder of your site?
yes, late but i copied it to root then :-)
-
ok, i deleted the plugin manualy.. i think i take the recapchta now :-)
-
Or upgrade to 1.5.8 which already has the capcha engine built in.
Time is running out - http://forum.coppermine-gallery.net/index.php/topic,66659.0.html
-
Hello
I just installed the captcha plugin with the 1.4 fruity theme and the captcha has distored the box that it fits into. I'm using 5.2.14 php and I'm not sure how to tell the GD version. The gallery is at http://travelbuff.net/coppermine/login.php. Can someone take a look and see if it is a installation problem or what. I downloaded the 1.4 version of the captcha above.
Thanks!
-
Coppermine 1.4.x is not supported starting 2010 December.
Please use the Download link or see the home page for cpg 1.5.12. Read the docs and you will find that captcha is now part of Coppermine.
Locking topic.