UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Load user albums URL

Adam O. · ·
6:09 AM Thursday, 08 October 2015
None
Hi there,

I've got a question about url to actually viewed user albums view.
In default.header.php is a piece of code:


<a href="/<?php echo FRoute::videos(array('uid' => $user->getAlias(), 'type' => SOCIAL_TYPE_USER));?>">
<i class="fa fa-film"></i>
<?php echo JText::sprintf(ES::string()->computeNoun('COM_EASYSOCIAL_GROUPS_VIDEOS' , $user->getTotalVideos()), $user->getTotalVideos()); ?>
</a>

which shows amount of movies in user library and after click, it load actually viewed user movie list.

I need the same, but related with albums. I've tried to make something like this:


<a href="/<?php echo FRoute::photos(array('uid' => $user->getAlias(), 'type' => SOCIAL_TYPE_USER));?>">
<i class="fa fa-photo"></i>
<?php echo JText::sprintf(ES::string()->computeNoun('COM_EASYSOCIAL_GROUPS_PHOTOS' , $user->getTotalPhotos()), $user->getTotalPhotos()); ?>
</a>


but it generates me incorrect sef url (when I disable SEF on page, it works).

Please... help me with this small issue - how to achieve the same "button" like above Videos, but related to Photos? :)

Best regards!
Adam
The replies under this section are restricted to logged in users or users with an active subscription with us