collapse

* User Info

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

* Who's Online

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

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • Underdog: there have been recent host changes and most likely issues due to configuration during that process. all should be resolved now please let us know of any further issue in this board: [link]  .. Thank you.
    December 20, 2014, 05:41:39 pm
  • BurkeKnight: Well, sometimes that error does show, like I said, when don't even get to the server. I have yet to figure out why...lol... However, there are times that you will see a msg about server stress here, but I have yet to get a 500 error, myself. And I'm here about 30 times a day, checking for new posts. :P
    December 20, 2014, 05:18:38 am
  • SeeingBlue: I was under the impressions that 500 Internal Server Error are only produced by the server(aka your site). Plus sanb below said he was having the same issue. Anyways just trying to help, not arguing.
    December 19, 2014, 06:59:40 pm
  • BurkeKnight: SeeingBlue, it may not be this end. There may be an issue in the connection from you to the SP site, that shows that. I know things like that can happen, due to the fact I had issues on my own site before, yet no one else did, nor were there any logs on it.
    December 19, 2014, 02:46:05 pm
  • ♦ Ninja ZX-10RR ♦: I'm not admin nor a staff member... I tried connecting with a different IP and via proxy. No errors...
    December 18, 2014, 01:15:06 pm
  • SeeingBlue: You've just been lucky, Ninja. There is a problem. Check your stats and see how many 500 error hits you've been getting.
    December 18, 2014, 08:08:56 am
  • ♦ Ninja ZX-10RR ♦: The server might be have a high load but it still works here...
    December 17, 2014, 03:13:51 pm
  • sanb: i cant post a reply(
    December 17, 2014, 01:36:59 pm
  • SeeingBlue: It's intermittent. I bet if the admin logs into the cpanel they'll find either CPU or Ram hitting it's limit.
    December 17, 2014, 09:11:07 am
  • ♦ Ninja ZX-10RR ♦: The site works fine here...
    December 16, 2014, 11:01:27 am
  • SeeingBlue: I was finally able to make 1 post, but I can't edit it or make another. I'm frustrated, I give up.
    December 16, 2014, 08:49:37 am
  • SeeingBlue: I even tried a different browser. I'm just getting a 500 Internal Server Error.
    December 16, 2014, 08:30:15 am
  • SeeingBlue: When I "hit" post, sorry.
    December 16, 2014, 08:26:04 am
  • SeeingBlue: I'm trying to reply to my thread "Loading custom JS files" and when I get post it just loads a blank page.
    December 16, 2014, 08:25:43 am
  • Eliana Tamerin: Let's kick this over to his support topic, folks.
    December 03, 2014, 10:16:21 pm
  • Underdog: what is the issue with it? the naviagtion links? look here: [link]
    December 03, 2014, 09:54:07 pm
  • [SiNaN]: Oh! I didn't even see that. The author seems to have posted some instructions at the theme support topic at sm.org: [link]
    December 03, 2014, 02:11:58 pm
  • WhiteEagle: No the menu on top... the one that comes down when you mouse over it. ;)
    December 03, 2014, 02:02:35 pm
  • [SiNaN]: I already posted it!
    December 03, 2014, 01:51:11 pm
  • WhiteEagle: Any idea what I can do with the menu on top in that theme [SiNaN]?
    December 03, 2014, 01:28:25 pm

* Recent Posts

Re: Issue w/ blocks on pages by SeeingBlue
[Yesterday at 04:04:25 pm]


Re: Issue w/ blocks on pages by Underdog
[Yesterday at 10:05:13 am]


Issue w/ blocks on pages by SeeingBlue
[Yesterday at 09:02:52 am]


Re: Pretty Page URLs by SeeingBlue
[Yesterday at 08:45:03 am]


Re: Issues with icon can not change due to theme by Tonymura
[Yesterday at 06:49:12 am]

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 2327 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?
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?