Jump to content

Larger Avatars for Posts Compatible with 4.1 & 4.2


John

Recommended Posts

Then it changes the actual code, rather than the css. Which is bad. :(

i dont think its bad the code only uses pp_main_photo which is something that ipb4 has already implemented its not like i made the code i just used their code in a different place and got the result

lol didn't work because this isn't something css can fix. thanks anyways, really!

I just didn't add any default image for the default image url so that nothing shows instead, it makes the forum much cleaner and encourages people to get an avatar.

i havent been able to use ipb lately to update the code further also cant test it on my phone to see how it looks but if the default profile photo is giving problems you can just reuse the default code by replacing after {{else}} in my code 

<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}" seoTemplate="profile" seoTitle="$seoName"}' data-ipsHover data-ipsHover-target='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}-{$comment->author()->name}&do=hovercard" seoTemplate="profile" seoTitle="$seoName"}' title="{lang="view_user_profile" sprintf="$name"}"><img src="Default Image Url" /></a>

with

<li class='cAuthorPane_photo'>
                {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
            </li>

 

and see if it reverts the default image for the author info for the pc and phone it shouldnt break my code in the earlier page cause ur just replacing that for the default image would just revert the settings for default image on ur forum and not affect the ones uploaded by users

I didn't mean to call your code bad, I meant the fact that it was a code issue rather than CSS made me sad, lol.

I'll check it out on Saturday, thanks! Kinda diggin' the no avatar look atm though.

Link to comment
Share on other sites

  • 4 months later...
On 18/8/2015 at 8:36 PM, v!Ber said:

Hi, i follow all the steps and i have an error when the orther users try to go on Profile settings.Ljyzoyx.png

Only when i'm logged on my profile it work, if i log another user's profile and i go to profile setting i had this error, and all other users have it.

hello please name of theme thank you

  • Downvote 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

use 100% if you want the height to change instead of auto

.ipsUserPhoto_xlarge img, img.ipsUserPhoto_xlarge, .ipsUserPhoto_xlarge:after {
		width: 120px;
		height: 100%;
		{{if theme.rounded_photos}}
			border-radius: 60px;
		{{endif}}
	}
Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...
  • 1 month later...
  • 3 weeks later...
  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...