Jump to content
WebFlake
  • 0

modify theme profile


narcorp

Question

I have seen another forum, the truth is, I liked it, the problem is that I don't know how to add it, staff and member, how many months can someone help me, is there a proof photo that I took?

Captura.PNG.c6004c1fa022b5ca6da76fc713774d88.PNG

 

 

this is my 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}} data-groupid="{$comment->author()->member_group_id}" 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 groupid:{$comment->author()->member_group_id}'>{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"}" rel="nofollow">
						{$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 ) )}' rel="nofollow" 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'>
      <ul class="cAuthorPane_info csr-authorInfo">
        <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}}
  	            {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"}
                {{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 !$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>
        <li class="csr-authorInfo:name">
          <div>
            {template="userLink" group="global" app="core" params="$comment->author(), $comment->warningRef(), TRUE, $comment->isAnonymous()"}
          </div>
        </li>
        {{if !$comment->isAnonymous()}}
		<li class="csr-authorInfo:group">
          {{if \IPS\Member\Group::load( $comment->author()->member_group_id )->g_icon }}
					<img src='{file="$comment->author()->group['g_icon']" extension="core_Theme"}' alt='' class='cAuthorGroupIcon'>
				{{endif}}
        </li>
        {{endif}}
        <li class="csr-authorInfo:reputation">
          <div class="{{if $comment->author()->pp_reputation_points == 0}}csr-authorInfo:neutral{{elseif $comment->author()->pp_reputation_points >= 1}}csr-authorInfo:positive{{elseif $comment->author()->pp_reputation_points <= -1}}csr-authorInfo:negative{{endif}}" data-ipstooltip title="Punktów reputacji">
            <span>{number="$comment->author()->pp_reputation_points"}</span>
          </div>
        </li>
        {{if !$comment->isAnonymous()}}
        <li class="csr-authorInfo:miniStats">
          {{$commentAuthorTopics = (int) \IPS\Db::i()->select( 'COUNT(*)', 'forums_topics', array( 'starter_id=?', $comment->author()->member_id ) )->first();}}
          <div class="csr-authorInfo:miniStatsItem">
            <span class="csr-authorInfo:miniStatsText">Publicaciones</span>
            <span class="csr-authorInfo:miniStatsNumber">{$comment->author()->member_posts}</span>
          </div>
          <div class="csr-authorInfo:miniStatsItem">
            <span class="csr-authorInfo:miniStatsText">Tema</span>
            <span class="csr-authorInfo:miniStatsNumber">{$commentAuthorTopics}</span>
          </div>
        </li>
        <!--<li class="csr-authorInfo:stats">
          <div class="csr-authorInfo:statsLeft">
            Wpisów na czacie: 
          </div>
          <div class="csr-authorInfo:statsRight">
            {$aXenChatboxCount}
          </div>
        </li>-->
        <li class="csr-authorInfo:stats">
          <div class="csr-authorInfo:statsLeft">
            Días Ganados:
          </div>
          <div class="csr-authorInfo:statsRight">
            {{if settings.reputation_leaderboard_on and settings.reputation_show_days_won_trophy and $comment->author()->getReputationDaysWonCount()}}
              {number="$comment->author()->getReputationDaysWonCount()"}
            {{else}}
              0
            {{endif}}
          </div>
        </li>
        <li class="csr-authorInfo:stats">
          <div class="csr-authorInfo:statsLeft">
            Activo: 
          </div>
          <div class="csr-authorInfo:statsRight">
            {{if $comment->author()->last_activity}}{datetime="$comment->author()->last_activity"}{{else}}{lang="never"}{{endif}}
          </div>
        </li>
        <li class="csr-authorInfo:sendMessage">
          <a href='{url="app=core&module=messaging&controller=messenger&do=compose&to={$comment->author()->member_id}" seoTemplate="messenger_compose"}' data-ipsDialog data-ipsDialog-title='{lang="compose_new"}' data-ipsDialog-forceReload data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage='{lang="message_sent"}' data-ipstooltip title='{lang="compose_new"}'>Enviar un Mensaje</a>
        </li>
        {{if $comment->author()->member_id}}
          {template="customFieldsDisplay" group="global" app="core" params="$comment->author()"}
        {{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>

 

 

 

This is what my profile theme looks like, some of the forum members still help me, I really appreciate it

Captura.thumb.PNG.8733febd3c8dc311321a8f47bd64ca88.PNG

 

I hope you can help me, thank you

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I had to do a bit of search over the forum to find the article which you can use to display the since a member registered, shot out to S!r.ReaDy. for posting it :

 

You'll have to make a bit of code adjustments to make it display the days, months and years, look over this article for the strtotime : https://stackoverflow.com/questions/2915864/php-how-to-find-the-time-elapsed-since-a-date-time

You can use the if / elseif logic to create the code.

{{if [expression]}}
	HTML to output if expression is true
{{elseif [expression]}}
	HTML to output if expression is true
{{elseif [expression]}}
	HTML to output if other expressions were not true
{{endif}}

For the staff badge, instead of making it for each group in part you can use the "this member is a moderator" badge and customize it.

{{if $comment->author()->modShowBadge()}}
Staff Member
{{endif}}

Remember that this will appear to all the member who the option "show badge" biffed inside the moderator permission.

 

Link to comment
Share on other sites

  • 0
On 10/29/2023 at 4:58 AM, The Grim Reaper said:

I had to do a bit of search over the forum to find the article which you can use to display the since a member registered, shot out to S!r.ReaDy. for posting it :

 

You'll have to make a bit of code adjustments to make it display the days, months and years, look over this article for the strtotime : https://stackoverflow.com/questions/2915864/php-how-to-find-the-time-elapsed-since-a-date-time

You can use the if / elseif logic to create the code.

{{if [expression]}} HTML to output if expression is true {{elseif [expression]}} HTML to output if expression is true {{elseif [expression]}} HTML to output if other expressions were not true {{endif}}

{{if [expression]}}
	HTML to output if expression is true
{{elseif [expression]}}
	HTML to output if expression is true
{{elseif [expression]}}
	HTML to output if other expressions were not true
{{endif}}

For the staff badge, instead of making it for each group in part you can use the "this member is a moderator" badge and customize it.

{{if $comment->author()->modShowBadge()}} Staff Member {{endif}}

{{if $comment->author()->modShowBadge()}}
Staff Member
{{endif}}

Remember that this will appear to all the member who the option "show badge" biffed inside the moderator permission.

 

I have used this code, it does not look like the image I published, like webflake, colors, something like that

 

<div class="custom">
 {{$date_joined = floor((strtotime("now")-strtotime("{$comment->author()->joined}"))/86400) ;}}  
<span class="leftinfo"><i class="fa fa-calendar"></i> $time of fappig:</span>
<span class="rightinfo">{$date_joined} Días</span>
</div>
{{if $comment->author()->modShowBadge()}}
Staff Member
{{endif}}

Edited by narcorp
Link to comment
Share on other sites

  • 0

I've never said that the codes i gave you will offer you the desire aspect of your picture. I provided you with all the assets and ways to make what you asked for ( as i mentioned that you need to customize it ). If you want me to give you the exact code for your image, that will cost you a short amount of money, maybe this is a support section but the time spent by others to recreate that design is not free.

Link to comment
Share on other sites

  • 0
2 hours ago, The Grim Reaper said:

I've never said that the codes i gave you will offer you the desire aspect of your picture. I provided you with all the assets and ways to make what you asked for ( as i mentioned that you need to customize it ). If you want me to give you the exact code for your image, that will cost you a short amount of money, maybe this is a support section but the time spent by others to recreate that design is not free.

and how much will the design cost me?

Captura.PNG.78eaf5584dd0c59b41687a6f681128c4.PNG

 

Edited by narcorp
Link to comment
Share on other sites

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