Перейти к содержанию

ToRN™

Пользователи
  • Постов

    17
  • Зарегистрирован

  • Посещение

Сообщения, опубликованные ToRN™

  1. Америкосы до сих пор не научились рипать. 

    Скорее всего неправильный путь до js скриптов

    Ваша правда. Первый раз вижу шаблон, с таким кол-вом багов, обычно попадаются готовый, которые и править не нужно. А тут уже значительно багов поправил

    Пути к js, в globalTemplate правильные

  2. Собственно юзаю один шаблон, не знаю в чём проблема.
    Дело в том, что не открывается форма поиска, сначала думал, что не правильный код вызова панели, а тут нет, всё правильно:

     <li><a href="#" title="Поиск по сайту" id="search"><font><font>Поиск</font></font></a></li>

    Как я понял, панель сама находится в quickSearch, содержимое его такое:

     

    <div id='search' class='right'>
    	<form action="{parse url="app=core&amp;module=search&amp;do=search&amp;fromMainBar=1" base="public"}" method="post" id='search-box' >
    		<fieldset>
    			<label for='main_search' class='hide'>{$this->lang->words['sj_search']}</label>
    			<a href='{parse url="app=core&amp;module=search&amp;search_in=<if test="hasSearchApp:|:isset($this->request['search_app']) AND $this->request['search_app']">{$this->request['search_app']}<else />{$this->registry->getCurrentApplication()}</if>" base="public"}' title='{$this->lang->words['advanced_search']}' accesskey='4' rel="search" id='adv_search' class='right'>{$this->lang->words['advanced']}</a>
    			<span id='search_wrap' class='right'>
    				<input type='text' id='main_search' name='search_term' class='inactive' size='17' tabindex='100' />
    				<span class='choice ipbmenu clickable' id='search_options' style='display: none'></span>
    				<ul id='search_options_menucontent' class='ipbmenu_content ipsPad' style='display: none'>
    					<li class='title'><strong>{$this->lang->words['context_search_title']}</strong></li>
    					<if test="inTopic:|:$this->request['showtopic'] or ( isset( $this->request['search_app'] ) and substr( $_POST['search_app'], 0, 13 ) == 'forums:topic:' )">
    						<li class='special'>
    							<label for='s_topic' title='{$this->lang->words['context_search_topic']}'>
    								<if test="$this->request['showtopic']">
    									<input type='radio' name='search_app' value="forums:topic:{$this->request['showtopic']}" class='input_radio' id='s_topic' checked="checked" /> 
    								<else />
    									<input type='radio' name='search_app' value="forums:topic:{parse expression="substr( $_POST['search_app'], 13 )"}" class='input_radio' id='s_topic' checked="checked" /> 
    								</if>
    								<strong>{$this->lang->words['context_search_topic']}</strong>
    							</label>
    						</li>
    					</if>
    					<if test="inForum:| $this->request['showforum'] AND $this->registry->getClass('class_forums')->forum_by_id[ $this->request['showforum'] ]['sub_can_post'] ) or ( isset( $this->request['search_app'] ) and substr( $_POST['search_app'], 0, 13 ) == 'forums:forum:' )">
    						<li class='special'>
    							<label for='s_forum' title='{$this->lang->words['context_search_forum']}'>
    								<if test="$this->request['showforum']">
    									<input type='radio' name='search_app' value="forums:forum:{$this->request['f']}" class='input_radio' id='s_forum' <if test="!$this->request['showtopic']">checked="checked"</if> /> 
    								<else />
    									<input type='radio' name='search_app' value="forums:forum:{parse expression="substr( $_POST['search_app'], 13 )"}" class='input_radio' id='s_forum' checked="checked" /> 
    								</if>
    								<strong>{$this->lang->words['context_search_forum']}</strong>
    							</label>
    						</li>
    					</if>
    					<if test="lookElsewhere:|:$this->request['app'] == 'core' and $this->request['module'] == 'search'">
    						{parse template="contextSearch" group="{search_app}_global" params=""}
    					<else />
    						<if test="!in_array( $this->registry->getCurrentApplication(), array( 'forums', 'members', 'core' ) )">
    							<if test="appContextSearch:|:method_exists( $this->registry->output->getTemplate( $this->registry->getCurrentApplication() . '_global' ), 'contextSearch' )">
    								{parse template="contextSearch" group="{current_app}_global" params=""}
    							</if>
    						</if>
    					</if>
    					<if test="IPSLib::appIsSearchable( 'forums', 'search' )">
    						<li class='app'><label for='s_forums' title='{IPSLib::getAppTitle('forums')}'><input type='radio' name='search_app' class='input_radio' id='s_forums' value="forums" <if test="inThisAppForums:| ( isset($this->request['search_app']) AND $this->request['search_app'] == 'forums' ) ) || ( !IPSLib::appIsSearchable( $this->registry->getCurrentApplication(), 'search' ) ) || ( ( $this->registry->getCurrentApplication() == 'forums' ) && ! $this->request['search_app'] ) && !$this->request['showtopic'] && !$this->request['showforum']"><if test="substr( $_POST['search_app'], 0, 13 ) != 'forums:topic:' and substr( $_POST['search_app'], 0, 13 ) != 'forums:forum:'">checked="checked"</if></if> />{IPSLib::getAppTitle( 'forums' )}</label></li>
    					</if>
    					<if test="IPSLib::appIsSearchable( 'members', 'search' )">
    						<li class='app'><label for='s_members' title='{IPSLib::getAppTitle('members')}'><input type='radio' name='search_app' class='input_radio' id='s_members' value="members" <if test="inThisAppMembers:| ( isset($this->request['search_app']) AND $this->request['search_app'] == 'members' ) ) || ( ( $this->registry->getCurrentApplication() == 'members' ) && ! $this->request['search_app'] ) && !$this->request['showtopic'] && !$this->request['showforum']">checked="checked"</if> />{IPSLib::getAppTitle( 'members' )}</label></li>
    					</if>
    					<if test="IPSLib::appIsSearchable( 'core', 'search' )">
    						<li class='app'><label for='s_core' title='{IPSLib::getAppTitle('core')}'><input type='radio' name='search_app' class='input_radio' id='s_core' value="core" <if test="inThisAppCore:| ( isset($this->request['search_app']) AND $this->request['search_app'] == 'core' ) ) || ( ( $this->registry->getCurrentApplication() == 'core' ) && ! $this->request['search_app'] ) && !$this->request['showtopic'] && !$this->request['showforum']">checked="checked"</if> />{IPSLib::getAppTitle( 'core' )}</label></li>
    					</if>
    					<foreach loop="appLoop:$this->registry->getApplications() as $app => $data">				
    						<if test="IPSLib::appIsSearchable( $app, 'search' ) AND !in_array( $app, array( 'forums', 'members', 'core' ) )">
    							<li class='app'>
    								<label for='s_{$app}' title='{IPSLib::getAppTitle( $app )}'>
    									<if test="$this->request['app'] == 'core' and $this->request['module'] == 'search'">
    										<input type='radio' name='search_app' class='input_radio' id='s_{$app}' value="{$app}" <if test="inThisAppSearch:| ( isset($this->request['search_app']) AND $this->request['search_app'] == $app ) || ( !IPSLib::appIsSearchable( $this->registry->getCurrentApplication(), 'search' ) AND $app == 'core' ) || ( ( $this->registry->getCurrentApplication() == $app ) && ( !isset($this->request['search_app']) OR !$this->request['search_app'] ) ) ) && !$this->request['showtopic'] && !$this->request['showforum'] && ( !method_exists( $this->registry->output->getTemplate( $this->request['search_app'] . '_global' ), 'contextSearch' ) or ipsRegistry::$appSearch )">checked="checked"</if> />
    									<else />
    										<input type='radio' name='search_app' class='input_radio' id='s_{$app}' value="{$app}" <if test="inThisAppNotSearch:| ( isset($this->request['search_app']) AND $this->request['search_app'] == $app ) || ( !IPSLib::appIsSearchable( $this->registry->getCurrentApplication(), 'search' ) AND $app == 'core' ) || ( ( $this->registry->getCurrentApplication() == $app ) && ( !isset($this->request['search_app']) OR !$this->request['search_app'] ) ) ) && !$this->request['showtopic'] && !$this->request['showforum'] && ( !method_exists( $this->registry->output->getTemplate( $this->registry->getCurrentApplication() . '_global' ), 'contextSearch' ) or ipsRegistry::$appSearch )">checked="checked"</if> />
    									</if>
    									{IPSLib::getAppTitle( $app )}
    								</label>
    							</li>
    						</if>
    					</foreach>
    				</ul>
    		<if test="canSearch:|:$this->memberData['g_use_search']">{parse template="quickSearch" group="global" params=""}</if>
    			</span>
    			
    		</fieldset>
    	</form>
    </div>
    

    Собственно как сейчас:




    А по нажатию на "Поиск", панель должна появляться:

     

  3. ToRN™, посмотри лог почтового сервера, скорее всего в car/log/mail/ 

    Смотрел, ничего подозрительного.

    Настроил SMTP через почту своего сервера - заработало. Странно конечно, что не работает php_mail

  4. Собственно не знаю в чём дело - не отправляются email с форума. 
    Сначала подумал, что это хостер мне отключил php_mail, но на другом сайте отправка стабильно работает.
    Далее думаю, ладно, бог с ним, с php_mail, настрою через SMTP, но и тут не работает. 
    В чём может быть дело? Проверял через диагностику - "невозможно отправить сообщение"

  5. Гуру IPB, подскажите как установить другую цветовую гамму данного стиля на стандарт. Сейчас стоит светло-синяя (slate), хочу marble. как я понимаю это другой стиль записывается в куки, но не смог догнать, как сделать на стандарт и откуда вытянуть

  6. АЦ > Настройки > Настройки системы > System > Отключение форума

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

  7. В общем-то перенёс форум с поддомена на отдельный домен, столкнулся с проблемой: так как форум отключён, то все неавторизованные пользователи видят такую картину: 2373ba17ea264afa86c04d3.png

     

    Ну я авторизовываюсь,

    7bba311bfc3b4559b5c8d5a.png
    Далее меня опять перебрасывает сюда:
    2373ba17ea264afa86c04d3.png
    Авторизовываюсь через панель выше:
    8d045c9b6f40402085de6f0.png

     

    Появляется форум, но после обновления страницы опять же нужно авторизовываться методом, которой описан выше. Логи молчат. В чём может быть дело?

  8. Если тебе надо, чтобы хуки и компоненты брали именно твои новые классы, нужно будет редактировать шаблон каждого хука/компонента.

    Спасибо, в принципе так и думал. Буду пробовать приводить в божеский вид, а то при установке своего стиля блока,  там что-то выпирает и т.д..

  9. В общем есть стиль сайта, хотелось бы сделать дизайн форума в похожем стиле.
    В общем-то первая проблема в этой не простой задаче: на странице форума выводятся хуки : статусы, топ репутации и т.д, я понял только как заменить код для каждого хука в отдельности, а как сделать так, чтобы хук брал уже классы нового дизайна?
    Ещё проблема в том, что если ставлю стили нового дизайна под хук, то хук кривится, как сделать это всё более менее красиво и правильно?

×
×
  • Создать...