Jump to content

Recommended Posts

  • Administrators
Posted

After upgrading to IP.Board 3.3 I noticed that the skin change links in the "Change Theme" drop down didn't work anymore.

 

Here is the fix:

 

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

 

 

Find this code in the current template:

<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']}&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']}&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']}&k={$this->member->form_hash}&settingNewSkin={$skin['id']}" base="public"}'>{$skin['title']}</a>
								    </li>
						    </foreach>
				    </ul>
		    </li>
    </if>
</if>

 

 

Replace with this 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>
Posted

Thanks for the fix man. This is definitely helpful for when I upgrade. Seems like they don't fully test their releases anymore......Pretty sure I'm gonna wait til 3.3.3 before upgrading. :lol:

  • Administrators
Posted

They do test, but pretty much always going to find a few bugs that make it through I guess. Not a big deal for me though.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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