News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Add Avatar To Who Is Online

Started by bolubeyi61, February 27, 2013, 09:06:39 PM

Previous topic - Next topic

bolubeyi61

Link to Mod
Add Avatar To Who Is Online Mod

Current Theme / ThemeSettings : (Active and select avatar height)


Screenshots




Demo: Click

Mod by: bolubeyi61


Add Avatar To Who IsOnline by smf modifications is licensed under a Creative Commons Attribution 3.0 Unported License.
Linkteki çalışma baz alınarak yapılmıştır http://custom.simplemachines.org/mods/index.php?mod=3655.


Costa

Congratulations for your first mod.
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."


Colin

Congratulations! Nice work. I look to see more great mods from you.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Shambles

Worked pretty well, nice one.

However, it made my online list far too "tall" (as I expected it might) and for me it's unusable, but a grand idea nonetheless :)

Mr. Pedram

nice MOD , congratulations

try this, it will be better for avatars

Code (find) Select
<span class="who_is_avatar"><a href="who_is_avatar" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a></span>                         

Code (replace) Select
<div class="who_is_avatar"><a href=href="who_is_avatar" title="' . $txt['profile_of'] . ' ">', $member['avatar']['image'], '</a></div>

.who_is_avatar {
    width: 75px;
    height: 75px;
    border: 1px solid #000000;
    overflow: hidden;
    position: relative;
}

.who_is_avatar img {
    width: 75px;
    height: auto;
    position: relative;
}


but must change no avatar to another 75px img
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

FrizzleFried

This error is popping up when people access the WHOIS area with this mod installed:


http://www.xxx.com/index.php?action=who
8: Undefined index: avatar
File: /home/ahaforum/public_html/Themes/default/Who.template.php
Line: 61

Mr. Pedram

and another thing,
when you click on user avatar, it goes to your profile, not that user

Code (find) Select
href="' . $member['href'] . '"

Code (replace) Select
href="', $scripturl, '?action=profile;u=', $member['id'], '"
My Modifications:
» Loading For SMF
» Buddies Block
» Redirect Links
» Birthdate On Registration
» PM Warning
» Instagram
» Add Table,Td,Tr Button
» Search Topic & Board Button
Browse All...

Antechinus

Since the avatar is inside a table cell there is no need for extra markup around the anchor. You could do it like this.
     
<a href="', $scripturl, '?action=profile;u=', $member['id'], '" class="who_is_avatar" title="', $txt['profile_of'], ' ', $member['name'], ' ">', $member['avatar']['image'], '</a>

.who_is_avatar {
    width: 75px;
    height: 75px;
    display: block;
}

.who_is_avatar img {
    max-width: 75px;
    max-height: 75px;
    width: auto;
    height: auto;
}


You don't need to specify relative positioning or hidden overflow. :)

Antechinus

Oh and the parsing instructions for index.css aren't right. CSS files don't have a ?> at the end of them. ;)

FrizzleFried

Just tried the new version.  Regardless of the size I put in for max avatar size,  I get full size avatars.

I am also still getting the invalid index error I mentioned in my reply above.

I'm running a pretty modified version of the curve theme...

Thanks...


EDIT: Correction... it's showing full size with the Firefox 19.0 browser... Chrome the size is correct.  The error remains of course.


impreza

An interesting add-on, recognizes only logged and not the ip guests?
Portal ToTemat.pl - treści w postaci artykułów i filmów tematycznych.

Shambles

I think the BEFORE and AFTER screenshots are mixed up :D









Chas Large

Using V1.1 of the mod on a 2.0.4 forum and still getting the error message as mentioned earlier by FrizzleFried.


http://www.fiftyplusforum.co.uk/forum/index.php?action=who

8: Undefined index: avatar

File: /removed/removed/removed/forum/Themes/default/Who.template.php
Line: 73


Any ideas?
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

bolubeyi61

I have tested. Not modified default theme no problem. Other themes are likely to be the problem.

FrizzleFried

Quote from: Chas Large on March 10, 2013, 09:52:53 AM
Using V1.1 of the mod on a 2.0.4 forum and still getting the error message as mentioned earlier by FrizzleFried.


http://www.fiftyplusforum.co.uk/forum/index.php?action=who

8: Undefined index: avatar

File: /removed/removed/removed/forum/Themes/default/Who.template.php
Line: 73


Any ideas?

Glad I'm not the only one..... ;)

Also,  resizing of avatar only works for Chrome with me.  FF does not resize avatars.

Chas Large

Quote from: FrizzleFried on March 10, 2013, 07:22:44 PM
Quote from: Chas Large on March 10, 2013, 09:52:53 AM
Using V1.1 of the mod on a 2.0.4 forum and still getting the error message as mentioned earlier by FrizzleFried.


http://www.fiftyplusforum.co.uk/forum/index.php?action=who

8: Undefined index: avatar

File: /removed/removed/removed/forum/Themes/default/Who.template.php
Line: 73


Any ideas?

Glad I'm not the only one..... ;)

Also,  resizing of avatar only works for Chrome with me.  FF does not resize avatars.

Works for me on FF see attached 30 & 40px sizes.

In Avatar settings I have for External Avatars:
If the avatar is too large... > Let HTML resize it
and for Uploaded Avatars:
Resize oversized large avatars > Checked

I seem to recall other options for this didn't work so well for FireFox. Maybe that might be the cause of your issue?
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

Advertisement: