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

Все знают что я верстаю псд макет который выложил Respect. Ну даже кто не знал, теперь знают.

 

Есть несколько вопросов. так как давненько не имел дело с IPB и подзабыл уже что то даже.

 

При верстке возникли идеи , но блин проблема вся в переменных.

 

На данном этапе нужны только перечисленные ниже : 

 

Аватарка пользователя

Логин пользователя

Ссылка на настройки, выход

Ссылка на Регистрацию, и Вход пользователя.

Скрытие блока от авторизованных пользователей.(видел на многих шаблонах что то типа приветствия)

 

Пока что только они.

 

 

Со временем обновлю пост, надеюсь администрация не даст предупреждение о том что апаю тему по 100 раз на дню )

 

Update :

 

 

Ссылки на приложения 

форум

пользователи

и которые установил администратор форума, ну что бы сами появлялись )

 

Ссылка на профиль пользователя

Аватарка пользователя

Какого?

Под которым вошли:

<img src='{$this->memberData['pp_small_photo']}' alt="{parse expression="sprintf($this->lang->words['users_photo'],$this->memberData['members_display_name'])"}" class='user_photo' />

Логин пользователя

Ник:

{$this->memberData['members_display_name']}

Ссылка на настройки, выход

Выход:

<a href="{parse url="app=core&module=global&section=login&do=logout&k={$this->member->form_hash}" base="public"}">

Настройки:

<a href="{parse url="app=core&module=usercp" base="public"}" title="{$this->lang->words['cp_tool_tip']}">

Ссылка на Регистрацию, и Вход пользователя.

Вход:

<a href='{parse url="app=core&module=global&section=login" base="public"}' title='{$this->lang->words['sign_in']}' id='sign_in'>

Регистрация:

<a href="{parse url="app=core&module=global&section=register" base="public"}" title='{$this->lang->words['register']}' id='register_link'>

Скрытие блока от авторизованных пользователей.(видел на многих шаблонах что то типа приветствия)

Вот такой IF:

<if test="!($this->memberData['member_id']) AND !($this->request['section'] == 'register')">
  • Author

Скрытие блока от авторизованных пользователей.(видел на многих шаблонах что то типа приветствия)

а на оборот как выглядит ? что бы не авторизованные не видили ?

 

И да апнул первую темку !

Скрытие блока от авторизованных пользователей.(видел на многих шаблонах что то типа приветствия)

а на оборот как выглядит ? что бы не авторизованные не видили ?

 

И да апнул первую темку !

<if test="$this->memberData['member_id']">
   Сообщение для авторизованных пользователей
</if>

Edited by LvsF

  • Author

Вопросик, как прсоеденить отдельный фал который я создал в globalTemplate ??
 

Допустим он лежит в папке стиля(в АЦ) там где сам globaltemplate, называется он profil. Мне надо вставить егов отдельное место в главном файле между тегами div. Как правильно его приделать ?! 


нашел !

  • Author

яж дописал что нашел :D


была очень старая задумка, решил сделать её.

 

Редята, как скрыть тег ли для всех пользователей, кроме администрации и модераторов !

Редята, как скрыть тег ли для всех пользователей, кроме администрации и модераторов !
Каких модераторов? Глобальных или форумных?

Ну ссылки в шапке на Модераторскую панель, и админ центр форума !

Так и нужно писать.

Весь код 

					<if test="accessreports:|:$this->memberData['is_mod'] OR !empty($this->memberData['access_report_center']) || ($this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link'])">
						<ul id='admin_bar' class='ipsList_inline left'>
							<if test="showacplink:|:$this->memberData['g_access_cp'] AND !$this->settings['security_remove_acp_link']">
								<li>
									<a href="{$this->settings['_admin_link']}" title='{$this->lang->words['admin_cp']}' target="_blank">{$this->lang->words['login_to_acp']}</a>
								</li>
							</if>
							<li><a href="{parse url="app=core&amp;module=modcp" base="public"}" title='{$this->lang->words['gbl_modcp_link_title']}'>{$this->lang->words['gbl_modcp_link']}</a></li>
							<if test="rclink:|:$this->memberData['access_report_center'] && $this->memberData['_cache']['report_num'] > 0">
								<li class='active'>
									<a href="{parse url="app=core&amp;module=reports&amp;do=index" base="public"}" title='{$this->lang->words['view_reports']}'>{$this->memberData['_cache']['report_num']} {$this->lang->words['report_member_bar']}</a>
								</li>
							</if>
						</ul>
					</if>

<ul class='ipsList_inline' id='community_app_menu'>
<if test="showQuickNav:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline']) && $this->memberData['g_view_board']">
<li class='right'>
<a href="{parse url="app=core&amp;module=global&amp;section=navigation&amp;inapp={parse expression="IPS_APP_COMPONENT"}" base="public"}" rel="quickNavigation" accesskey='9' id='quickNavLaunch' title='{$this->lang->words['launch_quicknav']}'><span>&nbsp;</span></a>
</li>
</if>
<li id='nav_explore' class='right'>
<a href='{parse url="app=core&amp;module=search&amp;do=viewNewContent&amp;search_app=<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSLib::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>" base="public"}' accesskey='2' title='{$this->lang->words['view_new_posts']}'>{$this->lang->words['view_new_posts']}</a>
</li>
<if test="showhomeurl:|:$this->settings['home_url'] AND $this->settings['home_name']">
<li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
</if>
<if test="hasCustomPrimaryNavigation:|:!empty($header_items['primary_navigation_menu'])">
{$header_items['primary_navigation_menu']}
<else />
<if test="applicationsloop:|:is_array($header_items['applications']) AND count($header_items['applications'])">
<foreach loop="applications:$header_items['applications'] as $data">
<if test="showingapp:|:$data['app_show']">
{parse variable="appActive" default="" oncondition="$data['app_active']" value="active"}
<li id='nav_app_{$data['app_dir']}' class="left {parse variable="appActive"}"><a href='{parse url="{$data['app_link']}" seotitle="{$data['app_seotitle']}" template="{$data['app_template']}" base="{$data['app_base']}"}' title='{parse expression="sprintf( $this->lang->words['go_to_prefix'], IPSLib::getAppTitle($data['app_dir']) )"}'>{IPSLib::getAppTitle($data['app_dir'])}</a></li>
</if>
</foreach>
</if>
</if>
<li id='nav_other_apps' style='display: none'>
<a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a>
</li>
</ul>

 

Создайте новый стиль в АЦ и смотрите код в шаблонах :)

  • Author

<ul class='ipsList_inline' id='community_app_menu'>
<if test="showQuickNav:|:! ( ! $this->memberData['member_id'] && $this->settings['force_login'] ) && !($this->settings['board_offline'] && !$this->memberData['g_access_offline']) && $this->memberData['g_view_board']">
<li class='right'>
<a href="{parse url="app=core&amp;module=global&amp;section=navigation&amp;inapp={parse expression="IPS_APP_COMPONENT"}" base="public"}" rel="quickNavigation" accesskey='9' id='quickNavLaunch' title='{$this->lang->words['launch_quicknav']}'><span>&nbsp;</span></a>
</li>
</if>
<li id='nav_explore' class='right'>
<a href='{parse url="app=core&amp;module=search&amp;do=viewNewContent&amp;search_app=<if test="viewnewcontentapp:|:$this->registry->getCurrentApplication() != 'core' AND IPSLib::appIsSearchable( $this->registry->getCurrentApplication() )">{$this->registry->getCurrentApplication()}<else />forums</if>" base="public"}' accesskey='2' title='{$this->lang->words['view_new_posts']}'>{$this->lang->words['view_new_posts']}</a>
</li>
<if test="showhomeurl:|:$this->settings['home_url'] AND $this->settings['home_name']">
<li id='nav_home' class='left'><a href='{$this->settings['home_url']}' title='{$this->lang->words['homepage_title']}' rel="home">{$this->settings['home_name']}</a></li>
</if>
<if test="hasCustomPrimaryNavigation:|:!empty($header_items['primary_navigation_menu'])">
{$header_items['primary_navigation_menu']}
<else />
<if test="applicationsloop:|:is_array($header_items['applications']) AND count($header_items['applications'])">
<foreach loop="applications:$header_items['applications'] as $data">
<if test="showingapp:|:$data['app_show']">
{parse variable="appActive" default="" oncondition="$data['app_active']" value="active"}
<li id='nav_app_{$data['app_dir']}' class="left {parse variable="appActive"}"><a href='{parse url="{$data['app_link']}" seotitle="{$data['app_seotitle']}" template="{$data['app_template']}" base="{$data['app_base']}"}' title='{parse expression="sprintf( $this->lang->words['go_to_prefix'], IPSLib::getAppTitle($data['app_dir']) )"}'>{IPSLib::getAppTitle($data['app_dir'])}</a></li>
</if>
</foreach>
</if>
</if>
<li id='nav_other_apps' style='display: none'>
<a href='#' class='ipbmenu' id='more_apps'>{$this->lang->words['more_apps']} <img src='{$this->settings['img_url']}/useropts_arrow.png' /></a>
</li>
</ul>

 

Создайте новый стиль в АЦ и смотрите код в шаблонах :)

Я бы срадостью, но чет у меня ошибка при создании любого стиля, а импортировать не хочу 

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.