https://www.icyphoenix.com/viewtopic.php?f=26&t=3726&p=25842#p25842
-----------------------------------
Artie
Tue 11 Mar, 2008 00:46

Re: Sub Cat Link On Profile Page
-----------------------------------
[quote user="DWho"]
yes that is correct... all my users have 1 sub cat each as I use this mod [url=http://www.icyphoenix.com/viewtopic.php?f=25&t=829&p=6805#p6805]here am I getting confused here.... :oops: 
[/quote]I thought you may be using that mod, but I too was a bit confused :mricy:

[quote user="DWho"] 
ok when I log in as admin I can click on my personal gallery and it goes to my admin sub cat....

if I click my test accounts personal gallery link it goes to their first album and not their sub cat..

if I log in as a test account click the the same link it goes to the admins sub cat

but my test accounts link to personal gallery will goto their first album

if I am not explaining this correctly I do apologise[/quote]

In the code I provided to you (I have since corrected the code above)
REPLACE
[codeblock]$sub_cat_id = ($row['cat_parent'] > 0) ? $row['cat_id'] : '';[/codeblock]
WITH
[codeblock]if ($row['cat_parent'] > 0) $sub_cat_id = $row['cat_id'];[/codeblock]

Note: That if user does not have any pics in the subcat then the link will not take you to the subcat, but will take you too the user's main album


