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

Доброй ночи, уважаемый форумчане.

У меня возникла такая проблема, не могу понять как сделать...

Началось все с того, что я сделал главным приложением - IP.Nexus(то есть при входе на сайт открывается сразу этот модуль, вместе форума)

И теперь я не могу понять как сделать чтобы открывался IP.Nexus и при нем сразу же открывался мой каталог?

На скрине расписано как нужно сделать

post-4327-0-71630400-1424555502_thumb.pn

На всякий случай кину из шаблона код, который отвечает за просмотр главной страницы IP.Nexus(надеюсь что именно он отвечает - "ShowStore")

<h1 class='ipsType_pagetitle'>{$title}</h1>
<br />
<div class='ipsLayout ipsLayout_withleft ipsLayout_withright ipsLayout_largeright'>
	<div class='ipsLayout_left'>
		<div class='general_box'>
			<h3>{$this->lang->words['store_categories']}</h3>
			<ul style='padding: 6px;'>
			{parse template="cat_menu_item" group="nexus_payments" params="$packageGroups[0], $hierarchy"}
			</ul>
		</div>
	</div>
	<div class='ipsLayout_right'>
		<div class='general_box clearfix'>
			<h3>{$this->lang->words['store_cart']}</h3>
			{parse template="cart_sidebar" group="nexus_payments" params="$cart"}
		</div>
		<if test="hasCredits:|:$this->memberData['cm_credits']">
			<div class='message unspecific' style='margin-top: 10px'>
				{parse expression="sprintf( $this->lang->words['store_credit'], "{parse currency="$this->memberData['cm_credits']"}")"}
			</div>
		</if>
	</div>
	
	<div class='ipsLayout_content'>
		
			<div class='maintitle ipsFilterbar clearfix'>
				<if test="featured:|:$featured">
					<ul class='ipsList_inline left'>
						<li <if test="active:|:$this->request['featured'] || !$this->request['featured'] && !$this->request['popular']">class='active'</if>>
							<a href='{parse url="app=nexus&amp;featured=1&amp;view={$this->request['view']}" base="public" template="store-featured" seotitle="featured"}' title='{$this->lang->words['store__featured']}'>{$this->lang->words['store_featured']}</a>
						</li>
						<li <if test="popular:|:$this->request['popular']">class='active'</if>>
							<a href='{parse url="app=nexus&amp;popular=1&amp;view={$this->request['view']}" base="public" template="store-popular" seotitle="popular"}' title='{$this->lang->words['store__popular']}'>{$this->lang->words['store_popular']}</a> 
						</li>
					</ul>
				<else />
					{$cat['pg_name']}
				</if>
				<if test="$this->settings['nexus_store_viewswitch']">
					<ul class='ipsList_inline right'>
						<li>{$this->lang->words['store_view']}</li>
						<li <if test="$this->request['view'] == 'list'">class='active'</if>>
							<if test="$featured">
								<if test="$this->request['featured']">
									<a href='{parse url="app=nexus&amp;featured=1&amp;view=list" base="public" template="store-featured" seotitle="featured"}'>{$this->lang->words['store_view_list']}</a>
								<else />
									<a href='{parse url="app=nexus&amp;popular=1&amp;view=list" base="public" template="store-popular" seotitle="popular"}'>{$this->lang->words['store_view_list']}</a>
								</if>
							<else />
								<a href='{parse url="app=nexus&amp;module=payments&amp;cat={$cat['pg_id']}&amp;view=list" base="public" template="storecat" seotitle="{$cat['pg_seo_name']}"}'>{$this->lang->words['store_view_list']}</a>
							</if>
						</li>
						<li <if test="$this->request['view'] == 'grid'">class='active'</if>>
							<if test="$featured">
								<if test="$this->request['featured']">
									<a href='{parse url="app=nexus&amp;featured=1&amp;view=grid" base="public" template="store-featured" seotitle="featured"}'>{$this->lang->words['store_view_grid']}</a>
								<else />
									<a href='{parse url="app=nexus&amp;popular=1&amp;view=grid" base="public" template="store-popular" seotitle="popular"}'>{$this->lang->words['store_view_grid']}</a>
								</if>
							<else />
								<a href='{parse url="app=nexus&amp;module=payments&amp;cat={$cat['pg_id']}&amp;view=grid" base="public" template="storecat" seotitle="{$cat['pg_seo_name']}"}'>{$this->lang->words['store_view_grid']}</a>
							</if>
						</li>
					</ul>
				</if>
			</div>
		
		<div class='ipsBox' <if test="$this->request['view'] == 'grid'">style='text-align:center'</if>>
			<if test="empty( $packages )">
				<p class='no_messages'>
					{$this->lang->words['store_empty']}
				</p>
			<else />
				<foreach loop="packages:$packages as $packageID => $package">
					<if test="$this->request['view'] == 'grid'">
						{parse template="storeGridView" group="nexus_payments" params="$package"}
					<else />
						{parse template="storeListView" group="nexus_payments" params="$package"}
					</if>
				</foreach>
			</if>
		</div>
		
		{$pagination}
		
	</div>
</div>

Заранее огромнейшее спасибо за помощь.

  • Author

То есть у меня в inidata.php стоит "nexus" в стартовой странице, а надо чтобы как-то можно было сразу попадать сюда:

index.php?/store/category/3-uslugi/?view=grid

Ммм.
 
Можно попробовать через .htaccess назначить индексной определенную страницу.
 
Например, попробовал назначить Чат главной ( форум 3.4.6, главной в initdata.php стоит "portal" )

DirectoryIndex index.php?app=shoutbox

Теперь по адресу http: // mysite.ru открывается Чат.
НО по адресу http: // mysite.ru / index.php по прежнему открывается Портал.

 

Тут уже можно попробовать настроить редирект с mysite.ru / index.php на Чат, а на портал везде ставить ссылки вида index.php?app=portal . Не знаю  :think:или просто оставить как есть: http: // mysite.ru - Чат, http: // mysite.ru / index.php - Портал.

 

Вот такой вот вариант  :shake:

Edited by Viktar83

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.