collapse

* User Info

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

* Who's Online

  • Dot Guests: 62
  • Dot Hidden: 0
  • Dot Users: 1
  • Dot Users Online:

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • ♦ Ninja ZX-10RR ♦: Cool! Glad that you enjoy SimplePortal! :)
    May 02, 2015, 01:12:20 pm
  • iain sherriff: first SP portal installafter trying most of the others...flawless :)
    May 02, 2015, 09:17:00 am
  • streetfire: hi guys!
    April 30, 2015, 06:59:50 pm
  • empire: good luck with your friends and relatives of his father had to get to work
    April 30, 2015, 09:30:53 am
  • Rupurudu!: :)
    April 28, 2015, 08:27:16 pm
  • empire: when I say bob bob it means bob bob
    April 27, 2015, 10:30:46 am
  • CHRIS-7: Hi - SMF V2.0.10 is Relased ! ;D
    April 25, 2015, 12:57:14 am
  • Advaita: hi
    April 23, 2015, 06:49:20 pm
  • player.samp: If you need help, create a topic in the support board: [link] :)
    April 21, 2015, 04:41:00 pm
  • sezing: i need help
    April 14, 2015, 03:41:27 pm
  • sezing: as
    April 14, 2015, 03:41:22 pm
  • CaLy: yup thanks ninja, i will check right now! thanks
    March 23, 2015, 07:12:16 pm
  • ♦ Ninja ZX-10RR ♦: Lol 420connect, everybody needs help anyway ;) People achieve more as a team! @CaLy, old version I think. Check your topic.
    March 23, 2015, 06:56:02 pm
  • CaLy: why i dont have SPortal2.php ?
    March 23, 2015, 12:25:51 pm
  • 420connect: .. too many ideas - not enough knowledge!
    March 23, 2015, 11:46:00 am
  • 420connect: I feel like I am the only person who needs help with SP :P
    March 23, 2015, 11:45:42 am
  • cachencho29: hola gente e creado una web llamada liberatuandroid.com si hay algun interesado en hacer sus aporte
    March 23, 2015, 07:59:38 am
  • {OCS}MasterSeal: Just once more, I'd like to say Thank you to all involved for SP. Cheers.
    March 16, 2015, 11:45:52 am
  • Chen Zhen: newbies that post links are restricted until moderated due to spam control
    March 02, 2015, 08:44:47 pm
  • brianwilcox: I would make a support thread for it... but I can't.
    February 28, 2015, 07:34:25 pm

* Recent Posts

Re: Blocks on pages by ♦ Ninja ZX-10RR ♦
[Today at 08:22:17 am]


Re: Blocks on pages by iain sherriff
[Today at 05:44:41 am]


Re: SimplePortal 2.3.5 Çıktı! by tc bolubeyi
[Yesterday at 07:00:11 pm]


Re: The photographs appear to be added to the block by ♦ Ninja ZX-10RR ♦
[Yesterday at 12:54:01 pm]


Re: Blocks on pages by iain sherriff
[Yesterday at 12:25:53 pm]

Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Author Topic: Rounded Avatars  (Read 2449 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, 10: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, 11: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, 10: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, 01: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, 03: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, 11: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, 09: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, 10: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, 01: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, 03: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, 12:15:46 pm »
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 Maizono

  • Hero Member
  • *****
  • Posts: 2069
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
Re: Rounded Avatars
« Reply #10 on: June 11, 2013, 02: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, 07: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?