Advanced search  

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]

Pages: [1]   Go Down

Author Topic: more comment by 1 user (disable comment flooding)  (Read 3098 times)

0 Members and 1 Guest are viewing this topic.

gasemans107th

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
more comment by 1 user (disable comment flooding)
« 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)
Logged

Nibbler

  • Guest
more comment by 1 user (disable comment flooding)
« Reply #1 on: February 18, 2004, 08:45:23 pm »

db_input.php:

Code: [Select]

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

golf16vkr

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
How to change the comment restriction
« Reply #2 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 !
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
more comment by 1 user (disable comment flooding)
« Reply #3 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
Logged

golf16vkr

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
more comment by 1 user (disable comment flooding)
« Reply #4 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
more comment by 1 user (disable comment flooding)
« Reply #5 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 only
Code: [Select]
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
    Code: [Select]
               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
    Code: [Select]
    //            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
Logged

golf16vkr

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
more comment by 1 user (disable comment flooding)
« Reply #6 on: February 25, 2004, 01:02:13 pm »

Thanks for your help ppl, gonna try this once more :D
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 19 queries.