Jump to content
4.4.3
Sign in to follow this  

Не работает смена стиля


๖ۣۣۜDesperate™

Description

Исправляем ошибку при попытке сменить стиль на форуме

Пройти в ACP - Внешний вид - Ваш стиль - globalTemplate
Найти:

<if test="skinchanger:|:count($footer_items['skin_chooser']) > 1">
	    <if test="uagentlocked:|:$this->memberData['userAgentLocked'] AND ! $this->memberData['userAgentBypass']">
			    <li id='useragent_msg'>
					    {$this->lang->words['skin_browser_set']} <a href='{parse url="{$this->settings['query_string_formatted']}&amp;unlockUserAgent=1" base="public"}'>{$this->lang->words['override_browser_theme']}</a>
			    </li>
	    <else />
	    <if test="isTouchDevice:|:$this->registry->output->isTouchDevice()">
			    <li>
					    <a href='{parse url="{$this->settings['query_string_formatted']}&amp;setAsMobile=1" base="public"}'>{$this->lang->words['set_mobile_theme']}</a>
			    </li>
	    </if>
			    <li>
					    <a rel="nofollow" id='new_skin' href='#'>{$this->lang->words['change_theme']}</a>					  
					    <ul id='new_skin_menucontent' class='ipbmenu_content with_checks' style='display: none'>
							    <foreach loop="$footer_items['skin_chooser'] as $skin">
									    <li <if test="$skin['selected']">class='selected'</if>>
											    <a href='{parse url="{$this->settings['query_string_formatted']}&amp;k={$this->member->form_hash}&amp;settingNewSkin={$skin['id']}" base="public"}'>{$skin['title']}</a>
									    </li>
							    </foreach>
					    </ul>
			    </li>
	    </if>
</if>

Заменить на:

<if test="skinchanger:|: ! $this->member->is_not_human && count($footer_items['skin_chooser']) > 1">
	    <if test="uagentlocked:|:$this->memberData['userAgentLocked'] AND ! $this->memberData['userAgentBypass']">
			    <li id='useragent_msg'>
					    {$this->lang->words['skin_browser_set']} <a href='#' data-clicklaunch='changeSkin' data-skinid='unlockUserAgent'>{$this->lang->words['override_browser_theme']}</a>
			    </li>
	    <else />
	    <if test="isTouchDevice:|:$this->registry->output->isTouchDevice()">
			    <li>
					    <a href='#' data-clicklaunch='changeSkin' data-skinid='setAsMobile'>{$this->lang->words['set_mobile_theme']}</a>
			    </li>
	    </if>
			    <li>
					    <a rel="nofollow" id='new_skin' href='#'>{$this->lang->words['change_theme']}</a>					  
					    <ul id='new_skin_menucontent' class='ipbmenu_content with_checks' style='display: none'>
							    <foreach loop="$footer_items['skin_chooser'] as $skin">
									    <li <if test="$skin['selected']">class='selected'</if>>
											    <a href='#' data-clicklaunch='changeSkin' data-skinid='{$skin['id']}'>{$skin['title']}</a>
									    </li>
							    </foreach>
					    </ul>
			    </li>
	    </if>
</if>

 



Recommended Comments

There are no comments to display.

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
Add a Comment

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...