more comment by 1 user (disable comment flooding) more comment by 1 user (disable comment flooding)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

more comment by 1 user (disable comment flooding)

Started by gasemans107th, February 18, 2004, 01:31:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gasemans107th

Is it possible that i allow users to place more then one comment @ the photo's?

Ofso what do i have to change in the PHP pages (could not find it in the config)

Nibbler

db_input.php:


if ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) {
cpg_die(ERROR, $lang_db_input_php['no_flood'], __FILE__, __LINE__);
}


comment out or remove that block.

golf16vkr

I found something but couldn't edit the db_input.php because i couldn't find the line.

Can some1 help me out ?

Thanks !

Joachim Müller

What do you think a supporter can do with your posting? You found something, but you won't tell us what you found? Wait, I'll consult my magic lamp...

GauGau

golf16vkr

http://forum.coppermine-gallery.net/index.php?topic=3872&highlight=comment+restiction

This is the link, you were right, but you know how it goes ;)

Problem is I can't find the code posted in the thread.

Joachim Müller

I merged your question with the thread you mentioned (the last 3 postings in fact). If you have a question to a thread, please reply to it instead of starting a new one.

The code nibbler mentioned is there (at least in cpg1.2.1) - try searching for the first line onlyif ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) { - the search may be inacurate if you have linebreaks or additional spaces in it...

------------------------------------------------------

For those who have problems as well, here's the full instructions once more:
  • edit db_input.php
  • find            if ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) {[/li][/list]
                    cpg_die(ERROR, $lang_db_input_php['no_flood'], __FILE__, __LINE__);
                }

  • Replace with//            if ((USER_ID && $last_com_data['author_id'] == USER_ID) || (!USER_ID && $last_com_data['author_md5_id'] == $USER['ID'])) {[/li][/list]
    //                cpg_die(ERROR, $lang_db_input_php['no_flood'], __FILE__, __LINE__);
    //            }
    [/list:u]
    However, disabling the flood protection is not recommended. There will be an admin option in the next version of coppermine to switch it on/off...

    GauGau

golf16vkr

Thanks for your help ppl, gonna try this once more :D