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

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

 <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>

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




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

 

  • Author

Уважаемый ToRN™, ты когда создавал эту тему соглашался с правилами? 

 

Соглашался, признаю, про картинки не углядел..

 

  • Author

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

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

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

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

Edited by ToRN™

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.