Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
вот наверно то что ты ищешьДля просмотра скрытого содержимого вы должны войти или зарегистрироваться.
незнаюА на 2.3.3 работает?
SQL-запрос:
ALTER TABLE `ibf_forums` ADD `sponsor_image` VARCHAR( 255 ) NOT NULL ,
ADD `sponsor_desc` VARCHAR( 255 ) NOT NULL ,
ADD `sponsor_time` INT NOT NULL ;
<tr>
<td align="center" class="row2" width="1%">{$data['img_new_post']}</td>
<td class="row2">
<span style="float: right;">{$data['sponsor_desc']}: <img src='{$data['sponsor_image']}' /></span>
<tr>
<td width='40%' class='tablerow1'><strong>Forum Description</strong><div class='desctext'>You may use HTML - linebreaks automatically converted to <br></div></td>
<td width='60%' class='tablerow2'>{$form['description']}</td>
</tr>
<tr>
<td width='40%' class='tablerow1'><strong>Спонсор раздела: путь к картинке style_images/название</strong>
<div class='desctext'>Для ввода ссылки используйте этот шаблон:<br /><a href='адрес_ссылки' target='_blank'>Текст ссылки</a></div></td>
<td width='60%' class='tablerow2'>{$form['sponsor_image']}</td>
</tr>
<tr>
<td width='40%' class='tablerow1'><strong>Спонсор раздела: описание</strong></td>
<td width='60%' class='tablerow2'>{$form['sponsor_desc']}</td>
</tr>
<tr>
<td width='40%' class='tablerow1'><strong>Спонсор раздела: срок действия в днях</strong></td>
<td width='60%' class='tablerow2'>{$form['sponsor_time']}</td>
</tr>
Открыть ./sources/action_admin/forums.php
'permission_custom_error' => $this->ipsclass->my_nl2br( $this->ipsclass->txt_stripslashes($_POST['permission_custom_error']) ) );
Добавить перед:
'sponsor_image' => $this->ipsclass->input['sponsor_image'],
'sponsor_desc' => $this->ipsclass->my_nl2br( $this->ipsclass->txt_stripslashes($this->ipsclass->input['sponsor_desc'])),
'sponsor_time' => (time() + (intval($this->ipsclass->input['sponsor_time'])*86400)),
# Main settings
$form['name'] = $this->ipsclass->adskin->form_input( 'name' , ( isset($_POST['name']) AND $_POST['name'] ) ? $this->ipsclass->parse_clean_value( $_POST['name'] ) : $forum['name'] );
$form['description'] = $this->ipsclass->adskin->form_textarea("description" , $this->ipsclass->my_br2nl( ( isset($_POST['description']) AND $_POST['description'] )? $_POST['description'] : $forum['description'] ) );
$form['sponsor_image'] = $this->ipsclass->adskin->form_input("sponsor_image", ( isset($_POST['sponsor_image']) AND $_POST['sponsor_image'] ) ? $_POST['sponsor_image'] : $forum['sponsor_image'] );
$form['sponsor_desc'] = $this->ipsclass->adskin->form_input("sponsor_desc", ( isset($_POST['sponsor_desc']) AND $_POST['sponsor_desc'] ) ? $_POST['sponsor_desc'] : $forum['sponsor_desc'] );
$form['sponsor_time'] = $this->ipsclass->adskin->form_input("sponsor_time", ( isset($_POST['sponsor_time']) AND $_POST['sponsor_time'] ) ? $_POST['sponsor_time'] : ceil((($forum['sponsor_time']-time())/86400)) );
$forum_data['show_subforums'] = isset($forum_data['show_subforums'] ) ? $forum_data['show_subforums'] : '';
$forum_data['last_unread'] = isset($forum_data['last_unread'] ) ? $forum_data['last_unread'] : '';
if ( time() > $forum_data['time'] )
{
$forum_data['sponsor_image'] = "";
$forum_data['sponsor_desc'] = "";
}