Jump to content


Tutorial info Visit support topic

  • Added on: Mar 03 2010 09:07 AM
  • Views: 903
 


Making the Topic tab active by default on the Watched Items hook

This tutorial explains how to change the Watched Items hook on the Board Index so that the Topics tab is active by default.

Posted by Michael on Mar 03 2010 09:07 AM
To make the Topics tab active by default, edit the Board Index -> hookWatchedItems skin template, find this code:

<ol class='tab_bar no_title mini'>
				<li id='tab_link_forums' class='tab_toggle active clickable'>{$this->lang->words['watched_forums']}</li>
				<li id='tab_link_topics' class='tab_toggle clickable'>{$this->lang->words['watched_topics']}</li>
			</ol>
			<div id='tab_content_forums' class='tab_toggle_content'>
Change it to:

<ol class='tab_bar no_title mini'>
				<li id='tab_link_forums' class='tab_toggle clickable'>{$this->lang->words['watched_forums']}</li>
				<li id='tab_link_topics' class='tab_toggle active clickable'>{$this->lang->words['watched_topics']}</li>
			</ol>
			<div id='tab_content_forums' class='tab_toggle_content' style='display:none;'>
Find:

<div id='tab_content_topics' class='tab_toggle_content' style='display:none;'>
Change it to:

<div id='tab_content_topics' class='tab_toggle_content'>
Save the template, repeat for each skin.

Edit the /public/js/ips.hooks.js file, and change this code:

activeTab: 'forums',
To this:

activeTab: 'topics',
Save and upload.

Powered by Tutorials 1.5.1 © 2013, by Michael McCune