Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Работа с тегами в загрузке файлов

Featured Replies

Posted

Всем привет! Облазил огромное количество тем не могу найти решение. IPB 4

Подскажите пожалуйста :

1) Как сделать при загрузке файлов поле "теги " обязательно к заполнению, а не через кнопку "Добавить теги" ?

2) Как сделать так чтобы теги нельзя было самому придумывать , а выбрать только из списка ?

Снимок экрана 2022-01-31 в 21.24.09.png

Снимок экрана 2022-01-31 в 21.30.07.png

3 минуты назад, SkiFteL сказал:

Думаю поможет приложение "Теги и Префиксы"

 

image.thumb.png.5b979d7c97ebaf40b95078193caff021.png

А чем стандартный вариант не устраивает?

Находится по адресу: /admin/?app=core&module=settings&controller=posting&tab=tags

2 минуты назад, ryancoolround сказал:

Админцентр>Система>Постинг>Теги

 

  Показать контент

image.thumb.png.167dfd0212f69cca7f6eca976736affb.png

 

а у меня вот косяк(((
С приложением тегов и префиксов....права стоят и прочее, но при добавлении в разделе загрузок поле выбора не появляется. версия 3.2.1 (на главной странице форума тоже не показывает!)

1 минуту назад, SkiFteL сказал:

но при добавлении в разделе загрузок поле выбора не появляется.

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

  • Author

Да в принципе этого хватает спасибо 👍👍

 

а вот как теперь сделать чтобы при загрузке файлов поле "теги " были обязательно к заполнению, а не через кнопку "Добавить теги" ?

Снимок экрана 2022-01-31 в 22.11.34.png

Только что, Sobok сказал:

Да в принципе этого хватает спасибо 👍👍

 

а вот как теперь сделать чтобы при загрузке файлов поле "теги " были обязательно к заполнению, а не через кнопку "Добавить теги" ?

Снимок экрана 2022-01-31 в 22.11.34.png

 

Только что, SkiFteL сказал:

покажи скрин плиз

Окей. По пунктам.

  1. Заходим в Админцентр>Система>Постинг>Теги
  2. Убираем галочку с чекпойнта "Без минимума", и ставим значение в минимум ну допустим 3. Не забываем активировать чекпойнт "Требовать минимум".
  3. image.thumb.png.4d8148b22753152fba3f92cb49463c7d.png
  4. Сохранянем
  5. Пытаемся создать новую тему
  6. image.png.d71a753db50c27a2dd7b3d3cd99ef959.png
  7. Так как поле стало обязательным, оно появляется сразу.
4 минуты назад, ryancoolround сказал:

 

Окей. По пунктам.

  1. Заходим в Админцентр>Система>Постинг>Теги
  2. Убираем галочку с чекпойнта "Без минимума", и ставим значение в минимум ну допустим 3. Не забываем активировать чекпойнт "Требовать минимум".
  3. image.thumb.png.4d8148b22753152fba3f92cb49463c7d.png
  4. Сохранянем
  5. Пытаемся создать новую тему
  6. image.png.d71a753db50c27a2dd7b3d3cd99ef959.png
  7. Так как поле стало обязательным, оно появляется сразу.

Да теги то появились а вот ПРЕФИКСЫ нет...
Я про приложение имею ввиду. Ладно пофиг)

32 минуты назад, Sobok сказал:

упоминать можно, нажимая на собачку возле ника, а не копируя и вставляя сам ник. на будущее.

4 минуты назад, SkiFteL сказал:

а вот ПРЕФИКСЫ нет...

в настройках разделов форума смотри, если установлено приложение то, появится новая вкладка "теги и префиксы".

54 минуты назад, Sobok сказал:

2) Как сделать так чтобы теги нельзя было самому придумывать , а выбрать только из списка ?

мой ответ выше тоже подойдёт.
либо можно сделать закрытую систему тегов в "постинге" и указать там нужные теги, а если нужно для конкретных разделов, то настройках этого раздела во вкладке "настройки публикации" вписать нужные теги в "предустановленные теги".

30 минут назад, SkiFteL сказал:

Можно ли придумать КАСТЫЛЬ и вывести данные префиксы на главной странице?

Я думаю нельзя, потому что префикс это обычный тег. Ты говоришь тегу быть префиксом, этот тег будет всегда отображаться в теме ил и файле первым, которому просто в css будет приписан класс ipsTag_prefix.

SkiFteL если ещё надо, то заменить всё в downloads > front > widgets > fileRow на:

Спойлер
<li class='ipsDataItem ipsCarousel_item {{if $orientation == 'horizontal'}}ipsGrid_span3{{endif}}' >
	<div class='ipsDataItem_icon ipsPos_top'>
		{template="thumbImage" group="global" app="core" params="$file->primary_screenshot_thumb, $file->name, 'tiny'"}
		{{$price = NULL;}}
		{{if \IPS\Application::appIsEnabled( 'nexus' ) and settings.idm_nexus_on}}
			<p class="cWidgetPrice ipsType_reset ipsType_medium ipsType_center">
				{{if $file->isPaid()}}
					{{if $price = $file->price()}}
						{$price|raw}
					{{endif}}
				{{else}}
					{lang="file_free_feed"}
				{{endif}}
			</p>
		{{endif}}
	</div>
	<div class='ipsDataItem_main'>
		<div class='ipsType_break ipsContained' style='display:flex;'>
        	{{if $file->prefix() OR ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}
          		<span {{if !$file->prefix()}}class='ipsHide'{{endif}} {{if ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}data-editablePrefix{{endif}}>
            		{template="prefix" group="global" app="core" params="$file->prefix( TRUE ), $file->prefix()"}
          		</span>
        	{{endif}}
            	<a href="{$file->url( "getPrefComment" )}" title='{lang="view_this_file" sprintf="$file->name"}' class='ipsTruncate ipsTruncate_line'>{$file->name}</a>            
        	
		</div>
		<span class='ipsType_light ipsType_medium ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$file->author()->link( NULL, NULL, $file->isAnonymous() )"}</span><br>
		{{if $file->container()->bitoptions['reviews']}}
			{template="rating" group="global" location="front" app="core" params="'small', $file->rating, \IPS\Settings::i()->reviews_rating_out_of"} &nbsp;&nbsp;
		{{endif}}

		<span class='ipsType_medium ipsType_reset ipsType_noBreak'>
			{{if $file->isPaid() and !$file->nexus and \in_array( 'purchases', explode( ',', settings.idm_nexus_display ) )}}
				<span {{if !$file->purchaseCount()}}class='ipsType_light'{{endif}} title='{lang="idm_purchases"}' data-ipsTooltip><i class='fa fa-shopping-cart'></i> {$file->purchaseCount()}</span>&nbsp;&nbsp;
			{{endif}}
			{{if !$file->isPaid() or \in_array( 'downloads', explode( ',', settings.idm_nexus_display ) )}}
				<span {{if !$file->downloads}}class='ipsType_light'{{endif}} title='{lang="downloads"}' data-ipsTooltip><i class='fa fa-arrow-circle-down'></i> {number="$file->downloads"}</span>&nbsp;&nbsp;
			{{endif}}

			{{if $file->container()->bitoptions['comments']}}<span {{if !$file->comments}}class='ipsType_light'{{endif}} title='{lang="total_comments"}' data-ipsTooltip><i class='fa fa-comment'></i> {$file->comments}</span>{{endif}}
		</span>
	</div>
</li>

 

321.PNG.5a9fd193aa87537ae424248db96f99f1.PNG

15 минут назад, by_ix сказал:

SkiFteL если ещё надо, то заменить всё в downloads > front > widgets > fileRow на:

  Скрыть контент
<li class='ipsDataItem ipsCarousel_item {{if $orientation == 'horizontal'}}ipsGrid_span3{{endif}}' >
	<div class='ipsDataItem_icon ipsPos_top'>
		{template="thumbImage" group="global" app="core" params="$file->primary_screenshot_thumb, $file->name, 'tiny'"}
		{{$price = NULL;}}
		{{if \IPS\Application::appIsEnabled( 'nexus' ) and settings.idm_nexus_on}}
			<p class="cWidgetPrice ipsType_reset ipsType_medium ipsType_center">
				{{if $file->isPaid()}}
					{{if $price = $file->price()}}
						{$price|raw}
					{{endif}}
				{{else}}
					{lang="file_free_feed"}
				{{endif}}
			</p>
		{{endif}}
	</div>
	<div class='ipsDataItem_main'>
		<div class='ipsType_break ipsContained' style='display:flex;'>
        	{{if $file->prefix() OR ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}
          		<span {{if !$file->prefix()}}class='ipsHide'{{endif}} {{if ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}data-editablePrefix{{endif}}>
            		{template="prefix" group="global" app="core" params="$file->prefix( TRUE ), $file->prefix()"}
          		</span>
        	{{endif}}
            	<a href="{$file->url( "getPrefComment" )}" title='{lang="view_this_file" sprintf="$file->name"}' class='ipsTruncate ipsTruncate_line'>{$file->name}</a>            
        	
		</div>
		<span class='ipsType_light ipsType_medium ipsType_blendLinks'>{lang="byline_nodate" htmlsprintf="$file->author()->link( NULL, NULL, $file->isAnonymous() )"}</span><br>
		{{if $file->container()->bitoptions['reviews']}}
			{template="rating" group="global" location="front" app="core" params="'small', $file->rating, \IPS\Settings::i()->reviews_rating_out_of"} &nbsp;&nbsp;
		{{endif}}

		<span class='ipsType_medium ipsType_reset ipsType_noBreak'>
			{{if $file->isPaid() and !$file->nexus and \in_array( 'purchases', explode( ',', settings.idm_nexus_display ) )}}
				<span {{if !$file->purchaseCount()}}class='ipsType_light'{{endif}} title='{lang="idm_purchases"}' data-ipsTooltip><i class='fa fa-shopping-cart'></i> {$file->purchaseCount()}</span>&nbsp;&nbsp;
			{{endif}}
			{{if !$file->isPaid() or \in_array( 'downloads', explode( ',', settings.idm_nexus_display ) )}}
				<span {{if !$file->downloads}}class='ipsType_light'{{endif}} title='{lang="downloads"}' data-ipsTooltip><i class='fa fa-arrow-circle-down'></i> {number="$file->downloads"}</span>&nbsp;&nbsp;
			{{endif}}

			{{if $file->container()->bitoptions['comments']}}<span {{if !$file->comments}}class='ipsType_light'{{endif}} title='{lang="total_comments"}' data-ipsTooltip><i class='fa fa-comment'></i> {$file->comments}</span>{{endif}}
		</span>
	</div>
</li>

 

321.PNG.5a9fd193aa87537ae424248db96f99f1.PNG

Если ставить данный блок справа то да отображается)))
А вот если по горизонтали то нет увы!

SkiFteL забыл.
заменить всё в downloads > front > browse > indexBlock на:

Спойлер
<li class='ipsAreaBackground_reset ipsType_blendLinks ipsClearfix cDownloadsCarouselItem ipsPad_half ipsCarousel_item' data-ipsLazyLoad>
	<a href='{$file->url( "getPrefComment" )}' title='{lang="view_this_file" sprintf="$file->name"}'>
		{template="thumbImage" group="global" app="core" params="$file->primary_screenshot_thumb, $file->name, 'medium', '', 'view_this', '', 'core_Attachment', '', true"}
    </a>
		<div class='cDownloadsCarouselItem_info ipsSpacer_top ipsSpacer_half'>
			<h3 class='ipsType_normal ipsType_reset ipsTruncate ipsTruncate_line'>
				{{if $file->unread()}}
					<span class='ipsItemStatus ipsItemStatus_small' data-ipsTooltip title='{{if $file->unread() === -1}}{lang="new"}{{else}}{lang="updated"}{{endif}}'><i class="fa fa-circle"></i></span>&nbsp;
				{{endif}}
				{{if $file->mapped('pinned') || $file->hidden() === -1 || $file->hidden() === 1}}
					{{if $file->hidden() === -1}}
						<span class="ipsBadge ipsBadge_small ipsBadge_icon ipsBadge_warning" data-ipsTooltip title='{$file->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span>
					{{elseif $file->hidden() === 1}}
						<span class="ipsBadge ipsBadge_small ipsBadge_icon ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span>
					{{endif}}
					{{if $file->mapped('pinned')}}
						<span class="ipsBadge ipsBadge_small ipsBadge_icon ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span>
					{{endif}}
				{{endif}}
				{{if $file->prefix() OR ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}
          			<span {{if !$file->prefix()}}class='ipsHide'{{endif}} {{if ( $file->canEdit() AND $file::canTag( NULL, $file->container() ) AND $file::canPrefix( NULL, $file->container() ) )}}data-editablePrefix{{endif}}>
            			{template="prefix" group="global" app="core" params="$file->prefix( TRUE ), $file->prefix()"}
          			</span>
        		{{endif}}
          		<a href='{$file->url( "getPrefComment" )}' title='{lang="view_this_file" sprintf="$file->name"}'>{$file->name}</a>
			</h3>
			
			<p class='ipsType_medium ipsType_reset ipsType_blendLinks ipsTruncate ipsTruncate_line'>{lang="byline_nodate" htmlsprintf="$file->author()->link( NULL, NULL, $file->isAnonymous() )"}</p>
			{{if $file->container()->bitoptions['reviews']}}
				{template="rating" group="global" location="front" app="core" params="'medium', $file->averageReviewRating(), \IPS\Settings::i()->reviews_rating_out_of"}
			{{endif}}
			<p class='ipsType_medium ipsType_reset'>
				{{if $file->isPaid() and !$file->nexus and \in_array( 'purchases', explode( ',', settings.idm_nexus_display ) )}}
					<span {{if !$file->purchaseCount()}}class='ipsType_light'{{endif}} title='{lang="x_purchases" pluralize="$file->purchaseCount()"}' data-ipsTooltip><i class='fa fa-shopping-cart'></i> {$file->purchaseCount()}</span>&nbsp;&nbsp;
				{{endif}}
				{{if !$file->isPaid() or \in_array( 'downloads', explode( ',', settings.idm_nexus_display ) )}}
					<span {{if !$file->downloads}}class='ipsType_light'{{endif}} title='{lang="x_downloads" pluralize="$file->downloads"}' data-ipsTooltip><i class='fa fa-arrow-circle-down'></i> {number="$file->downloads"}</span>&nbsp;&nbsp;
				{{endif}}
				 
				{{if $file->container()->bitoptions['comments']}}<span {{if !$file->comments}}class='ipsType_light'{{endif}} title='{lang="num_comments" pluralize="$file->comments"}' data-ipsTooltip><i class='fa fa-comment'></i> {$file->comments}</span>{{endif}}
			</p>
			
			{{if \IPS\Application::appIsEnabled( 'nexus' ) and settings.idm_nexus_on}}
				<span class="cFilePrice ipsType_medium">
					{{if $file->isPaid()}}
						{{if $price = $file->price()}}
							{$price|raw}
						{{else}}
							&nbsp;
						{{endif}}
					{{else}}
						{lang="file_free"}
					{{endif}}
				</span>
			{{endif}}
		</div>
</li>

 

 

Edited by by_ix

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.