Author Topic: Link to show pictures uploaded by user  (Read 3539 times)

0 Members and 1 Guest are viewing this topic.

Offline coloresonline

  • Newbie
  • *
  • Posts: 10
    • View Profile
Link to show pictures uploaded by user
« on: October 23, 2012, 09:14:58 PM »
I would like to show in users menu (user_logininfo.html) a link to show the pictures uploaded by the user logged in.
it will be a link like for example named "My pictures".
I've tried to use a url like the one used in user profile: (http://www.domain.com/search.htm?search_user=username) but i dont konw how to make a call for the username (the link for the user logged in).

I hope you can understand my explanation.
Thanks in advance.

Rembrandt

  • Guest
Re: Link to show pictures uploaded by user
« Reply #1 on: October 23, 2012, 10:12:02 PM »
Hi!

Search in includes/page_header.php:

$site_template
->register_vars(array(
  
"home_url"  => ROOT_PATH,

and replace:

$site_template
->register_vars(array(
  
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_info['user_name'])),
  
"home_url"  => ROOT_PATH,


search in your templates/user_logininfo.html
Code: [Select]
» <a href="{url_logout}">{lang_logout}</a><br>&nbsp;</td>
and replace:
Code: [Select]
     » <a href="{url_logout}">{lang_logout}</a><br>
      » <a href="{url_show_user_images}">My Pictures</a>nbsp;</tr>

mfg Andi

Offline coloresonline

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Link to show pictures uploaded by user
« Reply #2 on: October 23, 2012, 10:53:24 PM »
It works perfectly,.. Thank you very much for your effort and interest.
 :D