-
Постов
93 -
Зарегистрирован
-
Посещение
Тип контента
Профили
Загрузки
База знаний IPS Community Suite 4
База знаний IP.Board 3.x
Форумы
События
Магазин
Совместные покупки
Сообщения, опубликованные 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>) ·</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')}}
· <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()}}
· {$comment->hiddenBlurb()}
{{endif}}
{{if $comment instanceof \IPS\Content\ReportCenter and !\IPS\Member::loggedIn()->group['gbw_no_report'] and $comment->hidden() !== 1 }}
· <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"} <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"} <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;
}Вот и всё как выглядет это скрин ниже
P.s что бы убрать пробел между рамками
Найдите код .
ipsComment_controls > li {
margin-right: 15px; - и измените этот параметр как Вам над -
-
У меня такая же проблема...
6.1? или 5,1*?
-
Возможно это из за плагина , но скачал я мафии нашёл в теме обсуждении IPS Community Suite 4 вроде на 25-35 странице там давали этот плагин и описали установку.Всё дела но не чего не поменялось !! Ошибка осталась , возможно что был вкл режим дизайнера и вот из за этого такой баг ...
-
-
Забыл сказать, когда его выкл то сайт открываться нормально !!
-
Всем доброго времени суток! Проблема установил я плагин "Войти через Вконтакте" залил все файлы на хост, установил сам плагин , в вк создал приложение в вёл их в настройки плагина включаю его и вижу картину
-
var txt = $('[name="txt"]').val() + " " + emo;
заменить на
var txt = $('[name="txt"]').val() + " " + emo + " ";
Блиннн, респект тебе СПАСИБО ВСЁ работает !!!
-
В стилях ищите шаблон chatrow
Самая первая строка
Что на что менять можете посмотреть в
http://php.net/manual/ru/function.date.php
Так , это я нашёл , спс! С applications/bimchatbox/interface/chat/emo.js не могу разобраться где над поставить пробел =\
-
Нефиг дублировать смайлы.
applications/bimchatbox/interface/chat/emo.js
Пробел, думаю, сами догадаетесь где поставить.
В стилях ищите шаблон chatrow
Самая первая строка
Что на что менять можете посмотреть в
http://php.net/manual/ru/function.date.php
Так , applications/bimchatbox/interface/chat/emo.js что я должен изменить в нём
function($, _, undefined){
"use strict";
ips.controller.register('bimChatBoxEmo', {
/*-------------------------------------------------------------------------*/
// Setup action
/*-------------------------------------------------------------------------*/
initialize: function ()
{
this.on( 'click', '[data-action="emo_emo"]', this.insertEmoticon );
this.on( 'click', '[data-action="EmoCatChoose"]', this.EmoCatChoose );
},
/*-------------------------------------------------------------------------*/
// EmoCatChoose
/*-------------------------------------------------------------------------*/
EmoCatChoose: function (e)
{
var cat = $( e.currentTarget ).attr('data-ipsMenuValue');
$( '.emoCat' ).hide();
$( '#emoCat_' + cat ).show();
},
/*-------------------------------------------------------------------------*/
// insertEmoticon
/*-------------------------------------------------------------------------*/
insertEmoticon: function (e)
{
var emo = $( e.currentTarget ).attr('data-emoticon');
var txt = $('[name="txt"]').val() + " " + emo;
$('[name="txt"]').val(txt);
$('[name="txt"]').focus();
},});
}(jQuery, _));В шаблоне chatrow первая строчка это она ?
-
Если бы кто-то знал, то вам бы ответили. Нет смысла апать.
Вот поворот то , лады...
-
ап тему! вопрос не решён !
-
И ещё почему не отображается описание к картинке как вылечить данный баг!
-
И ещё проблема как решить её , суть загрузил я изображение всё прошло удачно но на главной (скрин)
Поставил плагин
(RU4) Url Транслитерации , вроде работает , когда изменишь то дело что на скрине но хотелось бы сразу залил, и на главной(в галереи) всё корректно отобразилось
-
Всем привет , первый вопрос - как можно добавить в галерею картинку с разрешением TIFF.
Второй вопрос - как сделать что бы загруженная фотография была в полном экранном режиме , а не жать "Просмотреть в lightbox"
Заранее Благодарю.
-
И хотелось бы видеть время в чате в 24 часовом формате.как это сделать ?
-
Нашёл баг со смайлами когда пишешь 3 смайла подряд то получаем вот эту картину
Когда пишешь их через пробел то всё норм , НО народ по привычке не жмякает на пробел что бы поставить смайл и переучить их будет трудно!
-
Ниче абсолютно не понял
Есть только такой код:
<ul id="elNavigation_app_{expression="strtok( $id, '_')"}_{$tabId}_menu" class="ipsMenu ipsMenu_auto ipsHide"> {template="navBarChildren" app="core" group="global" params="$children"} </ul>
У Вас на сайте кнопка (форум ) html её
<a id="elNavigation_app_forums_555cd455c410f" href="http://lolzteam.com/" class="elNavigation_app_forums_Forums ipsNavActive">
Класс elNavigation_app_forums_Forums у Вас нету в Css(е) такого кода с таким классомПоставьте в CSS код
ul#ipsLayout_mainNav li
a.elNavigation_app_forums_Forums:before{
content:"\f086";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}И у Вас будет как на скрине в топике
Это пример работы
-
Чуток подправил CSS и получается следующее:
- Ник не сдвигается в право а стоит четко по центру аватарки
.ipsOnlineStatus, .ipsOnlineStatus_online { color: #87B75A; position: absolute; margin:5px 0px 0 -20px; font-size: 9px; } .ipsOnlineStatus_offline { color: #C7C7C7; position: absolute; margin:5px 0px 0 -20px; font-size: 9px; }
Щас глянем , и
над было исправить я пощёлкал момент
{{if $comment->author()->isOnline()}}<i class="fa fa-circle ipsOnlineStatus_online" data-ipsTooltip title="{lang="online_now" sprintf="$comment->author()->member_title"}"></i>{{endif}}
{{if !$comment->author()->isOnline()}}<i class="fa fa-circle ipsOnlineStatus_offline" data-ipsTooltip title="{lang="Не в сети" sprintf="$comment->author()->member_title"}"></i>{{endif}}Выделил тот момент .
-
Что бы быстро поставить и не искать класс у каждого элемента и не исправлять его в CSS просто поставьте код в CSS должно получиться проверил на тест сайте
Сам код
ul#ipsLayout_mainNav li a.elNavigation_app_calendar_Calendar:before{
content:"\f073";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_downloads_Downloads:before{
content:"\f019";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_forums_Forums:before{
content:"\f086";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_blog_Blogs:before{
content:"\f017";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_gallery_Gallery:before{
content:"\f03e";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_cms_0:before{
content:"\f059";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_cms_1:before{
content:"\f0d6";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_nexus_Support:before{
content:"\f059";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}Если что пишите в личку помогу
-
-
Через плагин? Класс селект добавляется к менюшке?
Привет , там всё просто , не через плагин , всё вручную делал добавил CSS и менял class у Форума ,Файлов, Галерея и т.д
Пример
<a id="elNavigation_app_forums_555c037dbfc43" href="тут ваш сайт " class="elNavigation_app_forums_Forums ipsNavActive"> - как найти это? - через консоль разработчика наводим на форум и видим этот код .
Дальше добавляем CSS
ul#ipsLayout_mainNav lia.elNavigation_app_forums_Forums:before{ <- видим этот код нас интересует elNavigation_app_forums_Forums вот его меняем на то что у вас в получилось выше в примере .
content:"\f086";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}Как было у меня :
<a id="elNavigation_app_1_555c05b0e19be" href="" class="elNavigation_app_1 ipsNavActive"> (Форум)
CSS
ul#ipsLayout_mainNav li
a.elNavigation_app_1::before {
content: "";
padding-right: 5px;
font: 14px/1 FontAwesome;
} -
Да *** ХДД Я делал это !!!!!!!! Ост форум , Галерея,файлы
Пруф
Тем можно закрывать !!
-
Всем доброго времени суток и хорошего настроения.
Суть вопроса такова есть Стиль Flatty 2.0.0 там сесть меню, навигации, как на мафии как сделать его на IPS 4
Стиль Flatty 2.0.0
Скрин
Знаю CSS
ul#ipsLayout_mainNav li a.elNavigation_app_calendar_Calendar:before{
content:"\f073";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_downloads_Downloads:before{
content:"\f019";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_forums_Forums:before{
content:"\f086";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_blog_Blogs:before{
content:"\f017";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}ul#ipsLayout_mainNav li a.elNavigation_app_gallery_Gallery:before{
content:"\f03e";
padding-right:5px;
font:normal normal normal 14px/1 FontAwesome;
}Но не знаю как добавить в html! Зато знаю в каком шаблоне всё это делать в navBar
Подскажите пожалуйста , с меня большое человеческое спасибо + в репу.
IPS4 - Обсуждение
в Техническая поддержка Invision Community
Опубликовано
Если у вашего хостера 256 памяти на скрипт то будет летать форум ели же 125 как требует движок то будет притирку и возможно будут лаги
P.s проверял уже Сам .Знаю.