SimplePortal

Customization => Custom Coding => Topic started by: fotografo74 on February 26, 2009, 12:28:59 PM

Title: TIPS : My Images Link ( SMF Gallery ) in user info block
Post 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
Code: [Select]

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

Code: [Select]
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>&nbsp;&nbsp;&nbsp;<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

Code: [Select]
$txt['miefoto'] = 'Le mie foto';

AFTER
Code: [Select]
$txt['profile'] = 'Profile';

Note: miefoto-------Le mie foto = myimages-------My Images in english

I'm newbie in coding but works :-)

Antonio

SimplePortal 2.3.8 © 2008-2024, SimplePortal