Quote:
Originally Posted by rapidphim
Is it possible for:
1/ On each tab, show the number of new threads created/replied? For example: Tab 1 (2 New)
2/ A quick ajax display all the new created/replied threads when click on number of new created/replied threads?
3/ Everytime user clicks Home, is there away to bring them back to first tab, instead of staying at the current tab that they selected?
|
1. Yes, that is possible, you could get that information from the specific $forumbit array for each tab.
2. This version is not AJAX. The next version will have various AJAX settings that can be used.
3. Yes, set instance.setpersist(false). This tells the script whether to persist the tabs' state for the duration of the browser session. If enabled (true), the last clicked on tab is remembered and recalled upon the visitor's return. If disabled (false), it will load the "selected" tab upon each page load.
example ..
Code:
<!-- Tabbed Forums switch tab script -->
<script type="text/javascript">
var myforumtabs=new ddtabcontent("forumtabs")
myforumtabs.setpersist(false)
myforumtabs.setselectedClassTarget("link")
myforumtabs.init()
</script>
<!-- /end Tabbed Forums switch tab script -->