Перейти к содержанию

Внешний вид (цитата, изменить, настройки)


Slav

Рекомендуемые сообщения

И так как это сделать. Сейчас я Вам расскажу. Открываем шаблон Post делаем бэкап на всякий случай  и заменяем всё на

{{$idField = $comment::$databaseColumnId;}}
<div id='comment-{$comment->$idField}_wrap' data-controller='core.front.core.comment' data-commentApp='{$app}' data-commentType='{$type}' data-commentID="{$comment->$idField}" data-quoteData='{expression="json_encode( array('userid' => $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $comment::$application, 'contenttype' => $type, 'contentid' => $item->tid, 'contentclass' => $class, 'contentcommentid' => $comment->$idField) )"}' class='ipsComment_content ipsType_medium {{if $comment->hidden()}}ipsModerated{{endif}} ipsFaded_withHover'>
    <div class='ipsComment_meta ipsType_light'>
        <p class='ipsPos_right ipsType_reset ipsType_blendLinks ipsFaded ipsFaded_more'>
            {{if \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'members', 'membertools_ip' ) and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
                <span class='ipsResponsive_hidePhone'>(<a href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}">{lang="ip_prefix" sprintf="$comment->ip_address"}</a>) &middot;</span>
            {{endif}}
            <a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->pid ) )}' data-ipsTooltip title='{lang="share_this_post"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_{$comment->pid}'><i class='fa fa-share-alt'></i></a>
            {{if count( $item->commentMultimodActions() ) and !$comment->mapped('first')}}
                &middot; <input type="checkbox" name="multimod[{$comment->$idField}]" value="1" data-role="moderation" data-actions="{{if $comment->canSplit()}}split merge{{endif}} {{if $comment->hidden() === -1 AND $comment->canUnhide()}}unhide{{elseif $comment->hidden() === 1 AND $comment->canUnhide()}}approve{{elseif $comment->canHide()}}hide{{endif}} {{if $comment->canDelete()}}delete{{endif}}">
            {{endif}}
        </p>

        <p class='ipsType_reset'>
            {$comment->dateLine()|raw}
            {{if $comment->editLine()}}
                ({lang="edited_lc"})
            {{endif}}
            {{if $comment->hidden()}}
                &middot; {$comment->hiddenBlurb()}
            {{endif}}
            {{if $comment instanceof \IPS\Content\ReportCenter and !\IPS\Member::loggedIn()->group['gbw_no_report'] and $comment->hidden() !== 1 }}
                &middot; <a href='{$comment->url('report')}' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='{lang="report_submit_success"}' data-ipsDialog-title="{lang="report_post"}" data-action='reportComment' title='{lang="report_content"}' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>{lang="report_post"}</span></a>
            {{endif}}
        </p>
    </div>

    {{if member.modPermission('mod_see_warn') and $comment->warning}}
        {template="commentWarned" group="global" app="core" params="$comment"}
    {{endif}}


    <div class='cPost_contentWrap ipsPad'>
        {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}
            <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-star'></i></strong>
        {{endif}}
        
        <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'>
            {$comment->content()|raw}

            {{if $comment->editLine()}}
                {$comment->editLine()|raw}
            {{endif}}
        </div>

        {{if !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) )}}
            {{if $comment instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
                {template="reputation" group="global" app="core" params="$comment, 'ipsPos_right ipsResponsive_noFloat'"}
            {{endif}}
        {{endif}}

        <ul class='ipsComment_controls ipsClearfix' data-role="commentControls">
            {{if $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() )}}
                {{if $comment->canUnhide()}}
                    <li><a href='{$comment->url('unhide')->csrf()}' class='ipsButton ipsButton_verySmall ipsButton_positive' data-action='approveComment'><i class='fa fa-check'></i> {lang="approve"}</a></li>
                {{endif}}
                {{if $comment->canDelete()}}
                    <li><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount" class='ipsButton ipsButton_verySmall ipsButton_negative'><i class='fa fa-times'></i> {lang="delete"}</a></li>
                {{endif}}
                {{if $comment->canEdit() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment->canEdit()}}
                                {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                                    <li class='ipsMenu_item'><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
                                {{else}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{else}}
                {{if $comment->hidden() === 0 and $item->canComment() and $editorName}}
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <button class='classic_button' data-action='multiQuoteComment' data-ipsTooltip data-ipsQuote-multiQuote data-mqId='mq{$comment->$idField}' title='{lang="multiquote"}'><i class='fa fa-plus'></i></button>
                    </li>
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <a href='#' data-action='quoteComment' class='classic_button' data-ipsQuote-singleQuote>{lang="quote"}</a>
                    </li>
                {{endif}}
                {{if $comment->canEdit()}}
                    {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                        <li><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
                    {{else}}
                        <li><a href='{$comment->url('edit')}' class='classic_button' data-action='editComment'>{lang="edit"}</a></li>
                    {{endif}}
                {{endif}}
                {{if $comment->canDelete() || $comment->canHide() || $comment->canUnhide() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' class='classic_button' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment instanceof \IPS\Content\Hideable}}
                                {{if !$comment->hidden() and $comment->canHide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('hide')->csrf()}' data-ipsDialog data-ipsDialog-title="{lang="hide"}">{lang="hide"}</a></li>
                                {{elseif $comment->hidden() and $comment->canUnhide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('unhide')->csrf()}'>{lang="unhide"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                            {{if $comment->canDelete()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount">{lang="delete"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{endif}}
            <li class='ipsHide' data-role='commentLoading'>
                <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span>
            </li>
        </ul>
        {{if $comment->author()->signature}}
            {template="signature" group="global" app="core" params="$comment->author()"}
        {{endif}}
    </div>

    <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_{$comment->pid}_menu'>
        <div class='ipsPad'>
            <h4 class='ipsType_sectionHead'>{lang="share_this_post"}</h4>
            <hr class='ipsHr'>
            <h5 class='ipsType_normal ipsType_reset'>{lang="link_to_post"}</h5>
            <input type='text' value='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsField_fullWidth'>
            {{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
                <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
                {template="sharelinks" group="global" app="core" params="$comment"}
            {{endif}}
        </div>
    </div>
</div>

Далее CSS

.classic_button:hover {
    border: 1px solid #C0C2C3; твет обводки
    color: #222; - цвет текста
}


.classic_button {
    height: 28px;
    line-height: 27px;
    font-size: 11px;
    padding: 0px 10px;
    background: #F5F5F5 linear-gradient(to bottom, #FFF 0%, rgba(255, 255, 255, 0) 100%) repeat-x scroll 0px -1px;
    border: 1px solid #E6E7E7;
    color: #414141;
    text-shadow: 0px 1px 0px #FFF;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

Вот и всё как выглядет это  скрин ниже 

5562c03daac5c_.thumb.PNG.15ae6488884bdad

P.s что бы убрать пробел между  рамками

Найдите код .

ipsComment_controls > li {
    margin-right: 15px;  - и измените этот параметр как Вам над

Ссылка на комментарий
Поделиться на другие сайты

Работает во всех постах кроме первого в теме. 

Вот пруф

 5562ef6ad9c38_.thumb.PNG.17eb9653a2fcfe9

[/spoiler]

Ссылка на комментарий
Поделиться на другие сайты

внес изменения в custom.css 

.classic_button:hover {
    border: 1px solid #C0C2C3; твет обводки
    color: #222; - цвет текста
}


.classic_button {
    height: 28px;
    line-height: 27px;
    font-size: 11px;
    padding: 0px 10px;
    background: #F5F5F5 linear-gradient(to bottom, #FFF 0%, rgba(255, 255, 255, 0) 100%) repeat-x scroll 0px -1px;
    border: 1px solid #E6E7E7;
    color: #414141;
    text-shadow: 0px 1px 0px #FFF;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
}

.ipsComment_controls > li {
		display: inline-block;
		vertical-align: middle;
	}
	html[dir="ltr"] .ipsComment_controls > li {
		margin-right: 3px;
	}
	html[dir="rtl"] .ipsComment_controls > li {
		margin-left: 15px;
	}

результат

5562f426b8c47_.thumb.PNG.4c5ea13edc68310

Ссылка на комментарий
Поделиться на другие сайты

Работает во всех постах кроме первого в теме. 

Вот пруф

 

Скрытый контент

​Исправил код (Post)

{{$idField = $comment::$databaseColumnId;}}
<div id='comment-{$comment->$idField}_wrap' data-controller='core.front.core.comment' data-commentApp='{$app}' data-commentType='{$type}' data-commentID="{$comment->$idField}" data-quoteData='{expression="json_encode( array('userid' => $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $comment::$application, 'contenttype' => $type, 'contentid' => $item->tid, 'contentclass' => $class, 'contentcommentid' => $comment->$idField) )"}' class='ipsComment_content ipsType_medium {{if $comment->hidden()}}ipsModerated{{endif}} ipsFaded_withHover'>
    <div class='ipsComment_meta ipsType_light'>
        <p class='ipsPos_right ipsType_reset ipsType_blendLinks ipsFaded ipsFaded_more'>
            {{if \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'members', 'membertools_ip' ) and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
                <span class='ipsResponsive_hidePhone'>(<a href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}">{lang="ip_prefix" sprintf="$comment->ip_address"}</a>) &middot;</span>
            {{endif}}
            <a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->pid ) )}' data-ipsTooltip title='{lang="share_this_post"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_{$comment->pid}'><i class='fa fa-share-alt'></i></a>
            {{if count( $item->commentMultimodActions() ) and !$comment->mapped('first')}}
                &middot; <input type="checkbox" name="multimod[{$comment->$idField}]" value="1" data-role="moderation" data-actions="{{if $comment->canSplit()}}split merge{{endif}} {{if $comment->hidden() === -1 AND $comment->canUnhide()}}unhide{{elseif $comment->hidden() === 1 AND $comment->canUnhide()}}approve{{elseif $comment->canHide()}}hide{{endif}} {{if $comment->canDelete()}}delete{{endif}}">
            {{endif}}
        </p>

        <p class='ipsType_reset'>
            {$comment->dateLine()|raw}
            {{if $comment->editLine()}}
                ({lang="edited_lc"})
            {{endif}}
            {{if $comment->hidden()}}
                &middot; {$comment->hiddenBlurb()}
            {{endif}}
            {{if $comment instanceof \IPS\Content\ReportCenter and !\IPS\Member::loggedIn()->group['gbw_no_report'] and $comment->hidden() !== 1 }}
                &middot; <a href='{$comment->url('report')}' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='{lang="report_submit_success"}' data-ipsDialog-title="{lang="report_post"}" data-action='reportComment' title='{lang="report_content"}' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>{lang="report_post"}</span></a>
            {{endif}}
        </p>
    </div>

    {{if member.modPermission('mod_see_warn') and $comment->warning}}
        {template="commentWarned" group="global" app="core" params="$comment"}
    {{endif}}


    <div class='cPost_contentWrap ipsPad'>
        {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}
            <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-star'></i></strong>
        {{endif}}
        
        <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'>
            {$comment->content()|raw}

            {{if $comment->editLine()}}
                {$comment->editLine()|raw}
            {{endif}}
        </div>

        {{if !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) )}}
            {{if $comment instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
                {template="reputation" group="global" app="core" params="$comment, 'ipsPos_right ipsResponsive_noFloat'"}
            {{endif}}
        {{endif}}

        <ul class='ipsComment_controls ipsClearfix' data-role="commentControls">
            {{if $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() )}}
                {{if $comment->canUnhide()}}
                    <li><a href='{$comment->url('unhide')->csrf()}' class='ipsButton ipsButton_verySmall ipsButton_positive' data-action='approveComment'><i class='fa fa-check'></i> {lang="approve"}</a></li>
                {{endif}}
                {{if $comment->canDelete()}}
                    <li><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount" class='ipsButton ipsButton_verySmall ipsButton_negative'><i class='fa fa-times'></i> {lang="delete"}</a></li>
                {{endif}}
                {{if $comment->canEdit() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment->canEdit()}}
                                {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                                    <li class='ipsMenu_item'><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
                                {{else}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{else}}
                {{if $comment->hidden() === 0 and $item->canComment() and $editorName}}
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <button class='classic_button' data-action='multiQuoteComment' data-ipsTooltip data-ipsQuote-multiQuote data-mqId='mq{$comment->$idField}' title='{lang="multiquote"}'><i class='fa fa-plus'></i></button>
                    </li>
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <a href='#' data-action='quoteComment' class='classic_button' data-ipsQuote-singleQuote>{lang="quote"}</a>
                    </li>
                {{endif}}
                {{if $comment->canEdit()}}
                    {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                        <li><a href='{$comment->url('edit')}' class='classic_button' data-action='editComment'>{lang="edit"}</a></li>                    {{else}}
                        <li><a href='{$comment->url('edit')}' class='classic_button' data-action='editComment'>{lang="edit"}</a></li>
                    {{endif}}
                {{endif}}
                {{if $comment->canDelete() || $comment->canHide() || $comment->canUnhide() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' class='classic_button' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment instanceof \IPS\Content\Hideable}}
                                {{if !$comment->hidden() and $comment->canHide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('hide')->csrf()}' data-ipsDialog data-ipsDialog-title="{lang="hide"}">{lang="hide"}</a></li>
                                {{elseif $comment->hidden() and $comment->canUnhide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('unhide')->csrf()}'>{lang="unhide"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                            {{if $comment->canDelete()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount">{lang="delete"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{endif}}
            <li class='ipsHide' data-role='commentLoading'>
                <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span>
            </li>
        </ul>
        {{if $comment->author()->signature}}
            {template="signature" group="global" app="core" params="$comment->author()"}
        {{endif}}
    </div>

    <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_{$comment->pid}_menu'>
        <div class='ipsPad'>
            <h4 class='ipsType_sectionHead'>{lang="share_this_post"}</h4>
            <hr class='ipsHr'>
            <h5 class='ipsType_normal ipsType_reset'>{lang="link_to_post"}</h5>
            <input type='text' value='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsField_fullWidth'>
            {{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
                <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
                {template="sharelinks" group="global" app="core" params="$comment"}
            {{endif}}
        </div>
    </div>
</div>

Ссылка на комментарий
Поделиться на другие сайты

  • 3 недели спустя...

Исправил баг с кнопкой "изменить"

{{$idField = $comment::$databaseColumnId;}}
<div id='comment-{$comment->$idField}_wrap' data-controller='core.front.core.comment' data-commentApp='{$app}' data-commentType='{$type}' data-commentID="{$comment->$idField}" data-quoteData='{expression="json_encode( array('userid' => $comment->author()->member_id, 'username' => $comment->author()->name, 'timestamp' => $comment->mapped('date'), 'contentapp' => $comment::$application, 'contenttype' => $type, 'contentid' => $item->tid, 'contentclass' => $class, 'contentcommentid' => $comment->$idField) )"}' class='ipsComment_content ipsType_medium {{if $comment->hidden()}}ipsModerated{{endif}} ipsFaded_withHover'>
    <div class='ipsComment_meta ipsType_light'>
        <p class='ipsPos_right ipsType_reset ipsType_blendLinks ipsFaded ipsFaded_more'>
            {{if \IPS\Member::loggedIn()->hasAcpRestriction( 'core', 'members', 'membertools_ip' ) and \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'modcp' ) )}}
                <span class='ipsResponsive_hidePhone'>(<a href="{url="app=core&module=modcp&controller=modcp&tab=ip_tools&ip=$comment->ip_address" seoTemplate="modcp_ip_tools"}">{lang="ip_prefix" sprintf="$comment->ip_address"}</a>) &middot;</span>
            {{endif}}
            <a href='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->pid ) )}' data-ipsTooltip title='{lang="share_this_post"}' data-ipsMenu data-ipsMenu-closeOnClick='false' id='elSharePost_{$comment->pid}'><i class='fa fa-share-alt'></i></a>
            {{if count( $item->commentMultimodActions() ) and !$comment->mapped('first')}}
                &middot; <input type="checkbox" name="multimod[{$comment->$idField}]" value="1" data-role="moderation" data-actions="{{if $comment->canSplit()}}split merge{{endif}} {{if $comment->hidden() === -1 AND $comment->canUnhide()}}unhide{{elseif $comment->hidden() === 1 AND $comment->canUnhide()}}approve{{elseif $comment->canHide()}}hide{{endif}} {{if $comment->canDelete()}}delete{{endif}}">
            {{endif}}
        </p>

        <p class='ipsType_reset'>
            {$comment->dateLine()|raw}
            {{if $comment->editLine()}}
                ({lang="edited_lc"})
            {{endif}}
            {{if $comment->hidden()}}
                &middot; {$comment->hiddenBlurb()}
            {{endif}}
            {{if $comment instanceof \IPS\Content\ReportCenter and !\IPS\Member::loggedIn()->group['gbw_no_report'] and $comment->hidden() !== 1 }}
                &middot; <a href='{$comment->url('report')}' data-ipsDialog data-ipsDialog-remoteSubmit data-ipsDialog-size='medium' data-ipsDialog-flashMessage='{lang="report_submit_success"}' data-ipsDialog-title="{lang="report_post"}" data-action='reportComment' title='{lang="report_content"}' class='ipsFaded ipsFaded_more'><span class='ipsResponsive_showPhone ipsResponsive_inline'><i class='fa fa-flag'></i></span><span class='ipsResponsive_hidePhone ipsResponsive_inline'>{lang="report_post"}</span></a>
            {{endif}}
        </p>
    </div>

    {{if member.modPermission('mod_see_warn') and $comment->warning}}
        {template="commentWarned" group="global" app="core" params="$comment"}
    {{endif}}


    <div class='cPost_contentWrap ipsPad'>
        {{if settings.reputation_highlight and $comment->reputation() >= settings.reputation_highlight}}
            <strong class='ipsComment_popularFlag' data-ipsTooltip title='{lang="this_is_a_popular_post"}'><i class='fa fa-star'></i></strong>
        {{endif}}
        
        <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'>
            {$comment->content()|raw}

            {{if $comment->editLine()}}
                {$comment->editLine()|raw}
            {{endif}}
        </div>

        {{if !( $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() ) )}}
            {{if $comment instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
                {template="reputation" group="global" app="core" params="$comment, 'ipsPos_right ipsResponsive_noFloat'"}
            {{endif}}
        {{endif}}

        <ul class='ipsComment_controls ipsClearfix' data-role="commentControls">
            {{if $comment->hidden() === 1 && ( $comment->canUnhide() || $comment->canDelete() )}}
                {{if $comment->canUnhide()}}
                    <li><a href='{$comment->url('unhide')->csrf()}' class='ipsButton ipsButton_verySmall ipsButton_positive' data-action='approveComment'><i class='fa fa-check'></i> {lang="approve"}</a></li>
                {{endif}}
                {{if $comment->canDelete()}}
                    <li><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount" class='ipsButton ipsButton_verySmall ipsButton_negative'><i class='fa fa-times'></i> {lang="delete"}</a></li>
                {{endif}}
                {{if $comment->canEdit() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment->canEdit()}}
                                {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                                    <li class='ipsMenu_item'><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
                                {{else}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{else}}
                {{if $comment->hidden() === 0 and $item->canComment() and $editorName}}
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <button class='classic_button' data-action='multiQuoteComment' data-ipsTooltip data-ipsQuote-multiQuote data-mqId='mq{$comment->$idField}' title='{lang="multiquote"}'><i class='fa fa-plus'></i></button>
                    </li>
                    <li data-ipsQuote-editor='{$editorName}' data-ipsQuote-target='#comment-{$comment->$idField}' class='ipsJS_show'>
                        <a href='#' data-action='quoteComment' class='classic_button' data-ipsQuote-singleQuote>{lang="quote"}</a>
                    </li>
                {{endif}}
                {{if $comment->canEdit()}}
                    {{if $comment->mapped('first') and $comment->item()->canEdit()}}
                         <li class='classic_button'><a href='{$comment->item()->url()->setQueryString( 'do', 'edit' )}'>{lang="edit"}</a></li>
                    {{else}}
                        <li class='classic_button'><a href='{$comment->url('edit')}' data-action='editComment'>{lang="edit"}</a></li>
                    {{endif}}
                {{endif}}
                {{if $comment->canDelete() || $comment->canHide() || $comment->canUnhide() || $comment->canSplit()}}
                    <li>
                        <a href='#elControls_{$comment->$idField}_menu' id='elControls_{$comment->$idField}' class='classic_button' data-ipsMenu data-ipsMenu-appendTo='#comment-{$comment->$idField}_wrap'>{lang="options"} &nbsp;<i class='fa fa-caret-down'></i></a>
                        <ul id='elControls_{$comment->$idField}_menu' class='ipsMenu ipsMenu_narrow ipsHide'>
                            {{if $comment instanceof \IPS\Content\Hideable}}
                                {{if !$comment->hidden() and $comment->canHide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('hide')->csrf()}' data-ipsDialog data-ipsDialog-title="{lang="hide"}">{lang="hide"}</a></li>
                                {{elseif $comment->hidden() and $comment->canUnhide()}}
                                    <li class='ipsMenu_item'><a href='{$comment->url('unhide')->csrf()}'>{lang="unhide"}</a></li>
                                {{endif}}
                            {{endif}}
                            {{if $comment->canSplit()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('split')}' data-action='splitComment' data-ipsDialog data-ipsDialog-title="{lang="split_to_new" sprintf="\IPS\Member::loggedIn()->language()->addToStack( $item::$title )"}">{lang="split"}</a></li>
                            {{endif}}
                            {{if $comment->canDelete()}}
                                <li class='ipsMenu_item'><a href='{$comment->url('delete')->csrf()}' data-action='deleteComment' data-updateOnDelete="#commentCount">{lang="delete"}</a></li>
                            {{endif}}
                        </ul>
                    </li>
                {{endif}}
            {{endif}}
            <li class='ipsHide' data-role='commentLoading'>
                <span class='ipsLoading ipsLoading_tiny ipsLoading_noAnim'></span>
            </li>
        </ul>
        {{if $comment->author()->signature}}
            {template="signature" group="global" app="core" params="$comment->author()"}
        {{endif}}
    </div>

    <div class='ipsMenu ipsMenu_wide ipsHide cPostShareMenu' id='elSharePost_{$comment->pid}_menu'>
        <div class='ipsPad'>
            <h4 class='ipsType_sectionHead'>{lang="share_this_post"}</h4>
            <hr class='ipsHr'>
            <h5 class='ipsType_normal ipsType_reset'>{lang="link_to_post"}</h5>
            <input type='text' value='{$comment->item()->url()->setQueryString( array( 'do' => 'findComment', 'comment' => $comment->$idField ) )}' class='ipsField_fullWidth'>
            {{if !$comment->item()->container()->disable_sharelinks and count( $comment->sharelinks() )}}
                <h5 class='ipsType_normal ipsType_reset ipsSpacer_top'>{lang="share_externally"}</h5>
                {template="sharelinks" group="global" app="core" params="$comment"}
            {{endif}}
        </div>
    </div>
</div>

Ссылка на комментарий
Поделиться на другие сайты

И так как это сделать. Сейчас я Вам расскажу. Открываем шаблон Post делаем бэкап на всякий случай  и заменяем всё на

Скрытый контент

Далее CSS

Скрытый контент

Вот и всё как выглядет это  скрин ниже 

5562c03daac5c_.thumb.PNG.15ae6488884bdad

P.s что бы убрать пробел между  рамками

Найдите код .

ipsComment_controls > li {
    margin-right: 15px;  - и измените этот параметр как Вам над

​Все понимаю) но где сам этот CSS файл лежит? папки СSS у меня в корне форума нет)

Ссылка на комментарий
Поделиться на другие сайты

​Все понимаю) но где сам этот CSS файл лежит? папки СSS у меня в корне форума нет)

​Добавить css код в Custom.css 

Расположение: Стили и шаблоны - Изменить HTML и CSS - CSS (вкладка) - Custom.css

Ссылка на комментарий
Поделиться на другие сайты

Тут же нескольких ксс правок достаточно, зачем менять что-то в шаблоне?

Ссылка на комментарий
Поделиться на другие сайты

внес изменения в custom.css 
 

Скрытый контент

результат

5562f426b8c47_.thumb.PNG.4c5ea13edc68310

​Уже ответил за Вас вех !!!

Ссылка на комментарий
Поделиться на другие сайты

Тут же нескольких ксс правок достаточно, зачем менять что-то в шаблоне?

​А я не менял код целиком , да  Вы правы  в этом коде изменено  очень мало ! Но объяснить народу "Найди вот этот код и этот  поставь  туда  "  ну и т.д  я решил просто код выложить целиком и всё

Ссылка на комментарий
Поделиться на другие сайты

​Добавить css код в Custom.css 

Расположение: Стили и шаблоны - Изменить HTML и CSS - CSS (вкладка) - Custom.css​

Круто, да тут оказывается намного проще все чем в 3.х.х ГРОМАДНОЕ БЛАГОДАРЮ, хоть кто-то объяснил!

Ссылка на комментарий
Поделиться на другие сайты

Круто, да тут оказывается намного проще все чем в 3.х.х ГРОМАДНОЕ БЛАГОДАРЮ, хоть кто-то объяснил!

Тоже самое, только тут кастомный css создан изначально, а в тройке его нужно было создать самому.

Ссылка на комментарий
Поделиться на другие сайты

  • 4 месяца спустя...

Сделал как описано в шапке темы - все работает :) 

Ссылка на комментарий
Поделиться на другие сайты

все, сам разобрался....

Изменено пользователем jack007
сам понял
Ссылка на комментарий
Поделиться на другие сайты

  • 1 год спустя...

Гм, а чего все изображения пролюбились?

Ссылка на комментарий
Поделиться на другие сайты

11 минут назад, polym0rph сказал:

Гм, а чего все изображения пролюбились?

после обновления форума с 3.х до 4.х пропало. тогда 4.х не так стабильна была

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

  • Последние посетители   0 пользователей онлайн

    • Ни одного зарегистрированного пользователя не просматривает данную страницу
×
×
  • Создать...