4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: coloresonline 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.
-
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
» <a href="{url_logout}">{lang_logout}</a><br> </td>
and replace:
» <a href="{url_logout}">{lang_logout}</a><br>
» <a href="{url_show_user_images}">My Pictures</a>nbsp;</tr>
mfg Andi
-
It works perfectly,.. Thank you very much for your effort and interest.
:D