Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Aiheen aloitti: shadow82x - elokuu 23, 2007, 04:43:45 IP

Otsikko: [MOD] clickable avatars on message index (Redirects to user's profile)
Kirjoitti: shadow82x - elokuu 23, 2007, 04:43:45 IP
I think this would be a nice mod. Just another way to access to the profile.
Otsikko: Re: [MOD] clickable avatars on message index (Redirects to user's profile)
Kirjoitti: codenaught - elokuu 24, 2007, 05:17:25 IP
Do you mean for posts made inside topics?

This wouldn't require a mod, it would be just a simple template change.

Themes/<theme_name>/Display.template.php:

Koodi (Find:) [Valitse]
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';


Koodi (Change to:) [Valitse]
echo '
<div style="overflow: auto; width: 100%;"><a href="', $message['member']['href'], '">', $message['member']['avatar']['image'], '</a></div><br />';
Otsikko: Re: [MOD] clickable avatars on message index (Redirects to user's profile)
Kirjoitti: shadow82x - elokuu 24, 2007, 05:39:18 IP
Your smart I will try. :P
Otsikko: Re: [MOD] clickable avatars on message index (Redirects to user's profile)
Kirjoitti: shadow82x - elokuu 28, 2007, 05:13:58 IP
Aka I tried it works fine but when I click it on the default SMF core it shows a scrollbox. Is there a code to get rid of that?