collapse

* User Info

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

* Who's Online

  • Dot Guests: 51
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • Mstcool: Oh, ok, Sinan
    August 25, 2014, 10:19:15 PM
  • ArsenArsen: When i make them
    August 19, 2014, 12:20:20 AM
  • ArsenArsen: I had some mod ideas, i will put them.
    August 19, 2014, 12:19:45 AM
  • [SiNaN]: We could, but it's there as a reminder of some kind, that we should fill it in, somehow.
    August 18, 2014, 09:57:14 PM
  • Mstcool: Y don't u guys remove the customization section since it has no files?
    August 17, 2014, 10:27:28 PM
  • ArsenArsen: Ok, Great!
    August 15, 2014, 03:13:18 PM
  • [SiNaN]: We have the translators' names listed in the downloads area.
    August 15, 2014, 03:05:39 PM
  • ArsenArsen: Never Mind, i wont, noone did.
    August 15, 2014, 02:22:32 PM
  • ArsenArsen: Can i put mz name on translation
    August 15, 2014, 02:21:06 PM
  • [SiNaN]: You can only change your forum profile options once you have 5 posts. I have made an exception for Translator group though, so you should be able to do it now.
    August 13, 2014, 03:32:17 PM
  • ArsenArsen: Cant find where to change avatar
    August 13, 2014, 03:12:38 PM
  • ArsenArsen: Ok
    August 11, 2014, 05:17:55 AM
  • Underdog: there is a documentation link on your top-right
    August 10, 2014, 08:48:45 PM
  • ArsenArsen: What to use for docs? This is NoT SP support question.
    August 10, 2014, 02:55:55 PM
  • Ron-KK4HGY: Hello all!
    August 06, 2014, 03:22:50 PM
  • USFA: tada
    August 04, 2014, 09:49:45 PM
  • BCNPalomino: lol, that search doe :O
    July 18, 2014, 09:26:27 AM
  • RohailPro23: hi all
    July 18, 2014, 08:09:00 AM
  • samborabora: sorry, thought this was search, lol
    June 29, 2014, 04:45:12 AM
  • samborabora: sp_embed_image
    June 29, 2014, 04:45:01 AM

* Team Blog

* Recent Posts

Re: Easy one: Displaying an Action in a block by andy
[Today at 12:23:01 AM]


Re: Easy one: Displaying an Action in a block by BurkeKnight
[Yesterday at 03:55:27 PM]


Re: Easy one: Displaying an Action in a block by andy
[Yesterday at 02:29:45 PM]


Re: Easy one: Displaying an Action in a block by XaR
[Yesterday at 01:12:01 PM]


Re: home page help by XaR
[Yesterday at 11:36:41 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: Rounded Avatars  (Read 2208 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 Drawcia

  • Hero Member
  • *****
  • Posts: 2046
  • Gender: Male
  • $("li.blurb").hide();
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Rounded Avatars
« Reply #10 on: June 11, 2013, 12:25:45 PM »
What theme are you using?
Previously known as Leekoberries

Imagination rules the world.

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?