mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -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 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))
|
||||
- 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))
|
||||
- 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))
|
||||
|
|
|
@ -134,7 +134,7 @@ switch ($mode) {
|
|||
$this->response['tpl_id'] = $tpl_id;
|
||||
$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-by'] = $userdata['username'];
|
||||
$this->response['html']['tpl-last-edit-by'] = profile_url(get_userdata($userdata['username'], true));
|
||||
break;
|
||||
|
||||
// создание нового шаблона
|
||||
|
@ -157,7 +157,10 @@ switch ($mode) {
|
|||
if (!DB()->query($sql)) {
|
||||
$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']} успешно удалён";
|
||||
break;
|
||||
|
||||
|
|
|
@ -4796,9 +4796,10 @@ $(function(){
|
|||
<div style="width: 99%">
|
||||
<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 class="tCenter">
|
||||
<input type="button" value="Создать HTML" onclick="ajax.posts( $('#preview-msg').val(), 'preview-html-body' );" class="bold" />
|
||||
</div>
|
||||
<div class="tCenter mrg_8">
|
||||
<input type="button" value="{L_AJAX_PREVIEW}" onclick="ajax.posts( $('#preview-msg').val(), 'preview-html-body' );" class="bold"/>
|
||||
<input type="button" value="Продолжить (Создать релиз)" onclick="tpl_submit(true);" class="bold"/>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -4817,9 +4818,10 @@ $(function(){
|
|||
После заполнения поля <i>форма</i> нажмите кнопку <i>Создать форму</i><br /><br />
|
||||
В поле <i>сообщение</i> добавьте элементам необходимые атрибуты (req, spoiler и т.д.)<br /><br />
|
||||
Заполните созданную форму (вручную либо автозаполнителем)<br /><br />
|
||||
Кнопки <i>Продолжить</i> и <i>Создать сообщение</i> создают ббкод сообщения<br /><br />
|
||||
Кнопка <i>Создать HTML</i> - создает HTML сообщения<br /><br />
|
||||
Заполните поле <i>название</i>
|
||||
Кнопки <i>Продолжить</i> и <i>Создать сообщение</i> создают BBCode сообщения<br /><br />
|
||||
Кнопка <i>Предпросмотр</i> - показывает итоговый результат<br /><br />
|
||||
Заполните поле <i>название</i><br /><br />
|
||||
Далее нажмите на кнопку <i>Продолжить (Создать релиз)</i> - откроется страница где вы сможете прикрепить файл и опубликовать релиз
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -4843,19 +4845,19 @@ $(function(){
|
|||
<col class="row2" width="80%">
|
||||
<thead>
|
||||
<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>
|
||||
</thead>
|
||||
<tbody id="rel-tpl">
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" class="pad_8 tCenter bold">На следующей странице проверьте оформление и загрузите torrent файл</td>
|
||||
<td colspan="2" class="pad_8 tCenter bold">На следующей странице проверьте оформление и загрузите файл</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="catBottom" colspan="2">
|
||||
<!-- 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);" />
|
||||
<!-- ELSE -->
|
||||
<input type="button" value="Продолжить" class="bold" style="width: 150px;" onclick="tpl_submit(true);" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue