Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1172
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

TIPS : My Images Link ( SMF Gallery ) in user info block

Started by fotografo74, February 26, 2009, 12:28:59 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fotografo74

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>&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


$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