News:

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

Main Menu

Clickable Avatars

Started by spearfish, June 07, 2008, 07:51:08 PM

Previous topic - Next topic

Acans

Clickable Avatars will be a default feature is SMF 2.0 RC3, witch is live on this site as we speak. Try it for yourselfs.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

Robbo_

Oh awesome. This is one of the mods I hadn't ported to 2.0 for a client yet and now I don't need to, yay :)
Aus-Newerth

Quote from: IRC
Roph> I just finished a double 1/2lb cheese, bacon & salad beef burger
Roph> no woman on earth could satisfy me as much as I am satisfied right now by this burger
... later on ...
Roph> how could ensie go about satisfying me =o
<Ensiferous> Roph: Merely looking at me would yield far more pleasure than a burger can provide.

~DS~

Avatar are already clickable default in SMF 2.0 RC3
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Scratching my Head

Sorry. I have this in my default index template php.:

// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
{
$context['user']['avatar']['image'] = strtr($context['user']['avatar']['image'], array("class=\"avatar\"" => "class=\"avatar_t\""));
echo '<div style="margin-top: 15px; float: left;">', $context['user']['avatar']['image'], '</div>';
}
else
echo '<div style="margin-top: 15px; float: left;"><a href="' . $scripturl . '?action=profile;u=', $context['user']['id'], ';sa=forumProfile"><img src="' . $settings['images_url'] . '/noavatar.png" alt="missing avatar" alt="" width="65px" height="65px" /></a></div>';

echo '<div class="profile_info"><h3>', $txt['hello_member_ndt'], ' <b>', $context['user']['name'], '</b></h3>';

echo '<div id="useropts"><ul>';


I'm looking for this:

<div id="myavatar">', $context['user']['avatar']['image'], '</div>';


It's there, but not there. Is there someone comfortable enough with code to
help find what edits should be made?

I am running 1.1.11

Much thanks.

Мel

Is there any "unofficial" updates or alternatives for the RC5?
"The ability to speak does not make you intelligent."
- Qui-Gon Jinn

Acans

Quote from: Мel on April 15, 2011, 06:06:45 AM
Is there any "unofficial" updates or alternatives for the RC5?

It's now a default feature so you don't need the mod.
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

Advertisement: