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: RC4 missing user album navigation! (breadcrumbs)  (Read 7883 times)

0 Members and 1 Guest are viewing this topic.

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« on: November 29, 2003, 10:00:38 am »

if you are in a specific user album, the album name doesn't show up in the menu... you have to go all the way back to the user directory...   Where can I fix this so that the album name shows in the "Home > User galleries > myuser > (missing part)  ????
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
RC4 missing user album navigation! (breadcrumbs)
« Reply #1 on: November 29, 2003, 10:32:17 am »

Is this in displayimage or thumbnails.php or? I am making a fix to displayimage as we speak and will post the code as a sticky.

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #2 on: November 29, 2003, 10:34:55 am »

modules.php?name=coppermine&file=displayimage&album=random&cat=&pos=-545

Quote from: "gtroll"
Is this in displayimage or thumbnails.php or? I am making a fix to displayimage as we speak and will post the code as a sticky.
Logged

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #3 on: November 29, 2003, 10:59:36 am »

Nope, didn't work...

also what's with "if ($this_id < 2) $this_name = 'Mr. X';"  ??? was that for testing// :)..  



Quote from: "gtroll"
Ok it's sounds like the problem I am just fixing try this and tell me if it works for you
replace:
Code: [Select]
if (is_numeric($album)) {
                $cat = - $album;
                $actual_cat = $CURRENT_ALBUM_DATA['category'];
                breadcrumb($actual_cat, $breadcrumb, $breadcrumb_text);
                $cat = - $album;
            } else {
                $actual_cat = $CURRENT_ALBUM_DATA['category'];
                $RES = db_query("SELECT catname FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid='{$CURRENT_ALBUM_DATA['category']}' LIMIT 1");
                if (!mysql_num_rows($RES)) cpg_die(CRITICAL_ERROR, sprintf($lang_errors['pic_in_invalid_album'], $CURRENT_PIC_DATA['aid']), __FILE__, __LINE__);
                $actual_catname = mysql_fetch_array($RES);
                $actual_catname = $actual_catname[0];
                $breadcrumb_text = "$actual_catname > $lang_meta_album_names[$album]";
                breadcrumb(0, $breadcrumb, $breadcrumb_text);
            }        

with:
Code: [Select]
if (is_numeric($album)) {
                $cat = - $album;
                $actual_cat = $CURRENT_ALBUM_DATA['category'];
                breadcrumb($actual_cat, $breadcrumb, $breadcrumb_text);
                $cat = - $album;
            } else {
                $actual_cat = $CURRENT_ALBUM_DATA['category'];
                                        if ($actual_cat >= FIRST_USER_CAT) {
                                    $this_name = get_username($actual_cat - FIRST_USER_CAT);
                                    $this_id = get_userid($this_name);
                                    if ($this_id < 2) $this_name = 'Mr. X';
                                                $breadcrumb_text = "<a href=\"$CPG_URL&cat=1\">User galleries</a> > <a href=\"$CPG_URL&cat=$actual_cat\">$this_name</a> > $lang_meta_album_names[$album]";
                                breadcrumb(0, $breadcrumb, $breadcrumb_text);        
                                        }else{                                        
                                                $RES = db_query("SELECT catname FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid='{$CURRENT_ALBUM_DATA['category']}' LIMIT 1");
                                if (!mysql_num_rows($RES)) cpg_die(CRITICAL_ERROR, sprintf($lang_errors['pic_in_invalid_album'], $CURRENT_PIC_DATA['aid']), __FILE__, __LINE__);
                                $actual_catname = mysql_fetch_array($RES);
                                $actual_catname = $actual_catname[0];
                                $breadcrumb_text = "$actual_catname > $lang_meta_album_names[$album]";
                                breadcrumb(0, $breadcrumb, $breadcrumb_text);
                                        }
            }
Logged

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #4 on: November 29, 2003, 11:06:58 am »

Oh ya... also, when it is doing:

if (is_numeric($album)) {
...

It is returning TRUE, so all it calls is:
 $cat = - $album;
                $actual_cat = $CURRENT_ALBUM_DATA['category'];
                breadcrumb($actual_cat, $breadcrumb, $breadcrumb_text);
                $cat = - $album;


I just did some echo "test"; in the code to see where it went..
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
RC4 missing user album navigation! (breadcrumbs)
« Reply #5 on: November 29, 2003, 11:09:58 am »

code worked for me URL?
Mr.X is if you allow anon to have user albums. weird, but could happen.

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #6 on: November 29, 2003, 11:13:06 am »

Sent via PM... site not live, in beta phase :).

Quote from: "gtroll"
code worked for me URL?
Mr.X is if you allow anon to have user albums. weird, but could happen.
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
RC4 missing user album navigation! (breadcrumbs)
« Reply #7 on: November 29, 2003, 12:12:13 pm »

I see what your talking about and will fix in morning, good night....

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #8 on: November 29, 2003, 08:39:24 pm »

Quote from: "gtroll"
I see what your talking about and will fix in morning, good night....


Thanks :).   I went to bed right before you wrote this message :).
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
RC4 missing user album navigation! (breadcrumbs)
« Reply #9 on: November 29, 2003, 08:44:10 pm »

sweetdreams and we are after the breadcrumbs.
Please don't eat them to get the way to real life again.
Wait untill we placed on the right spots.
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #10 on: November 29, 2003, 11:36:57 pm »

still waiting for some breadcrumbs... :P
Logged

tkx

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
RC4 missing user album navigation! (breadcrumbs)
« Reply #11 on: December 02, 2003, 07:48:48 pm »

*bump
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
RC4 missing user album navigation! (breadcrumbs)
« Reply #12 on: December 03, 2003, 02:03:19 pm »

Patience, this is not an easy solution and they will be fixed in v1.2.0 which will be out within the next day or so.
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 18 queries.