forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Zanelli on January 03, 2006, 04:40:00 pm

Title: Favorite Files problem.
Post by: Zanelli on January 03, 2006, 04:40:00 pm
Pic won't add to the users "Favorite Files".

Please Help.

I have a PHPBB CPG.

Address: theaahc.net/Gallery (http://theaahc.net/Gallery)

Test User: Jet
Test Pass: Test
 
Title: Re: Favorite Files problem.
Post by: Joachim Müller on January 03, 2006, 05:23:50 pm
When I try to login using "Jet"/"Test", I get
Quote
You have specified an incorrect or inactive username, or an invalid password.
Make sure to provide working logins if you want actual support. Such things make supporters mad, they get reluctant to help.
Title: Re: Favorite Files problem.
Post by: Zanelli on January 03, 2006, 05:31:16 pm
When I try to login using "Jet"/"Test", I getMake sure to provide working logins if you want actual support. Such things make supporters mad, they get reluctant to help.

Sorry about that try again but with "test" instead of "Test".

That's not fair you put my Karma down 2, I only added a capital letter by accident.
Title: Re: Favorite Files problem.
Post by: Joachim Müller on January 05, 2006, 05:05:00 pm
I'm out of this thread, sending me a PM doesn't make me more inclined to look into it again, yet it's a good method to decrease your karma
Title: Re: Favorite Files problem.
Post by: ecto on January 05, 2006, 05:20:58 pm
I noticed it is a .gif you are trying to add to the favorites.

I tried this on my 1.4.2 install (adding .gif's and .swf's to favorites), and it seems Coppermine does add the files, but when you click My Favorites it doesn't display these file types.

<edit>
Oops, made a reply without considering a plugin I had loaded, which makes my statement erroneous. Sorry about that. The plugin I had loaded was "Unwanted Meta Albums v1.4". Make sure you have no such plugins or mods added that could cause the displaying or adding of your favorites to malfunction or not display properly.
</edit>
Title: Re: Favorite Files problem.
Post by: ecto on January 05, 2006, 05:34:05 pm
I also noticed now that in your case, after clicking "Add to Favorites", the link does not change to "Remove from Favorites" which it should if the adding worked. So I guess there's something with your addfav..

A longshot (as I'm not very familiar with the favorites functions), but have you tried switching to the classic theme and trying?
Title: Re: Favorite Files problem.
Post by: Nibbler on January 05, 2006, 06:06:33 pm
Confirming bug with adding favourites while logged in and bridged.

addfav.php

find

Code: [Select]
if (!mysql_affected_rows()) {
change to

Code: [Select]
if (!mysql_affected_rows($CONFIG['LINK_ID'])) {
Title: Re: Favorite Files problem.
Post by: Zanelli on January 09, 2006, 04:04:15 pm
Confirming bug with adding favourites while logged in and bridged.

addfav.php

find

Code: [Select]
if (!mysql_affected_rows()) {
change to

Code: [Select]
if (!mysql_affected_rows($CONFIG['LINK_ID'])) {

Thanks Nibbler, a big help  ;D.
Title: Re: Favorite Files problem.
Post by: Joachim Müller on January 25, 2006, 08:28:45 am
Committed the fix suggested by Nibbler to the stable and devel branch of the cvs. Marking thread accordingly.