We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

page for users photos | Forum

Kieron H Leader
Kieron H Oct 26 '13
hi how can i have a page that goes to the users photos album and not display all photos 
dave Leader
dave Oct 27 '13
what would you like for it to display?
Kieron H Leader
Kieron H Oct 27 '13
mysite.com/photo/useralbums/(users username)
Kieron H Leader
Kieron H Oct 27 '13
how would i do that as a page 
dave Leader
dave Oct 27 '13
i am having internet issues today, will get back with you asap..
dave Leader
dave Oct 27 '13

OK so its already there as a link, if you look at someones photo album there is a link that says "View all user albums"  and it will show you there albums.

 

Now if you wanted to create that link somewhere else you would just do this.. either in custom html or a new page or just edit the html output page..   Im now sure what you wanting since its already there, 

 

Untested but you can try this as a link

 

<a href="http://www.mysite.com/photo/useralbums/{$username}">user albums</a>

 

also have a look at ow_plugins/photo/views/controllers/

 

photo_user_album.html   and photo_user_albums.html

 

in the album.html  i found this on line 4 

 

<a href="{url_for_route for="photo_user_albums:[user=>$userName]"}">{text key='photo+view_user_albums'}</a>

 

 

that should at least get you pointed in the right direction.

 

 

Kieron H Leader
Kieron H Oct 27 '13
nope this does not work it just says page not found 
dave Leader
dave Oct 27 '13

yeah probably because the username var is not set as you are not loading the users array before your link...

 

its gonna take a pretty good mod to do that,  there is nothing in plugins for this ?

Daisy Team
Daisy Nov 1 '13
Kieron, this is possible as a new plugin development only.