MyBB Community Forums

Full Version: MyTabs Plugin - How To Remember What Tab Users Are On When They Refresh Page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey! I use the MyTabs plugin for my Forum. I am running the newest version of mybb - 1.6.7. Here is the link to the tabbed plugin I am using - http://mods.mybb.com/view/mytabs. Is there a way to make it so that it remembers what tab you were on when you refresh the page so that it stays on that tab instead of going to the default tab? For example, I have 5 tabs. Lets say someone goes on the 3rd tab and then they refresh the page, how do I make it so it stays on the 3rd tab and doesn't go to the regular default 1st tab? I really appreciate the help. Thanks in advance!
Pretty sure Cookies is your solution.
(2012-05-06, 08:33 PM)kdevs Wrote: [ -> ]Pretty sure Cookies is your solution.

Yeah, that's what I was thinking. But how can I add a cookie whenever someone clicks on a tab? I'm really new to this so please help me set the cookies up. Thanks!
This is a preinstalled feature in Tabbed Menu from http://www.mybbcentral.com/thread-7687.html

You can request the coder of MyTabs to add it.
I have a different one - http://mods.mybb.com/view/mytabs - Can you please tell me exactly what I need to do to do this? Thanks!
I have solution. PM inbound

Modified version attached for everyone to use.

This one will retain tab selection on the index page (or forum.php page if one renames portal). tab resets on viewing of another page or end of browser session.

Requires cookies to be available. Ajax supported.
Would you please explain more?! I want to MyTabs shows the latest tab that user viewed on his browser. for example he was visiting "tab 3" and then he closes the browser, next time he opens the site the default tab would be tab 3.
Please help.
What your attached file do exactly?