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

После обновления форума перестала работать система объявлений (стандартная) которая вывешивало объявление в каждом разделе, нельзя не редактировать не создавать новые объявления

post-6678-0-51334200-1364159477_thumb.pnpost-6678-0-04339500-1364162129_thumb.pn

Открываем ACP - Внешний вид - Ваш стиль - skin_modcp - modAnnounceForm

Найти:


<fieldset class='row1'>

Выше него добавить

<input type="hidden" name="secure_key" value="{$this->member->form_hash}" />

Открыть ACP - Внешний вид - Ваш стиль - skin_modcp - modAnnouncements Найти:

<a href="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=delete&amp;announce_id={$announce['announce_id']}" base="public"}" id="del_{$announce['announce_id']}" class='ipsButton_secondary'>{$this->lang->words['announce_delete']}</a>

Заменить на:

<a href="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=delete&amp;announce_id={$announce['announce_id']}&amp;secure_key={$this->member->form_hash}" base="public"}" id="del_{$announce['announce_id']}" class='ipsButton_secondary'>{$this->lang->words['announce_delete']}</a>

А если не работает то еще запасной вариант Открыть ACP - Внешний вид - Ваш стиль - skin_modcp - modAnnouncements

{parse js_module="ucp"}

<form action="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=save" base="public"}" id="mutliact" method="post">

<div class='topic_buttons'>

<ul class='topic_controls'>

<li>

<a href="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=add" base="public"}" class='ipsButton'>{$this->lang->words['announce_add']}</a>

</li>

</ul>

</div>

<h3 class='maintitle clear'>{$this->lang->words['announce_current']}</h3>

<table class='ipb_table' summary="{$this->lang->words['ucp_announcements']}">

<tr class='header'>

<th scope='col' style="width: 40%">{$this->lang->words['announce_title']}</th>

<th scope='col' class='short' style="width: 10%">{$this->lang->words['announce_form_starts']}</th>

<th scope='col' class='short' style="width: 10%">{$this->lang->words['announce_form_end']}</th>

<th scope='col' style="width: 25%">{$this->lang->words['announce_forums']}</th>

<th scope='col' style="width: 15%">&nbsp;</th>

</tr>

<if test="hasAnnouncements:|:is_array( $announcements ) AND count( $announcements )">

{parse striping="announcements" classes="row1,row2"}

<foreach loop="announcements:$announcements as $announce">

<tr class="{parse striping="announcements"} <if test="notactive:|:!$announce['announce_active']">moderated</if>">

<td>

<strong><a href="{parse url="showannouncement={$announce['announce_id']}&amp;f=0" base="public" template="showannouncement" seotitle="{$announce['announce_seo_title']}"}">{$announce['announce_title']}</a></strong> <if test="notactive:|:!$announce['announce_active']"><span class='desc'>{$this->lang->words['announce_page_disabled']}</span></if><br /><span class="desc">{$this->lang->words['by_ucfirst']} {parse template="userHoverCard" group="global" params="$announce"}</span>

</td>

<td class="short">

{parse date="$announce['announce_start']" format="DATE" relative="false"}

</td>

<td class="short">

{parse date="$announce['announce_end']" format="DATE" relative="false"}

</td>

<td>

<div class="forumdesc">

<if test="announceForum:|:$announce['announce_forum'] == '*'">

{$this->lang->words['announce_page_allforums']}

<else />

<if test="announceHasForums:|:is_array( $announce['_forums'] ) and count( $announce['_forums'] )">

<ul>

<foreach loop="announce_forums:$announce['_forums'] as $forum">

<li><a href="{parse url="showforum={$forum[0]}" base="public"}">{$forum[1]}</a></li>

</foreach>

</ul>

<else />

{$announce['announce_forum_show']}

</if>

</if>

</div>

</td>

<td class="short">

<ul class='ipsList_inline ipsList_nowrap'>

<li>

<a href="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=edit&amp;announce_id={$announce['announce_id']}" base="public"}" class='ipsButton_secondary'>{$this->lang->words['announce_edit']}</a>

</li>

<li>

<a href="{parse url="app=core&amp;module=modcp&amp;tab=announcements&amp;fromapp=forums&amp;_do=delete&amp;announce_id={$announce['announce_id']}&amp;secure_key={$this->member->form_hash}" base="public"}" id="del_{$announce['announce_id']}" class='ipsButton_secondary'>{$this->lang->words['announce_delete']}</a>

</li>

</ul>

<script type='text/javascript'>

$('del_{$announce['announce_id']}').observe('click', ipb.ucp.deleteAnnouncement.bindAsEventListener( this, {$announce['announce_id']} ) );

</script>

</td>

</tr>

</foreach>

<else />

<tr>

<td class='no_messages' colspan="5">{$this->lang->words['announce_none']}</td>

</tr>

</if>

</table>

</form>

  • Author

1 вариант заработал НО, из списка всех объявлений я не могу удалить объявление только если начать его редактировать и в той форме его удалить невнимательно редактировал :)

Edited by alcone

А если не работает то еще запасной вариант

и это сделай, должно заработать. У меня просто давно эта проблема была, я её исправил и забыл про неё

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.