coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: gasemans107th on February 18, 2004, 01:31:57 PM

Title: more comment by 1 user (disable comment flooding)
Post by: gasemans107th on February 18, 2004, 01:31:57 PM
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)
Title: more comment by 1 user (disable comment flooding)
Post by: Nibbler on February 18, 2004, 08:45:23 PM
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.
Title: How to change the comment restriction
Post by: golf16vkr on February 23, 2004, 10:08:35 PM
I found something but couldn't edit the db_input.php because i couldn't find the line.

Can some1 help me out ?

Thanks !
Title: more comment by 1 user (disable comment flooding)
Post by: Joachim Müller on February 24, 2004, 08:50:59 AM
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
Title: more comment by 1 user (disable comment flooding)
Post by: golf16vkr on February 24, 2004, 09:04:18 AM
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.
Title: more comment by 1 user (disable comment flooding)
Post by: Joachim Müller on February 24, 2004, 09:55:16 AM
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:
Title: more comment by 1 user (disable comment flooding)
Post by: golf16vkr on February 25, 2004, 01:02:13 PM
Thanks for your help ppl, gonna try this once more :D