News:

Wondering if this will always be free?  See why free is better.

Main Menu

[Tip/Trick]Ssi_Latestmember funcition(add to avatar)

Started by Paragaya, February 11, 2009, 11:44:18 AM

Previous topic - Next topic

Paragaya

Open SSI.php and find

', $txt['welcome_member'], ' ', $context['common_stats']['latest_member']['link'], '', $txt['newest_member'], '


Add before:

<br />' , $member_info['avatar']['image']  ,'<br />


Find:

function ssi_latestMember($output_method = 'echo')
{

global $db_prefix, $txt, $scripturl, $context;

if ($output_method == 'echo')


Replace with

function ssi_latestMember($output_method = 'echo')
{


global $db_prefix, $txt, $scripturl, $context, $memberContext;

loadMemberData($context['common_stats']['latest_member']['id']);
loadMemberContext($context['common_stats']['latest_member']['id']);
$member_info = $memberContext[$context['common_stats']['latest_member']['id']];

if ($output_method == 'echo')


Previous



next



Description: The last member function as well as members avatar's shows.

Thanks Blue Dream
Geri Döndüm :D...... :)

Tp.Net Turkish Moderator... ;)

karlbenson

to avoid xhtml errors

<br><br> should be <br /><br />

Paragaya

Quote from: regularexpression on February 11, 2009, 12:51:11 PM
to avoid xhtml errors

<br><br> should be <br /><br />

Sorry

Modifited

<br>' , $context['user']['avatar']['image'] ,'<br />
Geri Döndüm :D...... :)

Tp.Net Turkish Moderator... ;)

Yağız...

He didn't say that. He sayed that you should replace <br> with <br />.

Paragaya

Geri Döndüm :D...... :)

Tp.Net Turkish Moderator... ;)

Kermit

Your topic should be better in Tips and Tricks Board

so it's moved into appropriate board  ;)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

[SiNaN]

I thought $context['user']['avatar']['image'] had the avatar of the current user, not the avatar of latest member; no?
Former SMF Core Developer | My Mods | SimplePortal

Paragaya

Geri Döndüm :D...... :)

Tp.Net Turkish Moderator... ;)

Tyrsson

Not 100% sure this will work or its what you are looking for but to make the latest member avatar show I think it may have to be something like:

!empty($context['latest_member']['avatar'])
PM at your own risk, some I answer, if they are interesting, some I ignore.

Advertisement: