Sign in to follow this  
Followers 0

[3.3.X] Restoring Skin Changing Function


Description

This will help restore the skin changing function after the 3.2 Upgrade to 3.3.X
After upgrading to 3.3.0, you may notice that the skin change links in the 'Change Theme' drop down don't work.

To fix this:

1) Log into your Admin CP
2) Click on "Look and Feel">"Manage Template Sets"
3) Click on the name of the template set you wish to edit
4) In the left hand menu, select 'globalTemplate' under 'Global Templates'
5) In the HTML code, scroll down until you see the following code right at the end of the template

Exchange this code in the current template:
[CODE]
<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>
[/CODE]

[b]With this one[/b]
[CODE]
<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>
[/CODE]

Magreilys likes this


0 Comments

There are no comments to display.