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)
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.
I found something but couldn't edit the db_input.php because i couldn't find the line.
Can some1 help me out ?
Thanks !
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
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.
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 only
if ((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
Thanks for your help ppl, gonna try this once more :D