Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Wrong flow on viewing photo albums from "my photos" section

8 years 6 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Active

ISSUE SUMMARY:

When you are in "my photos" section you can see your albums

new albums created from user,
stream photos album,
cover photos album
and avatar photos album.

When click in an album it redirects to each album page (i use no modal).

In the very top of the screen is option "Back to albums" which returns you back on album list.

this works fine for all the albums created from user. BUT for albums auto created (like stream) if you click "back to albums" you are redirected to the GENERIC photos view of all users and not where u where.

I have checked the issue and think it's related to url created by $album->getUri() function inside
/com_community/tables/album.php

in the functions seem to checking by this way :

switch ($this->type) {
case PHOTOS_USER_TYPE:
$uri .= '&userid=' . $this->creator;
break;
case PHOTOS_GROUP_TYPE:
$uri .= '&groupid=' . $this->groupid;
break;
case PHOTOS_EVENT_TYPE:
$uri .= '&eventid=' . $this->eventid;
break;
}

but seems that if switch not founds anything leaves the URI without the user information, needed in order the correct link to be attached to the "back to albums" button.

8 years 6 months ago
  • John's Avatar
    Topic Author
  • John
  • Offline
  • Fresh Boarder
  • Thank you received: 0
Licenses:
JomSocial Active AdAgency Active

I have found a work around for this.

in /views/photos/view.html.php

after line 1620

replace:

$link = "index.php?option=com_community&view=photos&task=display";

with

if($album->creator == $this->my->id)
{
$link = "index.php?option=com_community&view=photos&task=myphotos&userid=".$album->creator;
}
else
{
$link = "index.php?option=com_community&view=photos&task=display";
}

that fixes the url and redirects back to my user album list.

8 years 6 months ago
Licenses:

Hi,

Thank you for reporting this :)
I confirmed, this is a bug. for official fix I will let you know.
for temporary you can using your fix

Regards

8 years 6 months ago
Licenses:

Hi,

will be fixed at next release

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW