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: Favorite Files problem.  (Read 8628 times)

0 Members and 1 Guest are viewing this topic.

Zanelli

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
  • Jet-Angel
Favorite Files problem.
« 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

Test User: Jet
Test Pass: Test
 
« Last Edit: January 25, 2006, 08:29:03 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Favorite Files problem.
« Reply #1 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.
Logged

Zanelli

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
  • Jet-Angel
Re: Favorite Files problem.
« Reply #2 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.
« Last Edit: January 03, 2006, 06:00:42 pm by Zanelli »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Favorite Files problem.
« Reply #3 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
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: Favorite Files problem.
« Reply #4 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>
« Last Edit: January 05, 2006, 05:28:33 pm by ecto »
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: Favorite Files problem.
« Reply #5 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?
Logged

Nibbler

  • Guest
Re: Favorite Files problem.
« Reply #6 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'])) {
Logged

Zanelli

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
  • Jet-Angel
Re: Favorite Files problem.
« Reply #7 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Favorite Files problem.
« Reply #8 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.