forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: redstrip 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
-
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...
-
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
-
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
-
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
-
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.
-
ok I think I have a fix for the metaalbum problems lastcom lastup thumbs on the main page.
open functions.inc.php line 407
replaceglobal $lang_get_pic_data, $lang_meta_album_names, $lang_errors,$CPG_M_DIR;
$sort_array =
withglobal $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...
-
NO. It hide the pics to all users (also register n admin)
-
That is strange it works perfect for me...rhydewithdis?
-
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)
-
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!
-
rhydewithdis did you add get_private_album_set(); where I said to?
-
Strange - my functions.inc.php is different... line 407 in functions.inc.php reads as follws:
$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
-
bump - anyone have any clue why my functions.inc.php file is different?
-
that line is correct, add get_private_album_set(); just before line 407