Jump to content

Featured Replies

Posted

Go to ACP > Themes > Theme Designer: Templates > + Create new template:

Name: PostContainerButtons

TypeRequired: Hook

Hook Application: Forums

Hook Target: postUserReputation

Hook Type: Hook Type

Content:

Code

<div class=" brc_padding">

<div class="ipsList_reset ipsFlex ipsFlex-ai:center ipsGap:3 ipsGap_row:0">

{{if ( \IPS\Member::loggedIn()->member_id and \IPS\Member::loggedIn()->member_id !== $comment->author()->member_id ) && !$member->members_disable_pm and !\IPS\Member::loggedIn()->members_disable_pm and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'messaging' ) )}}

<a href='{url="app=core&module=messaging&controller=messenger&do=compose&to={$comment->author()->nmember_id}" seoTemplate="messenger_compose"}' data-ipsDialog data-ipsDialog-title='{lang="compose_new"}' data-ipsDialog-remoteSubmit data-ipsDialog-flashMessage="{lang="message_sent"}" data-ipsDialog-forceReload class='ipsButton ipsButton--share ipsButton--inherit' data-ipstooltip title="{lang="messagesend"}"><i class="fa fa-envelope" aria-hidden="true"></i></a>

{{endif}}

<a class="ipsButton ipsButton--share ipsButton--inherit" href="{url="app=core&module=members&controller=profile&do=content&id={$comment->author()->member_id}" base="front" seoTemplate="profile_content" seoTitle="$comment->author()->members_seo_name"}" data-ipstooltip title="{lang="findcontent"}"><i class="fa fa-book" aria-hidden="true"></i></a>

{{if \IPS\Member::loggedIn()->member_id && $comment->author()->canBeIgnored() and \IPS\Member::loggedIn()->member_id !== $comment->author()->member_id }}

<a class="ipsButton ipsButton--share ipsButton--inherit" href="{url="app=core&module=system&controller=ignore&id={$comment->author()->member_id}" seoTemplate="ignore"}" data-ipstooltip title="{lang="addignore"}"><i class="fa fa-user-times" aria-hidden="true"></i></a>

{{endif}}

</div></div>

Safe

postC.png

  • Views 129
  • Created
  • Last Reply

Posted Images

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Important Information