coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Jobin on May 09, 2008, 11:06:31 AM

Title: INVISIBLE COMMENTS
Post by: Jobin on May 09, 2008, 11:06:31 AM
Hello guys!! Sorry but I have a little problem with a site, well I moved the site to a new host some months ago, but the problem is that I saved part of the .sql file, so the comments on the pictures are saved, but I had to upload all the pics again so the names of the pics are not the same! Now I have like 10 comments invisible because I can see them in the in the .sql file but not in the site, I think because the pic of that comment is not named as it was before moving the gallery! I wanted to know if there is a way to know the name of that picture, the name it had, so I can have that comment matched to that picture!

Quite complicated and perhaps I wasn't very clear...I know... but probably you can help me...!

Thanks!!
Title: Re: INVISIBLE COMMENTS
Post by: Nibbler on May 09, 2008, 11:26:21 AM
It's not about names but the order you uploaded them. Edit the comments table in phpmyadmin and make sure the pid on the comments table lines up with the pid in the pictures table.
Title: Re: INVISIBLE COMMENTS
Post by: Jobin on May 12, 2008, 11:12:45 AM
Uhm sorry but I dind't understand very well...what do you mean with pid?? sorry for my ignorance :P
Title: Re: INVISIBLE COMMENTS
Post by: Jobin on May 12, 2008, 11:15:26 AM
:o Ok! I found the pid, but I saw that in pictures there is:

     pid     int(11)               No         auto_increment

While in comments:

     pid     mediumint(10)               No     0     

What do I have to do?!
Title: Re: INVISIBLE COMMENTS
Post by: Nibbler on May 12, 2008, 12:12:39 PM
Browse through the comments table and make sure the pid in the comments table is pointing to the correct picture. If it is wrong then change it.