Jump to content

Featured Replies

comment_213286

Перейти в ACP > Themes > Theme Designer: Templates > + Create new template:

Name: PostContainerButtons

TypeRequired: Hook

Hook Application: Forums

Hook Target: postUserReputation

Hook Type: Hook Type

Content:

HTML

<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>

postC.png

  • Author
comment_213294
10 hours ago, Silence said:

Перейти в ACP > Themes > Theme Designer: Templates > + Create new template:

Name: PostContainerButtons

TypeRequired: Hook

Hook Application: Forums

Hook Target: postUserReputation

Hook Type: Hook Type

Content:

HTML

<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>

postC.png

hello

These changes are very simple

How can we convert it like the image below??

I have the code for this image for version 4, but it doesn't work on version 5

Untitled.jpg

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.