Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 ... 25 26 27 28 [29] 30 31 32 33 ... 41   Go Down

Author Topic: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard  (Read 848156 times)

0 Members and 2 Guests are viewing this topic.

joginvik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

@bitcloud: check fonts folder
@joginvik: Are you sure it's enable ?
Logged
‍I don't answer to PM with support question
Please post your issue to related board

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117

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...
Logged

joginvik

  • Coppermine newbie
  • Offline Offline
  • Posts: 13

thanks, all good with your mod

I'll done it
Logged

halfpint

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

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

Code: [Select]
  $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

Code: [Select]
  $CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
       
       'comment' => 'Administrators,Registered',
        'report' => 'Administrators',
        'ecard' => 'Administrators',

Can anybody help me with this please


Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

Here is the array that shows captcha to Guest users only on all pages:
Code: [Select]
    $CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
        'register' => 'Administrators,Registered',
        'comment' => 'Administrators,Registered',
        'report' => 'Administrators,Registered',
        'ecard' => 'Administrators,Registered',
        );
Logged
‍I don't answer to PM with support question
Please post your issue to related board

almoali

  • Coppermine newbie
  • Offline Offline
  • Posts: 4


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
Logged

Gilles50110

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 12
    • Parigot-Manchot

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...
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

@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 !
Logged
‍I don't answer to PM with support question
Please post your issue to related board

halfpint

  • Coppermine newbie
  • Offline Offline
  • Posts: 8

Here is the array that shows captcha to Guest users only on all pages:
Code: [Select]
    $CAPTCHA_DISABLE = array('login' => 'Administrators,Registered',
        'register' => 'Administrators,Registered',
        'comment' => 'Administrators,Registered',
        'report' => 'Administrators,Registered',
        'ecard' => 'Administrators,Registered',
        );

Thanks that work a treat
Logged

lonebard

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

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]
« Last Edit: July 14, 2008, 06:23:37 am by Joachim Müller »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

phatair

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

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?
Logged

phatair

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

here debug code - i hope somebody can help me. Sorry for the double post - i don't find the "edit" button  ???
Code: [Select]
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: ;
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

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.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

phatair

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

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.
Logged

Nibbler

  • Guest

Check the german lang file for added whitespace.
Logged

phatair

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

Hi Nibbler, what excatly do you mean with "Check the german lang file for added whitespace."
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project

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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

phatair

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50

Hi Sami,
there are no empty lines in the language file. the php close tag is in the last line.
Logged
Pages: 1 ... 25 26 27 28 [29] 30 31 32 33 ... 41   Go Up
 

Page created in 0.027 seconds with 20 queries.