coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: ceesjoore on November 06, 2006, 02:20:30 PM

Title: all comments on same picture
Post by: ceesjoore on November 06, 2006, 02:20:30 PM
Hi,

When i added a comment on a picture, all comments are placed by this picture
http://www.ceesjoore.nl/coppermine/displayimage.php?album=lastcom&cat=-32&pos=0

???
Title: Re: all comments on same picture
Post by: Nibbler on November 06, 2006, 05:22:27 PM
Looks like you made a mistake adding the capcha image. Review your changes.
Title: Re: all comments on same picture
Post by: pinpoint222 on November 07, 2006, 08:19:26 PM
Here is a simple thing.

It seems u made somemistake in the db_input.php file which u cant trace.

download the cpg 1.4.10 from coppermine website ..unzip it.. and find the file "db_input.php".. just upload this file and overwrite ur existing db_input.php..

As my hack does not use db_input.php  ..(my hack uses db_input2.php).. So it is a safe thing to do now. overwriting with original file  will fix any mistake u did accidently.


Title: Re: all comments on same picture
Post by: pinpoint222 on November 07, 2006, 08:37:47 PM
Full steps:
NOTE:  This will fix the problem IF the problem was due to incorrect code in db_input.php and db_input2.php.


it seems u accidently changed something in the db_input.php file and as db_input2.php is its modified copy so both are carrying same error.

So here is what u gotta do..to fix in ur case( ur r using cpg 1.4.10).

STEPS:

1-- Download the original cpg 1.4.10 package.
2-- unzip it.
3-- find db_input.php file and upload/overwrite u current file on server
4-  ON ur computer now make a copy of that db_input.php file and RENAME it to db_input2.php
5-- ADD the 3 lines from my hack to db_input2.php.
6-- upload db_input2.php upload/overwrite ur current db_input2.php on server.


Hope this will fix the problem IF the problem was due to incorrect code in db_input.php and db_input2.php.
Title: Re: all comments on same picture
Post by: Nibbler on November 07, 2006, 08:49:31 PM
It's not related to db_input. The pid is hardcoded into $template_add_your_comment in the theme.
Title: Re: all comments on same picture
Post by: pinpoint222 on November 07, 2006, 09:51:23 PM
ceesjoore >> IT would helpful if you paste(or attach) the theme.php u r currently.using.
Title: Re: all comments on same picture
Post by: ceesjoore on November 09, 2006, 07:08:30 PM
Quote from: pinpoint222 on November 07, 2006, 09:51:23 PM
ceesjoore >> IT would helpful if you paste(or attach) the theme.php u r currently.using.

Thanks for all your input folks, but i have disabeld the comment again because with your mod Pinpoint222 i have already new spam.
So i am moving my site to a new provider and gone use the mod from Abbas, but thanks for your effort.
So this thread can be closed.

Title: Re: all comments on same picture
Post by: ceesjoore on November 09, 2006, 07:10:59 PM
Quote from: ceesjoore on November 09, 2006, 07:08:30 PM
Thanks for all your input folks, but i have disabeld the comment again because with your mod Pinpoint222 i have already new spam.
So i am moving my site to a new provider and gone use the mod from Abbas, but thanks for your effort.
So this thread can be closed.



Sorry but i forgot to mention that the problem was in the theme, because i changed the theme and the problem was gone my mistake i think.
Title: Re: all comments on same picture
Post by: pinpoint222 on November 10, 2006, 02:23:44 PM
This proves

QuoteSorry but i forgot to mention that the problem was in the theme, because i changed the theme and the problem was gone my mistake i think.


this wrong

QuoteThanks for all your input folks, but i have disabeld the comment again because with your mod Pinpoint222 i have already new spam.

Proper application of this mod described block addition of bot comment spam.

You are always welcome to check www.pindiplus.com/cpg to see its a mod to prevent comment spam and it does work 100%. :)

cheers..BTW lovely gallery