iacas Posted January 3, 2016 Posted January 3, 2016 56 minutes ago, Nathan Explosion said: I was providing assistance to the person asking where to find the option to handle whether to show rounded photos or not - not advising on how to change avatars at all, so not sure what your point is. No need for the attitude. I was simply pointing out more information: that it won't change anyone's avatars, just how they're seen by that user. The thread originally began by discussing other things: non-square avatars, etc.
Nathan Explosion Posted January 3, 2016 Posted January 3, 2016 11 minutes ago, iacas said: No need for the attitude. I was simply pointing out more information: that it won't change anyone's avatars, just how they're seen by that user. The thread originally began by discussing other things: non-square avatars, etc. No attitude, just didn't see your point. You've explained it now - so thank you. For the record, again - I was responding to a specific question. I am not offering any advice on the original thread content, and it shouldn't be taken as advice on anything other than the specific question....it (the thread) had moved on, and a question was asked so I answered it.
Morrigan Posted January 4, 2016 Posted January 4, 2016 I asked this in Beta. It was determined that it would overall break the functionality of the general site since square images are used universally though the site in a specific way: I do not believe it will be changed.
Morrigan Posted January 4, 2016 Posted January 4, 2016 For those that need this I created a fix for you! Three notes about this fix for you: I will not make this into a hook. If you have a custom PostContainer Template this will break it. You will need to set "max-width" and "max-height" in your CSS to be able to control the size as this will literally take the original image that was uploaded and subsequently "cropped" in the avatar upload process and use it. This means small avatars will be small again and tall avatars will be tall again. Go into your theme and find the template: forums > front > topics > postContainer Replace the entire code with the following: {{$idField = $comment::$databaseColumnId;}} {{$itemClassSafe = str_replace( '\\', '_', mb_substr( $comment::$itemClass, 4 ) );}} {{if $comment->isIgnored()}} <div class='ipsComment ipsComment_ignored ipsType_light' id='elIgnoreComment_{$comment->$idField}' data-ignoreCommentID='elComment_{$comment->$idField}' data-ignoreUserID='{$comment->author()->member_id}'> {lang="ignoring_content" sprintf="$comment->author()->name"} <a href='#elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu data-ipsMenu-menuID='elIgnoreComment_{$comment->$idField}_menu' data-ipsMenu-appendTo='#elIgnoreComment_{$comment->$idField}' data-action="ignoreOptions" title='{lang="see_post_ignore_options"}' class='ipsType_blendLinks'>{lang="options"} <i class='fa fa-caret-down'></i></a> <ul class='ipsMenu ipsHide' id='elIgnoreComment_{$comment->$idField}_menu'> <li class='ipsMenu_item ipsJS_show' data-ipsMenuValue='showPost'><a href='#'>{lang="show_this_post"}</a></li> <li class='ipsMenu_sep ipsJS_show'><hr></li> <li class='ipsMenu_item' data-ipsMenuValue='stopIgnoring'><a href='{url="app=core&module=system&controller=ignore&do=remove&id={$comment->author()->member_id}" seoTemplate="ignore"}'>{lang="stop_ignoring_posts_by" sprintf="$comment->author()->name"}</a></li> <li class='ipsMenu_item'><a href='{url="app=core&module=members&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li> </ul> </div> {{endif}} <a id='comment-{$comment->$idField}'></a> <article itemscope {{if $item->isQuestion() && !$comment->new_topic}}itemprop="suggestedAnswer {{if $comment->post_bwoptions['best_answer']}}acceptedAnswer{{endif}}" itemtype="http://schema.org/Answer"{{else}}itemtype="http://schema.org/Comment"{{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden()}}ipsModerated{{endif}}'> {{if $item->isQuestion() and !$comment->new_topic}} {template="postRating" group="topics" app="forums" params="$item, $comment, $votes"} {{endif}} <aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium'> <h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break' itemprop="creator" itemscope itemtype="http://schema.org/Person"><strong itemprop="name">{$comment->author()->link( $comment->warningRef() )|raw}</strong> <span class='ipsResponsive_showPhone ipsResponsive_inline'> {template="reputationBadge" group="global" app="core" params="$comment->author()"}</span></h3> <ul class='cAuthorPane_info ipsList_reset'> {{if $comment->author()->member_title && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'>{$comment->author()->member_title}</li> {{elseif $comment->author()->rank['title'] && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'>{$comment->author()->rank['title']}</li> {{endif}} {{if $comment->author()->rank['image'] && $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'>{$comment->author()->rank['image']|raw}</li> {{endif}} <li class='cAuthorPane_photo'> {{if $comment->author()->member_id and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) )}} {{$memberURL = ( $warningRef ) ? $comment->author()->url()->setQueryString( 'wr', $warningRef ) : $comment->author()->url();}} <a href="{$memberURL}" {{if $hovercard}}data-ipsHover data-ipsHover-target="{$memberURL->setQueryString( 'do', 'hovercard' )}"{{endif}} class="ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}" title="{lang="view_user_profile" sprintf="$comment->author()->name"}"> <img src='{file="$comment->author()->pp_main_photo" extension="core_Profile"}' alt=''> </a> {{else}} <span class='ipsUserPhoto ipsUserPhoto_{$size} {{if $classes}}{$classes}{{endif}}'> <img src='{file="$comment->author()->pp_main_photo" extension="core_Profile"}' alt=''> </span> {{endif}} </li> <li>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->formattedName" raw="true"}</li> {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }} <li class='ipsResponsive_hidePhone'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li> {{endif}} {{if $comment->author()->member_id}} <li class='ipsResponsive_hidePhone'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</li> <li class='ipsType_light'>{lang="member_post_count" pluralize="$comment->author()->member_posts"}</li> {{if $comment->author()->reputationImage()}} <li class='ipsPad_half ipsResponsive_hidePhone'> <img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''> </li> {{endif}} {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"} {{endif}} </ul> </aside> <div class='ipsColumn ipsColumn_fluid'> {template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"} </div> </article> This will return the functionality that you want.
BomAle Posted April 10, 2016 Posted April 10, 2016 No way to fix the max width/height separately? pp_main_photo could have dimensions like 400px*600px... overload the loading of page There are resize options?
Morrigan Posted April 10, 2016 Posted April 10, 2016 No, not with the way IPS deals with avatars in v4.
OctoDev Posted January 27, 2017 Posted January 27, 2017 On 10.4.2016 at 6:27 PM, Morrigan said: No, not with the way IPS deals with avatars in v4. This would be a nice plugin lol... The template you made
Zephers Posted July 8, 2017 Posted July 8, 2017 Thanks so much for this fix!!!!!!!! Been searching all through the avatar threads and of course is in last one I read.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.