mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Some enhancements for topic_tpl (#1356)
* Some enhancements for topic_tpl * Update CHANGELOG.md * Update posting_tpl.tpl
This commit is contained in:
parent
0a25af04e3
commit
be08d2bba9
3 changed files with 17 additions and 11 deletions
|
@ -26,6 +26,7 @@
|
||||||
- Fixed auth(): empty $f_access [\#1329](https://github.com/torrentpier/torrentpier/pull/1329) ([belomaxorka](https://github.com/belomaxorka))
|
- Fixed auth(): empty $f_access [\#1329](https://github.com/torrentpier/torrentpier/pull/1329) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Fixed download counter for torrents [\#1346](https://github.com/torrentpier/torrentpier/pull/1346) ([belomaxorka](https://github.com/belomaxorka))
|
- Fixed download counter for torrents [\#1346](https://github.com/torrentpier/torrentpier/pull/1346) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Fixed HTTP 500 while cron running in server-side [\#1321](https://github.com/torrentpier/torrentpier/pull/1321) ([belomaxorka](https://github.com/belomaxorka))
|
- Fixed HTTP 500 while cron running in server-side [\#1321](https://github.com/torrentpier/torrentpier/pull/1321) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
- Some enhancements for topic_tpl [\#1356](https://github.com/torrentpier/torrentpier/pull/1356) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Sending debug errors to us 🌚 via Telegram bot [\#1323](https://github.com/torrentpier/torrentpier/pull/1323) ([belomaxorka](https://github.com/belomaxorka))
|
- Sending debug errors to us 🌚 via Telegram bot [\#1323](https://github.com/torrentpier/torrentpier/pull/1323) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka))
|
- Don't update downloads counter if attachment not exists [\#1345](https://github.com/torrentpier/torrentpier/pull/1345) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355) ([belomaxorka](https://github.com/belomaxorka))
|
- Minor improvements [\#1306](https://github.com/torrentpier/torrentpier/pull/1306), [\#1307](https://github.com/torrentpier/torrentpier/pull/1307), [\#1308](https://github.com/torrentpier/torrentpier/pull/1308), [\#1315](https://github.com/torrentpier/torrentpier/pull/1315), [\#1328](https://github.com/torrentpier/torrentpier/pull/1328), [\#1338](https://github.com/torrentpier/torrentpier/pull/1338), [\#1353](https://github.com/torrentpier/torrentpier/pull/1353), [\#1355](https://github.com/torrentpier/torrentpier/pull/1355) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
|
@ -134,7 +134,7 @@ switch ($mode) {
|
||||||
$this->response['tpl_id'] = $tpl_id;
|
$this->response['tpl_id'] = $tpl_id;
|
||||||
$this->response['tpl_name'] = $tpl_name;
|
$this->response['tpl_name'] = $tpl_name;
|
||||||
$this->response['html']['tpl-last-edit-time'] = bb_date(TIMENOW, 'd-M-y H:i');
|
$this->response['html']['tpl-last-edit-time'] = bb_date(TIMENOW, 'd-M-y H:i');
|
||||||
$this->response['html']['tpl-last-edit-by'] = $userdata['username'];
|
$this->response['html']['tpl-last-edit-by'] = profile_url(get_userdata($userdata['username'], true));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// создание нового шаблона
|
// создание нового шаблона
|
||||||
|
@ -157,7 +157,10 @@ switch ($mode) {
|
||||||
if (!DB()->query($sql)) {
|
if (!DB()->query($sql)) {
|
||||||
$sql_error = DB()->sql_error();
|
$sql_error = DB()->sql_error();
|
||||||
}
|
}
|
||||||
DB()->query("UPDATE " . BB_FORUMS . " SET forum_tpl_id = 0 WHERE forum_id = $forum_id LIMIT 1");
|
$get_forum_tpl_id = DB()->fetch_row("SELECT forum_tpl_id FROM " . BB_FORUMS . " WHERE forum_id = " . $forum_id . " LIMIT 1");
|
||||||
|
if ($tpl_id == $get_forum_tpl_id['forum_tpl_id']) {
|
||||||
|
DB()->query("UPDATE " . BB_FORUMS . " SET forum_tpl_id = 0 WHERE forum_id = $forum_id LIMIT 1");
|
||||||
|
}
|
||||||
$this->response['msg'] = "Шаблон {$tpl_data['tpl_name']} успешно удалён";
|
$this->response['msg'] = "Шаблон {$tpl_data['tpl_name']} успешно удалён";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -4796,9 +4796,10 @@ $(function(){
|
||||||
<div style="width: 99%">
|
<div style="width: 99%">
|
||||||
<div><input type="text" id="preview-title" size="60" value="" class="bold" style="width: 100%" /></div>
|
<div><input type="text" id="preview-title" size="60" value="" class="bold" style="width: 100%" /></div>
|
||||||
<div><textarea id="preview-msg" rows="15" cols="10" wrap="off" class="editor" style="width: 100%"></textarea></div>
|
<div><textarea id="preview-msg" rows="15" cols="10" wrap="off" class="editor" style="width: 100%"></textarea></div>
|
||||||
<div class="tCenter">
|
<div class="tCenter mrg_8">
|
||||||
<input type="button" value="Создать HTML" onclick="ajax.posts( $('#preview-msg').val(), 'preview-html-body' );" class="bold" />
|
<input type="button" value="{L_AJAX_PREVIEW}" onclick="ajax.posts( $('#preview-msg').val(), 'preview-html-body' );" class="bold"/>
|
||||||
</div>
|
<input type="button" value="Продолжить (Создать релиз)" onclick="tpl_submit(true);" class="bold"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -4817,9 +4818,10 @@ $(function(){
|
||||||
После заполнения поля <i>форма</i> нажмите кнопку <i>Создать форму</i><br /><br />
|
После заполнения поля <i>форма</i> нажмите кнопку <i>Создать форму</i><br /><br />
|
||||||
В поле <i>сообщение</i> добавьте элементам необходимые атрибуты (req, spoiler и т.д.)<br /><br />
|
В поле <i>сообщение</i> добавьте элементам необходимые атрибуты (req, spoiler и т.д.)<br /><br />
|
||||||
Заполните созданную форму (вручную либо автозаполнителем)<br /><br />
|
Заполните созданную форму (вручную либо автозаполнителем)<br /><br />
|
||||||
Кнопки <i>Продолжить</i> и <i>Создать сообщение</i> создают ббкод сообщения<br /><br />
|
Кнопки <i>Продолжить</i> и <i>Создать сообщение</i> создают BBCode сообщения<br /><br />
|
||||||
Кнопка <i>Создать HTML</i> - создает HTML сообщения<br /><br />
|
Кнопка <i>Предпросмотр</i> - показывает итоговый результат<br /><br />
|
||||||
Заполните поле <i>название</i>
|
Заполните поле <i>название</i><br /><br />
|
||||||
|
Далее нажмите на кнопку <i>Продолжить (Создать релиз)</i> - откроется страница где вы сможете прикрепить файл и опубликовать релиз
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -4843,19 +4845,19 @@ $(function(){
|
||||||
<col class="row2" width="80%">
|
<col class="row2" width="80%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2">Заполните форму для релиза<!-- IF EDIT_TPL --> [ <u class="clickable" onclick="tpl_fill_form();">Заполнить</u> ]<!-- ENDIF --></th>
|
<th colspan="2">Заполните форму для релиза<!-- IF EDIT_TPL --> [ <u title="Генерирует случайное заполнение" class="clickable" onclick="tpl_fill_form();">Заполнить</u> ]<!-- ENDIF --></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="rel-tpl">
|
<tbody id="rel-tpl">
|
||||||
</tbody>
|
</tbody>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="pad_8 tCenter bold">На следующей странице проверьте оформление и загрузите torrent файл</td>
|
<td colspan="2" class="pad_8 tCenter bold">На следующей странице проверьте оформление и загрузите файл</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="catBottom" colspan="2">
|
<td class="catBottom" colspan="2">
|
||||||
<!-- IF EDIT_TPL -->
|
<!-- IF EDIT_TPL -->
|
||||||
<input type="button" value="Заполнить" style="width: 120px;" onclick="tpl_fill_form();" />
|
<input type="button" title="Генерирует случайное заполнение" value="Заполнить" style="width: 120px;" onclick="tpl_fill_form();" />
|
||||||
<input type="button" value="Продолжить" class="bold" style="width: 150px;" onclick="tpl_build_msg(true);" />
|
<input type="button" value="Продолжить" class="bold" style="width: 150px;" onclick="tpl_build_msg(true);" />
|
||||||
<!-- ELSE -->
|
<!-- ELSE -->
|
||||||
<input type="button" value="Продолжить" class="bold" style="width: 150px;" onclick="tpl_submit(true);" />
|
<input type="button" value="Продолжить" class="bold" style="width: 150px;" onclick="tpl_submit(true);" />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue