Jump to content

New Badges & Member Title / AuthorPane* [postContainer]


STEFAN1

Recommended Posts

Hello,

I tried and tried to fix this problem and couldn't find a solution... I want the classic "Member Title" back, instead of the new badges and ranks...

I got 2 examples to show you what I mean. 

  1. Before the update, it was like this: https://prnt.sc/1qgw4nj [It worked perfectly.]
  2. Now, it's very bugged and looks like this: https://prnt.sc/1qfnq90

I want the old postContainer back, the classic one, like in this pic [https://prnt.sc/1qgw4nj]... Can you help me, please?

Link to comment
Share on other sites

  • STEFAN1 changed the title to New Badges & Member Title / AuthorPane* [postContainer]
2 hours ago, DiaboliK. said:

Revert the postContainer to the IPS version and put here the code.

Here:

{{$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=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}
<a id='comment-{$comment->$idField}'></a>
<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox ipsResponsive_pull {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}} {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}} {{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}ipsComment_solved{{endif}}'>
	{{if $item->isQuestion() and !$comment->new_topic}}
		{template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
	{{endif}}

	{{if $comment->author()->hasHighlightedReplies() || ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid ) || $comment->isFeatured() || ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
		<div class='ipsResponsive_showPhone ipsComment_badges'>
			<ul class='ipsList_reset ipsFlex ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1'>
				{{if $comment->author()->hasHighlightedReplies()}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_highlightedGroup'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->name" raw="true"}</strong></li>
				{{endif}}
				{{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_positive ipsBadge_reverse'><i class='fa fa-check'></i> {lang="this_is_a_solved_post"}</strong></li>
				{{endif}}
				{{if $comment->isFeatured()}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_featured_post"}</strong></li>
				{{endif}}
				{{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_popular_post"}</strong></li>
				{{endif}}
			</ul>
		</div>
	{{endif}}

	<div class='cAuthorPane_mobile ipsResponsive_showPhone'>
		<div class='cAuthorPane_photo'>
			<div class='cAuthorPane_photoWrap'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
				{{if $comment->author()->modShowBadge()}}
				<span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
				{{elseif $comment->author()->joinedRecently()}}
				<span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
				{{endif}}
				{{if !$comment->isAnonymous() and $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
					<a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=badges" seoTemplate="profile_badges" seoTitle="$comment->author()->members_seo_name"}">
						{$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
					</a>
				{{endif}}
			</div>
		</div>
		<div class='cAuthorPane_content'>
			<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center'>
				{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"}
			</h3>
			<div class='ipsType_light ipsType_reset'>
				<a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsType_blendLinks'>{$comment->dateLine()|raw}</a>
				{{if $comment->ip_address and \IPS\Member::loggedIn()->modPermission('can_use_ip_tools') and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
					&middot; <a class='ipsType_blendLinks ipsType_light ipsType_noUnderline ipsType_noBreak' href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}" data-ipsMenu data-ipsMenu-menuID='{$comment->$idField}_ip_menu'>{lang="ip_short"} <i class='fa fa-angle-down'></i></a>
				{{endif}}
			</div>
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'><strong>{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), FALSE, $comment->isAnonymous()"}</strong>
			{{if $comment->isAnonymous() and \IPS\Member::loggedIn()->modPermission('can_view_anonymous_posters')}}
				<a data-ipsHover data-ipsHover-width="370" data-ipsHover-onClick href="{{if $comment->isFirst()}}{$comment->item()->url( 'reveal' )->csrf()}{{else}}{$comment->url( 'reveal' )->csrf()}{{endif}}"><span class="cAuthorPane_badge cAuthorPane_badge--anon" data-ipsTooltip title="{lang="post_anonymously_reveal"}"></span></a>
			{{endif}}
		</h3>
		<ul class='cAuthorPane_info ipsList_reset'>
			<li data-role='photo' class='cAuthorPane_photo'>
				<div class='cAuthorPane_photoWrap'>
					{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
					{{if $comment->author()->modShowBadge()}}
						<span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
					{{elseif $comment->author()->joinedRecently()}}
						<span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
					{{endif}}
					{{if !$comment->isAnonymous() and $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
						{$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
					{{endif}}
				</div>
			</li>
			{{if !$comment->isAnonymous()}}
				<li data-role='group'>{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 data-role='group-icon'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
				{{endif}}
			{{endif}}
			{{if $comment->author()->member_id}}
				<li data-role='stats' class='ipsMargin_top'>
					<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
						<li>
							<a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=content" seoTemplate="profile_content" seoTitle="$comment->author()->members_seo_name"}" title="{lang="member_post_count" pluralize="$comment->author()->member_posts"}" data-ipsTooltip class="ipsType_blendLinks">
								<i class="fa fa-comment"></i> {number="$comment->author()->member_posts" format="short"}
							</a>
						</li>
						{{if isset( $comment->author_solved_count )}}
							<li>
								<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=solutions" seoTemplate="profile_solutions" seoTitle="$comment->author()->members_seo_name"}' title="{lang="solved_badge_tooltip" pluralize="$comment->author_solved_count"}" data-ipsTooltip class='ipsType_blendLinks'>
									<i class='fa fa-check-circle'></i> {number="$comment->author_solved_count"}
								</a>
							</li>
						{{endif}}
					</ul>
				</li>
			{{endif}}
			{{if $comment->author()->member_id}}
				{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
			{{endif}}
		</ul>
	</aside>
	<div class='ipsColumn ipsColumn_fluid ipsMargin:none'>
		{template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
	</div>
</article>

 

Link to comment
Share on other sites

I would like to see the postContainer template from the selected theme itself, not a reverted version as we all have that one in our default IPS theme.

A direct link to your website would be best, but it is not absolutely necessary. :)

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

15 hours ago, Oni said:

I would like to see the postContainer template from the selected theme itself, not a reverted version as we all have that one in our default IPS theme.

A direct link to your website would be best, but it is not absolutely necessary. :)

Here: https://jaxi.ro/forum/

And the theme's postContainer:

{{$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=system&controller=ignore" seoTemplate="ignore"}'>{lang="change_ignore_preferences"}</a></li>
		</ul>
	</div>
{{endif}}
<a id='comment-{$comment->$idField}'></a>
<article {{if $comment->author()->hasHighlightedReplies()}}data-memberGroup="{$comment->author()->member_group_id}" {{endif}} id='elComment_{$comment->$idField}' class='cPost ipsBox ipsResponsive_pull {{if $otherClasses}}{$otherClasses}{{endif}} ipsComment {{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) OR $comment->isFeatured()}}ipsComment_popular{{endif}} ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone {{if $comment->author()->hasHighlightedReplies()}}ipsComment_highlighted{{endif}} {{if $comment->isIgnored()}}ipsHide{{endif}} {{if $comment->hidden() OR $item->hidden() === -2}}ipsModerated{{endif}} {{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}ipsComment_solved{{endif}}'>
	{{if $item->isQuestion() and !$comment->new_topic}}
		{template="postRating" group="topics" app="forums" params="$item, $comment, $votes"}
	{{endif}}

	{{if $comment->author()->hasHighlightedReplies() || ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid ) || $comment->isFeatured() || ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
		<div class='ipsResponsive_showPhone ipsComment_badges'>
			<ul class='ipsList_reset ipsFlex ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1'>
				{{if $comment->author()->hasHighlightedReplies()}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_highlightedGroup'>{expression="\IPS\Member\Group::load( $comment->author()->member_group_id )->name" raw="true"}</strong></li>
				{{endif}}
				{{if ( $comment->item()->isSolved() and $comment->item()->mapped('solved_comment_id') == $comment->pid )}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_positive ipsBadge_reverse'><i class='fa fa-check'></i> {lang="this_is_a_solved_post"}</strong></li>
				{{endif}}
				{{if $comment->isFeatured()}}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_featured_post"}</strong></li>
				{{endif}}
				{{if ( settings.reputation_enabled and settings.reputation_highlight and $comment->reactionCount() >= settings.reputation_highlight ) }}
					<li><strong class='ipsBadge ipsBadge_large ipsBadge_popular'>{lang="this_is_a_popular_post"}</strong></li>
				{{endif}}
			</ul>
		</div>
	{{endif}}

	<div class='cAuthorPane_mobile ipsResponsive_showPhone'>
		<div class='cAuthorPane_photo'>
			<div class='cAuthorPane_photoWrap'>
				{template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
				{{if $comment->author()->modShowBadge()}}
				<span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
				{{elseif $comment->author()->joinedRecently()}}
				<span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
				{{endif}}
{{if theme.fluent_global_version === 'ips46'}}
				{{if $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
					<a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=badges" seoTemplate="profile_badges" seoTitle="$comment->author()->members_seo_name"}">
						{$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
					</a>
				{{endif}}
{{endif}}
			</div>
		</div>
		<div class='cAuthorPane_content'>
			<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsTruncate ipsTruncate_line'>
				{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE"}
          		{{if (theme.fluent_topics_status and theme.fluent_topics_status_mobile) AND ( $comment->author()->isOnline() AND !$comment->author()->isOnlineAnonymously() ) OR ( $comment->author()->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() )}}
          			<i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title="{lang="online_now" sprintf="$comment->author()->name"}"></i>
          		{{endif}}
				<span class='ipsMargin_left:half'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
			</h3>
			<div class='ipsType_light ipsType_reset'>
				<a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsType_blendLinks'>{$comment->dateLine()|raw}</a>
				{{if $comment->ip_address and \IPS\Member::loggedIn()->modPermission('can_use_ip_tools') and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
					&middot; <a class='ipsType_blendLinks ipsType_light ipsType_noUnderline ipsType_noBreak' href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}" data-ipsMenu data-ipsMenu-menuID='{$comment->$idField}_ip_menu'>{lang="ip_short"} <i class='fa fa-angle-down'></i></a>
				{{endif}}
			</div>
		</div>
	</div>
	<aside class='ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone'>
		<h3 class='ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break'>
          	<strong>
{{if theme.fluent_global_version === 'ips46'}}
            	{{if theme.fluent_topics_nick}}
            		{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"}
            	{{else}}
            		{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), FALSE, $comment->isAnonymous()"}
            	{{endif}}
{{else}}
            	{{if theme.fluent_topics_nick}}
            		{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE"}
            	{{else}}
            		{template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), FALSE"}
            	{{endif}}
{{endif}}
          	</strong>
          	{{if theme.fluent_topics_status AND ( $comment->author()->isOnline() AND !$comment->author()->isOnlineAnonymously() ) OR ( $comment->author()->isOnlineAnonymously() AND \IPS\Member::loggedIn()->isAdmin() )}}
          		<i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title="{lang="online_now" sprintf="$comment->author()->name"}"></i>
          	{{endif}}
{{if theme.fluent_global_version === 'ips46'}}
			{{if $comment->isAnonymous() and \IPS\Member::loggedIn()->modPermission('can_view_anonymous_posters')}}
				<a data-ipsHover data-ipsHover-width="370" data-ipsHover-onClick href="{{if $comment->isFirst()}}{$comment->item()->url( 'reveal' )->csrf()}{{else}}{$comment->url( 'reveal' )->csrf()}{{endif}}"><span class="cAuthorPane_badge cAuthorPane_badge--anon" data-ipsTooltip title="{lang="post_anonymously_reveal"}"></span></a>
			{{endif}}
{{endif}}
          	{{if $comment->author()->bday_day == \IPS\DateTime::create()->format( 'd' ) AND $comment->author()->bday_month == \IPS\DateTime::create()->format( 'm' ) AND \IPS\Settings::i()->profile_birthday_type == 'public' and theme.fluent_global_birthday_topics and theme.fluent_global_birthday_topics_position == 0}}
          		<span class='aXenBirthday_topic' data-ipstooltip _title="{lang='fluent_birthday_block_text'}"><i class="fas fa-birthday-cake"></i></span>
          	{{endif}}
		</h3>
      
      
      
      
      
      
      
      
      
      
      
      
  <ul class='cAuthorPane_info ipsList_reset'>
{{if theme.fluent_global_version === 'ips45'}}
			{{if $comment->author()->member_title && $comment->author()->member_id}}
				<li data-role='member-title' class='ipsType_break'>{$comment->author()->member_title}</li>
			{{elseif $comment->author()->rank['title'] && $comment->author()->member_id}}
				<li data-role='rank-title' class='ipsType_break'>{$comment->author()->rank['title']}</li>
			{{endif}}
			{{if $comment->author()->rank['image'] && $comment->author()->member_id}}
				<li data-role='rank-image'>{$comment->author()->rank['image']|raw}</li>
			{{endif}}
{{endif}}

			<li data-role='photo' class='cAuthorPane_photo'>
				<div class='cAuthorPane_photoWrap'>
                  {{if $comment->author()->pp_main_photo AND $comment->author()->pp_thumb_photo}}
  					<img src="{url="" base=""}/uploads/{$comment->author()->pp_main_photo}">
  					{{else}}
  					<img src="{$comment->author()->photo}">
  					{{endif}}
					
					 {{if $comment->author()->modShowBadge()}}
  						<span class="cAuthorPane_badge cAuthorPane_badge--moderator" data-ipsTooltip title="{lang="member_is_moderator" sprintf="$comment->author()->name"}"></span>
  					{{elseif $comment->author()->joinedRecently()}}
  						<span class="cAuthorPane_badge cAuthorPane_badge--new" data-ipsTooltip title="{lang="member_is_new_badge" sprintf="$comment->author()->name"}"></span>
  					{{endif}}
{{if theme.fluent_global_version === 'ips46'}}
					{{if $comment->author()->canHaveAchievements() and \IPS\core\Achievements\Rank::show() and $rank = $comment->author()->rank()}}
						{$rank->html( 'cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px' )|raw}
					{{endif}}
{{endif}}
				</div>
			</li>
{{if theme.fluent_global_version === 'ips46'}}
			{{if !$comment->isAnonymous()}}
				<li data-role='group'>{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 data-role='group-icon'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
				{{endif}}
			{{endif}}
{{else}}
			<li data-role='group'>{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 data-role='group-icon'><img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'></li>
          	{{endif}}
{{endif}}
			{{if $comment->author()->member_id and theme.fluent_topics_cAuthorPane_style > 0}}
          		{{if theme.fluent_topics_cAuthorPane_style == 2}}
				<li data-role='stats' class='ipsMargin_top'>
          			<ul class='ipsFlex ipsFlex-ai:center ipsFlex-jc:center aXenTopics_cAuthorPane_icons'>
            			<li data-role='posts' class='ipsFlex ipsFlex-jc:center ipsFlex-ai:center' data-ipstooltip _title="{lang="announce_type_content"}">
              				<i class="fas fa-comments"></i>
              				<span class="ipsFlex ipsFlex-jc:center ipsFlex-ai:center">{number="$comment->author()->member_posts" format="short"}</span>
            			</li>
                      
            			<li data-role='reputation' class='ipsFlex ipsFlex-jc:center ipsFlex-ai:center {{if $comment->author()->pp_reputation_points > 1}}aXenTopics_cAuthorPane_icons_positive{{elseif $comment->author()->pp_reputation_points < 0}}aXenTopics_cAuthorPane_icons_negative{{else}}aXenTopics_cAuthorPane_icons_neutral{{endif}}' data-ipstooltip _title="{lang="mf_reputation"}">
              				<i class="{{if $comment->author()->pp_reputation_points >= 0}}fas fa-plus{{else}}fas fa-minus{{endif}}"></i>
              				<span class="ipsFlex ipsFlex-jc:center ipsFlex-ai:center">{number="$comment->author()->pp_reputation_points" format="short"}</span>
            			</li>
                      	{{if theme.fluent_topics_cAuthorPane_style_last == 0}}
            				<li data-role='solved' class='ipsFlex ipsFlex-jc:center ipsFlex-ai:center' data-ipstooltip _title="{lang="solved_solved"}">
              					<i class="fa fa-check"></i>
              					<span class="ipsFlex ipsFlex-jc:center ipsFlex-ai:center">{{if isset( $comment->author_solved_count )}}{number="$comment->author_solved_count" format="short"}{{else}}0{{endif}}</span>
            				</li>
                     	 {{else}}
            				<li data-role='days-won' class='ipsFlex ipsFlex-jc:center ipsFlex-ai:center' data-ipstooltip _title="{lang="members_days_won_count"}">
              					<i class="fas fa-trophy"></i>
              					<span class="ipsFlex ipsFlex-jc:center ipsFlex-ai:center">{number="$comment->author()->getReputationDaysWonCount()" format="short"}</span>
            				</li>
                      	{{endif}}
          			</ul>
          		</li>
          		{{endif}}
          		<li data-role='stats' class='ipsMargin_top'>
          		<ul class='aXenTopics_cAuthorPane_info'>
                	{{if theme.fluent_topics_cAuthorPane_style != 2}}
                  		{{if theme.fluent_topics_cAuthorPane_info_post}}
							<li data-role='posts'>
                      			<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-comments"></i> {{endif}}{lang="announce_type_content"}:</span>
                      			<span class='aXenTopics_cAuthorPane_info:content'>
{{if theme.fluent_global_version === 'ips46'}}
                                	<a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=content" seoTemplate="profile_content" seoTitle="$comment->author()->members_seo_name"}" title="{lang="member_post_count" pluralize="$comment->author()->member_posts"}" data-ipsTooltip class="ipsType_blendLinks">
										<i class="fa fa-comment"></i> {number="$comment->author()->member_posts" format="short"}
									</a>
{{else}}
									<span class='aXenTopics_cAuthorPane_info:content'>{number="$comment->author()->member_posts" format="short"}</span>
{{endif}}
                              	</span>
          					</li>
                  		{{endif}}
                  
                  		{{if theme.fluent_topics_cAuthorPane_info_rep}}
							<li data-role='reputation'>
                      			<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-comments"></i> {{endif}}{lang="mf_reputation"}:</span>
                      			<span class='aXenTopics_cAuthorPane_info:content'>{template="reputationBadge" group="global" app="core" params="$comment->author()"}</span>
          					</li>
                  		{{endif}}
                  
                  		{{if theme.fluent_topics_cAuthorPane_info_solved}}
							<li data-role='solved'>
                      			<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fa fa-check"></i> {{endif}}{lang="solved_solved"}:</span>
                      			<span class='aXenTopics_cAuthorPane_info:content'>
{{if theme.fluent_global_version === 'ips46'}}
                                	<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=solutions" seoTemplate="profile_solutions" seoTitle="$comment->author()->members_seo_name"}' title="{lang="solved_badge_tooltip" pluralize="$comment->author_solved_count"}" data-ipsTooltip class='ipsType_blendLinks'>
										<i class='fa fa-check-circle'></i> {number="$comment->author_solved_count"}
									</a>
{{else}}
                      			<span class='aXenTopics_cAuthorPane_info:content'>{{if isset( $comment->author_solved_count )}}{number="$comment->author_solved_count" format="short"}{{else}}0{{endif}}</span>
{{endif}}
                              	</span>
          					</li>
                  		{{endif}}
                  	{{endif}}
          			{{if theme.fluent_topics_cAuthorPane_info_id}}
          				<li data-role='member-id'>
                      		<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-user-tag"></i> {{endif}}{lang="fluent_memberID"}:</span>
                      		<span class='aXenTopics_cAuthorPane_info:content'>{$comment->author()->member_id}</span>
          				</li>
                  	{{endif}}
                  
          			{{if theme.fluent_topics_cAuthorPane_info_won}}
          				<li data-role='days-won'>
                      		<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-trophy"></i> {{endif}}{lang="members_days_won_count"}:</span>
                      		<span class='aXenTopics_cAuthorPane_info:content'>{number="$comment->author()->getReputationDaysWonCount()"}</span>
                    	</li>
          			{{endif}}
                  
                  	{{if theme.fluent_topics_cAuthorPane_info_joined}}
          				<li data-role='joined'>
                      		<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-user-plus"></i> {{endif}}{lang="joined"}:</span>
                      		<span class='aXenTopics_cAuthorPane_info:content'>{datetime="$comment->author()->joined" dateonly="true"}</span>
          				</li>
                  	{{endif}}
                  
                  	{{if $comment->author()->birthday AND \IPS\Settings::i()->profile_birthday_type == 'public' and theme.fluent_topics_cAuthorPane_info_birthday}}
          				<li data-role='birthday'>
                      		<span>{{if theme.fluent_topics_cAuthorPane_icons}}<i class="fas fa-birthday-cake"></i> {{endif}}{lang="bday"}:</span>
                      		<span class='aXenTopics_cAuthorPane_info:content'>{$comment->author()->birthday}</span>
          				</li>
                  	{{endif}}
                  /*	{{if $comment->author()->member_id}}
						{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
					{{endif}} */
          		</ul>
          		</li>
			{{elseif $comment->author()->member_id and theme.fluent_topics_cAuthorPane_style == 0}}
				<li data-role='stats' class='ipsMargin_top'>
					<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
                      	{{if theme.fluent_topics_cAuthorPane_info_post}}
							<li>
								<a href="{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=content" seoTemplate="profile_content" seoTitle="$comment->author()->members_seo_name"}" title="{lang="member_post_count" pluralize="$comment->author()->member_posts"}" data-ipsTooltip class="ipsType_blendLinks">
									<i class="fa fa-comment"></i> {number="$comment->author()->member_posts" format="short"}
								</a>
							</li>
                      	{{endif}}
                      	{{if theme.fluent_topics_cAuthorPane_info_rep}}
                      		<li>
                              {template="reputationBadge" group="global" app="core" params="$comment->author()"}
                            </li>
                      	{{endif}}
						{{if isset( $comment->author_solved_count ) and theme.fluent_topics_cAuthorPane_info_solved}}
							<li>
								<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=solutions" seoTemplate="profile_solutions" seoTitle="$comment->author()->members_seo_name"}' title="{lang="solved_badge_tooltip" pluralize="$comment->author_solved_count"}" data-ipsTooltip class='ipsType_blendLinks'>
									<i class='fa fa-check-circle'></i> {number="$comment->author_solved_count"}
								</a>
							</li>
						{{endif}}
					</ul>
				</li>
          
          		{{if theme.fluent_topics_cAuthorPane_info_id}}
          			<li data-role='member-id' class='ipsType_light'>{lang="member_id"}: {$comment->author()->member_id}</li>
          		{{endif}}
          		{{if theme.fluent_topics_cAuthorPane_info_won}}
          			<li data-role='days-won' class='ipsType_light'>{lang="members_days_won_count"}: {number="$comment->author()->getReputationDaysWonCount()"}</li>
          		{{endif}}
          
          		{{if theme.fluent_topics_cAuthorPane_info_joined}}
          			<li data-role='joined' class='ipsType_light'>{lang="joined"}: {datetime="$comment->author()->joined" dateonly="true"}</li>
          		{{endif}}
          
				{{if $comment->author()->birthday AND \IPS\Settings::i()->profile_birthday_type == 'public' and theme.fluent_topics_cAuthorPane_info_birthday}}          
          			<li data-role='birthday' class='ipsType_light'>{lang="bday"}: {$comment->author()->birthday}</li>
          		{{endif}}

				{{if $comment->author()->reputationImage()}}
					<li data-role='reputation-image' class='ipsPadding:half'>
						<img src='{file="$comment->author()->reputationImage()" extension="core_Theme"}' title='{{if $comment->author()->reputation()}}{$comment->author()->reputation()}{{endif}}' alt=''>
					</li>
				{{endif}}
          		{{if $comment->author()->member_id}}
					{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
				{{endif}}
			{{endif}}
          	{{if $comment->author()->member_id}}
          		{{if theme.fluent_topics_clubs}}
          			<li>
                		{{$clubs = 0;}}
						{{foreach \IPS\Member\Club::clubs( $comment->author(), NULL, 'name', TRUE ) as $club}}
          					{{$clubs++;}}
							<a href='{$club->url()}' class='ipsUserPhoto ipsUserPhoto_tiny cClubIcon' data-ipstooltip _title='{$club->name}'>
							{{if $club->profile_photo}}
								<img src='{file="$club->profile_photo" extension="core_Clubs"}' alt='{$club->name}'>
							{{else}}
								<img src='{resource="default_club.png" app="core" location="global"}' alt='{$club->name}'>
							{{endif}}
							</a>
          					{{if $clubs >= theme.fluent_topics_clubs_number}}{{break;}}{{endif}}
		    			{{endforeach}}
          			</li>
          		{{endif}}
          		{{if $comment->author()->bday_day == \IPS\DateTime::create()->format( 'd' ) AND $comment->author()->bday_month == \IPS\DateTime::create()->format( 'm' ) AND \IPS\Settings::i()->profile_birthday_type == 'public' and theme.fluent_global_birthday_topics and theme.fluent_global_birthday_topics_position == 1}}
          			<span class='aXenBirthday_topic' data-ipstooltip _title="{lang='fluent_birthday_block_text'}"><i class="fas fa-birthday-cake"></i></span>
          		{{endif}}
          	{{endif}}
		</ul>
	</aside>
	<div class='ipsColumn ipsColumn_fluid ipsMargin:none'>
		{template="post" group="topics" app="forums" params="$item, $comment, $item::$formLangPrefix . 'comment', $item::$application, $item::$module, $itemClassSafe"}
	</div>
</article>

 

Link to comment
Share on other sites

Seems like the function get_rank() of the member class is deprecated and your theme doesn't support the postContainer changes that came with the new Achievements-feature. But that's not a problem, I took a look at it and here is the proper solution:

<p class='ipsType_reset ipsType_semiBold'>{$comment->author()->rank()->_title}</p>

Add it above the user photo or below the user badge, that's up to you.

Edited by Oni

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

32 minutes ago, Oni said:

Seems like the function get_rank() of the member class is deprecated and your theme doesn't support the postContainer changes that came with the new Achievements-feature. But that's not a problem, I took a look at it and here is the proper solution:


<p class='ipsType_reset ipsType_semiBold'>{$comment->author()->rank()->_title}</p>

Add it above the user photo or below the user badge, that's up to you.

So, I added what you gave me, and it looks like this: https://prnt.sc/1qie6rt

Even if I disabled the Badges & Ranks...

Instead of that, I found a solution for the Member Title, I created a custom field [TEXT] and users can't edit them by theirself, but I don't know which is in the postContainer to put it above the member's photo. 

This is what I mean: https://prnt.sc/1qie9zt

Link to comment
Share on other sites

Didn't you want to restore the rank title above the user photo like you showed us on the first picture? That's exactly what it does. If you want custom rank titles; the function has apparently been removed with the new update, I don't see any reference to it anymore.

Your approach is smart, but requires to rewrite the customFieldsDisplay template because 1. You can only move ALL current and future custom fields because they are dynamically rendered by the customFieldsDisplay template, 2. Even if you only have one CustomField and don't add any more in the future, it will show up in the same format as on your last picture which is pretty ugly.

If you don't care, this is the code you have to move:

{{if $comment->author()->member_id}}
	{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
{{endif}}

If you care, you rewrite the customFieldsDisplay or load all customFields of the user (contentProfileFields()) and only render the value of the customField instead, this would look much better, just like it was before.

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

14 hours ago, Oni said:

Didn't you want to restore the rank title above the user photo like you showed us on the first picture? That's exactly what it does. If you want custom rank titles; the function has apparently been removed with the new update, I don't see any reference to it anymore.

Your approach is smart, but requires to rewrite the customFieldsDisplay template because 1. You can only move ALL current and future custom fields because they are dynamically rendered by the customFieldsDisplay template, 2. Even if you only have one CustomField and don't add any more in the future, it will show up in the same format as on your last picture which is pretty ugly.

If you don't care, this is the code you have to move:


{{if $comment->author()->member_id}}
	{template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
{{endif}}

If you care, you rewrite the customFieldsDisplay or load all customFields of the user (contentProfileFields()) and only render the value of the customField instead, this would look much better, just like it was before.

Thank you so much, @ Oni! I solved the problem. :)

It looks like this now, as I wished: https://prnt.sc/1qjkiks, but there's still 1 more problem, but I can do it without it...

https://prnt.sc/1qjkl1u If you have any idea of the code i need here for the content number & reputation...? It would be great. You can see what I mean in this topic/on this website: https://forum.indungi.ro/topic/866121-despre-tsindungiro-predare/ [https://prnt.sc/1qjkuro]

Thanks again, @ Oni! Have a nice one!

Link to comment
Share on other sites

Rank dots were also removed with the update, but I can for sure help you with content number and reputation.

Posts:

{number="$comment->author()->member_posts" format="short"}

Reputation:

{number="$comment->author()->pp_reputation_points" format="short"}

Badges:

{number="$comment->author()->badgeCount()" format="short"}

 

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

19 minutes ago, Oni said:

Rank dots were also removed with the update, but I can for sure help you with content number and reputation.

Posts:


{number="$comment->author()->member_posts" format="short"}

Reputation:


{number="$comment->author()->pp_reputation_points" format="short"}

Badges:


{number="$comment->author()->badgeCount()" format="short"}

 

Thank you so much, I added them here: https://prnt.sc/1qjnnbg and doesn't work. I tried to add them more down, under another "category" and they appear but just numbers... Without that icons... Like in this pic: https://prnt.sc/1qjkuro

Do you think I can do it like in that topic? [https://forum.indungi.ro/topic/866121-despre-tsindungiro-predare/] I tried everything and couldn't do it... Check this: https://prnt.sc/1qjnt23

Link to comment
Share on other sites

Alright, this one requires a few lines more code if done properly.

Add this on top of your postContainer:

{{$rep = $rep ?: $comment->author()->pp_reputation_points;}}

and place the following code where you want it in the postContainer:

{{if $comment->author()->group['gbw_view_reps']}}
	<a href='{url="app=core&module=members&controller=profile&id={$comment->author()->member_id}&do=reputation" seoTemplate="profile_reputation" seoTitle="$comment->author()->members_seo_name"}' title="{lang="reputation_badge_tooltip_period"}" data-ipsTooltip class='ipsRepBadge ipsType_medium {{if $rep > 0}}ipsRepBadge_positive{{elseif $rep < 0}}ipsRepBadge_negative{{else}}ipsRepBadge_neutral{{endif}}'><i class='fa {{if $rep > 0}}fa-plus-circle{{elseif $rep < 0}}fa-minus-circle{{else}}fa-circle-o{{endif}}'></i> {expression="\IPS\Member::loggedIn()->language()->formatNumber( $rep )"}</a>
{{else}}
	<span title="{lang="reputation_badge_tooltip_period"}" data-ipsTooltip class='ipsRepBadge ipsType_medium {{if $rep > 0}}ipsRepBadge_positive{{elseif $rep < 0}}ipsRepBadge_negative{{else}}ipsRepBadge_neutral{{endif}}'><i class='fa {{if $rep > 0}}fa-plus-circle{{elseif $rep < 0}}fa-minus-circle{{else}}fa-circle-o{{endif}}'></i> {expression="\IPS\Member::loggedIn()->language()->formatNumber( $rep )"}</span>
{{endif}}

You're welcome :)

Please no more private messages, mentions or anything like that. I don't offer any support at the moment.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...