collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Who's Online

  • Dot Guests: 59
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • CaLy: hi all! I know it´s late but anyway happy 2015 to all the community!
    January 18, 2015, 04:43:46 am
  • ribwhulp: hoi
    January 17, 2015, 07:55:06 am
  • ♦ Ninja ZX-10RR ♦: Right above the Shoutbox there is a "Who's online" block, just so you know ;)
    January 11, 2015, 03:28:04 pm
  • BlackHeartStudios: Anyone online?
    January 09, 2015, 10:11:24 pm
  • Elliott: Hello
    January 08, 2015, 11:50:47 pm
  • mecane: test
    January 08, 2015, 09:38:30 am
  • ♦ Ninja ZX-10RR ♦: Oh hai!
    January 07, 2015, 07:14:01 pm
  • Elliott: Hello my friends
    January 07, 2015, 03:14:07 pm
  • Capion: ha! I found it ;)
    January 04, 2015, 04:58:45 pm
  • Capion: hmm.. what shoutbox mod is this?
    January 04, 2015, 04:51:21 pm
  • SamElanius: Thank you for info Chen Zhen. It worked
    December 28, 2014, 12:27:23 pm
  • Chen Zhen: new members are not permitted to post links. for those having an issue please make your posts without any working links. thank you.
    December 27, 2014, 09:15:16 pm
  • sub5: BoardNews for Frontpage block is the problem, cant get it right, need your help please
    December 27, 2014, 06:00:09 pm
  • Infernus: What's the problem?
    December 26, 2014, 08:32:26 am
  • sub5: @Elina and SiNaN, can you help me on my post in the BoardNews for frontpage block
    December 26, 2014, 08:28:57 am
  • sub5: I had same issues yesterday,
    December 26, 2014, 08:26:51 am
  • Skhilled: Or first time posters?
    December 26, 2014, 06:58:01 am
  • Skhilled: I get the same too. I think something is wrong with the anti-spam process for new users?
    December 26, 2014, 06:57:47 am
  • SamElanius: What I get when I try to post here in english support new topic is that I get blank (white screen).I tried different browser but same result. If I refresh it, it says that I posted it but no topic is created. Any advice please ?
    December 26, 2014, 06:31:20 am
  • sub5: @Elina thanks, i have been able to post it
    December 25, 2014, 07:16:45 pm

* Recent Posts

Reformat articles into columns by SMiller
[Today at 07:01:28 pm]


Re: Show only BBC in a block by bedmakaveli
[Today at 05:02:57 pm]


Re: Shoutbox can't refresh by ataru
[Today at 08:11:53 am]


Shoutbox can't refresh by ataru
[Today at 02:51:47 am]


Re: Show only BBC in a block by ♦ Ninja ZX-10RR ♦
[Yesterday at 06:53:46 pm]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: Rounded Avatars  (Read 2375 times)

0 Members and 1 Guest are viewing this topic.

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Rounded Avatars
« on: December 24, 2012, 09:29:44 am »
Hello...

I recently installed this mod from the SMF site: http://custom.simplemachines.org/mods/index.php?mod=3575

It rounds the corners of the avatars in messages,  on profiles,  and in the memberlist.  It does not round the avatars in any of my SimplePortal blocks.  Can anyone point me in the direction as to how to round the avatars in the different blocks I have running?

Thanks!

EDIT: My apologies... I do believe I posted this in the wrong forum.   :(

Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Rounded Avatars
« Reply #1 on: December 24, 2012, 10:20:34 am »
I looks like you can do this by finding the blocks in PortalBlocks.php that you want the avatars to be rounded on and add "avatar" to the class.

For example with Board News.
Find:
Code: [Select]
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right" /></a>
Replace With:
Code: [Select]
<a href="', $scripturl, '?action=profile;u=', $news['poster']['id'], '"><img src="', $news['avatar']['href'], '" alt="', $news['poster']['name'], '" width="30" class="sp_float_right avatar" /></a>

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #2 on: December 24, 2012, 09:36:10 pm »
I seem to need help finding the line to edit for the TOP POSTER block....

Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Rounded Avatars
« Reply #3 on: December 25, 2012, 12:29:15 pm »
There are two instances of this in PortalBlocks.php.  The first instance is for Top Poster and the second is for Top Member Stats.
Find:
Code: [Select]
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '
Replace with:
Code: [Select]
<a href="' . $scripturl . '?action=profile;u=' . $member['id'] . '"><img class="avatar" src="' . $member['avatar']['href'] . '" alt="' . $member['name'] . '" width="40" /></a>' : '', '

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #4 on: December 25, 2012, 02:35:01 pm »
Unfortunately avatars show up at 100% (not 40) using the code above...  but they ARE rounded.

:)


Offline TinMan

  • Semi Newbie
  • *
  • Posts: 43
    • RC Arcade
Re: Rounded Avatars
« Reply #5 on: December 26, 2012, 10:12:37 am »
Thats odd, I tested the Top Poster block with Firefox and Chrome with no problems on the default theme.

Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #6 on: January 05, 2013, 08:56:42 am »
also there is the team-list block..
Code: [Select]
<a href="' . $scripturl . '?action=profile;u=' . $staff['id'] . '"><img src="' . $staff['avatar']['href'] . '" alt="' . $staff['name'] . '" width="40" /></a>' : '', '
Code: [Select]
<a href="' . $scripturl . '?action=profile;u=' . $staff['id'] . '"><img class="avatar" src="' . $staff['avatar']['href'] . '" alt="' . $staff['name'] . '" width="40" /></a>' : '', '


i made a mod of these three changes.. so just install this after the round corners mod of colins.. and everything should be fine
« Last Edit: January 05, 2013, 09:19:00 am by demlak »

Offline FrizzleFried

  • Full Member
  • ***
  • Posts: 114
  • SMF Version: 2.0.5
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #7 on: January 05, 2013, 12:31:23 pm »
Unfortunately the package did the very same thing that happened when I manually made changes...

It made all my avatars go from 40% to 100%.

Might be that I have those blocks in blocks...?


Offline demlak

  • Semi Newbie
  • *
  • Posts: 36
  • SMF Version: 2.0.2
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #8 on: January 05, 2013, 02:09:12 pm »
im sorry.. i don´t know about your problem.. but i can say to you, that this mod does exactly the same as the manual edit...

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4885
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded Avatars
« Reply #9 on: June 11, 2013, 10:15:46 am »
Can you show a link to the forum?.  We can see the HTML and CSS that way.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Bullet

  • Hero Member
  • *****
  • Posts: 2050
  • Gender: Male
  • $("li.blurb").hide();
  • SMF Version: 2.0.9
  • SP Version: 2.3.6
Re: Rounded Avatars
« Reply #10 on: June 11, 2013, 12:25:45 pm »
What theme are you using?

Offline AngelinaBelle

  • Support
  • *
  • Posts: 4885
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Rounded Avatars
« Reply #11 on: June 18, 2013, 05:11:11 am »
FrizzleFried -- if you are still interested in this issue, please hit the "Topic Not Solved" button and continue.

Thanks
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?