SimplePortal
Customization => Custom Coding => Topic started by: fotografo74 on February 26, 2009, 12:28:59 PM
-
Hi :-)
I added link to My Images in SMF Gallery Pro ( SMF GAllery Lite maybe the same? ) in USer Panel Info block.
I added in SPortal2.php
if (!$context['user']['is_guest'])
echo '
<div align="center"><img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="', $scripturl, '?action=gallery;sa=myimages;u=' . $user_info['id'] . '">', $txt['miefoto'], '</a>' ;
echo '</div>';
AFTER
if (!$context['user']['is_guest'])
echo '
<div align="center"><img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="'.$scripturl.'?action=profile">', $txt['profile'], '</a> <img src="' . $settings['images_url'] . '/arrow.gif" alt="', $txt['sp-arrow'], '" /> <a href="', $scripturl, '?action=logout;sesc=', $sc, '">', $txt['logout'], '</a>';
echo '</div>';
and i added in Themes/default/languages/index.english.php
$txt['miefoto'] = 'Le mie foto';
AFTER
$txt['profile'] = 'Profile';
Note: miefoto-------Le mie foto = myimages-------My Images in english
I'm newbie in coding but works :-)
Antonio