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: [Bug] Last Pics  (Read 6971 times)

0 Members and 1 Guest are viewing this topic.

redstrip

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Bug] Last Pics
« on: November 07, 2003, 06:24:33 pm »

If i use center last thumb pics, and they are only for register, also anonymous can see it. And also in main page of coppermine, lastup files, also if they are only for register users, everyone can see they

Please forgive my bad english
Logged

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[Bug] Last Pics
« Reply #1 on: November 12, 2003, 05:03:44 am »

bump for the problem - I have the same issue - CPG PHPnuke 1.2 RC1 - I ran the sql query that is sticky for the bug fix.  I also have the same issue where an album that is for registered users only is visable under "most viewed", "last updated", etc...
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[bug]
« Reply #2 on: November 12, 2003, 05:11:10 am »

This is indeed a bug and I have been working on a fix for RC3 will post here when I'm complete.
As a temp fix for y'all in the block add after the where statement in the sql AND aid!=1 for each album you want to exclude.
if your private album is  number three use AND aid!=3 if it's four and seven then use AND aid!=4 AND aid!=7

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #3 on: November 12, 2003, 07:00:51 am »

Meta Albums are the "albums" that are set in the config and show on the main page.
The meta albums should not be showing private pictures to unlogged users. You can be sure your not logged in that you are logged out as admin and user and delete cookies. One easy way to do this is to look at your page with a different web browser than you normally use.
If you find that cpg still shows private pics to unlogged user let me know which meta album(s) are at the issue.
The block bug is what I've working on...
Both please provide a link to your site and if you are still using CPG PHPnuke 1.2 RC1 please upgrade to CPG PHPnuke 1.2 RC2

redstrip

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Bug] Last Pics
« Reply #4 on: November 12, 2003, 11:13:18 am »

I use RC2.

I found other 2 problems (please not kill me :wink: )

I use phpnuke 6.9 and CPG 1.2 rc2

- when I open a category, but this category have not albums but only other categories (inside there are the albums), and i click a pics in the "more see" or "last arrives" appear:

There was an error while processing a database query

Fatal error: Call to undefined function: footer() in /path.../modules/coppermine/include/functions.inc.php on line 138
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #5 on: November 12, 2003, 11:21:00 am »

can you tell me which blocks/metaalbum you were having problem with the unregistered user? We will not be mad at people finding bugs but please if you have a issue different than the subject of the topic, start a new topic... and remember always search first.

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #6 on: November 13, 2003, 08:41:57 am »

ok I think I have a fix for the metaalbum problems lastcom lastup thumbs on the main page.
open functions.inc.php line 407
replace
Code: [Select]
global $lang_get_pic_data, $lang_meta_album_names, $lang_errors,$CPG_M_DIR;
$sort_array =

with
Code: [Select]
global $lang_get_pic_data, $lang_meta_album_names, $lang_errors, $CPG_M_DIR;
get_private_album_set();
$sort_array =

Let me know if this works for the both of you...

redstrip

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Bug] Last Pics
« Reply #7 on: November 13, 2003, 02:39:22 pm »

NO. It hide the pics to all users (also register n admin)
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #8 on: November 13, 2003, 07:08:51 pm »

That is strange it works perfect for me...rhydewithdis?

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
Meta album fix
« Reply #9 on: November 14, 2003, 09:26:01 am »

After my fix
You can't see the pic in the meta albums:
if you're admin not logged in as reg user(also)
if your a anon. user
your not in the group of the picture(custom group)

You can see the pic if:
login as admin and member
login as member
in the group of the picture(custom group)

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[Bug] Last Pics
« Reply #10 on: November 17, 2003, 07:40:04 pm »

gtroll - the link to my gallery is: http://www.vivrant.com/modules.php?name=coppermine

This is the category with which I am having issues (NOTE: there are pics of women scantily clad):
http://www.vivrant.com/modules.php?name=coppermine&cat=5

Now those pics of the girl in the bikini should not be showing up under "Most Viewed", and "Random" and "Top Rated" since that album that those pics are being pulled from is for "registered users".  

If I can provide any other assistance, let me know!
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #11 on: November 17, 2003, 09:05:36 pm »

rhydewithdis did you add get_private_album_set(); where I said to?

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[Bug] Last Pics
« Reply #12 on: November 17, 2003, 09:59:38 pm »

Strange - my functions.inc.php is different... line 407 in functions.inc.php reads as follws:

Code: [Select]
$sort_array = array('na' => 'filename ASC', 'nd' => 'filename DESC', 'ta'=>'title ASC', 'td'=>'title DESC', 'da' => 'pid ASC', 'dd' => 'pid DESC','ra' => 'pic_rating ASC','rd' => 'pic_rating DESC');


I'm looking in the /www/content/modules/coppermine/include directory.

PS - I'm running 1.2RC1
Logged

rhydewithdis

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
    • http://www.vivrant.com
[Bug] Last Pics
« Reply #13 on: November 19, 2003, 04:38:58 pm »

bump - anyone have any clue why my functions.inc.php file is different?
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[Bug] Last Pics
« Reply #14 on: November 19, 2003, 08:55:28 pm »

that line is correct, add get_private_album_set(); just before line 407
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.