JoomlaWorks Community Forum

LOGIN
Welcome to the JoomlaWorks Community Forum | If you have a question, please search before posting!

Author Topic: Always first Tab   (Read 2136 times)

Offline arz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Always first Tab
« on: February 15, 2012, 10:32:52 AM »
Hi, when you select a tab, for example the second of a 4 tabs row, and then you go to another page of the website, if you go back to the first "tab page" or to another "tab page", the Tabs & Slide Plugin show you the second tab selected.

I need it refresh the page every time and show always the first tab. Can you help me?

Thanks
Signatures appear only for members with more than 30 posts

Offline arz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Always first Tab
« Reply #1 on: February 20, 2012, 10:40:34 AM »
Please, I need an answer ??? or I had to look for another plugin.
Signatures appear only for members with more than 30 posts

Offline almighty

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Always first Tab
« Reply #2 on: July 30, 2012, 07:48:43 AM »
hello!

yes, i still have the same problem.
is there an solution for this issue?

hope you can help me.

Signatures appear only for members with more than 30 posts

Offline rsn

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Always first Tab
« Reply #3 on: July 30, 2012, 02:39:54 PM »
I've made the exact same complaint a few times, even before the newest release, but it was not fixed in the latest update so I'm not sure if/when it will be. My use of the plugin relies on the ability to refresh the tabs or at least link to specific tabs so that it doesn't keep jumping to the wrong one when you open a new page...but so far no luck with them fixing it   :(
Signatures appear only for members with more than 30 posts

Offline kapets

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Always first Tab
« Reply #4 on: August 19, 2012, 08:51:17 PM »
all what you have to do is to cut out code with cookie.
1. i copied/pasted code from behaviour.js into behaviour.min.js (code is more readable)
2. i removed all functions which was connected with cookie. there are 4 of them (Version2.6).
and here you have an active first tab.
it's works for me.
« Last Edit: August 19, 2012, 08:57:36 PM by kapets »
Signatures appear only for members with more than 30 posts

Offline gingerkid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Always first Tab
« Reply #5 on: September 18, 2012, 04:38:43 PM »
all what you have to do is to cut out code with cookie.
1. i copied/pasted code from behaviour.js into behaviour.min.js (code is more readable)
2. i removed all functions which was connected with cookie. there are 4 of them (Version2.6).
and here you have an active first tab.
it's works for me.

Hi, can you please list the exact code that you removed? Because I tried removing any mention of cookies and it ended up not displaying the tabs at all, so we need to know exactly which pieces of code to take out, so that it will not affect the tabs & sliders as a whole.

Also, I have a feeling that your method may cause unseen problems. This is obviously a big problem and the JoomleWorks team has supposedly been working on a fix...if it was as easy as removing a few pieces of code, I feel like it would already have been done and incorporated into the last release.
« Last Edit: September 18, 2012, 04:51:13 PM by gingerkid »
Signatures appear only for members with more than 30 posts

Offline gingerkid

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Always first Tab
« Reply #6 on: October 10, 2012, 02:43:44 PM »
Please, can ANYONE help?? I can't imagine the people who created this plugin can't tell us what code to remove or change in order to disable cookies! Can someone from JoomlaWorks please post this information? The plugin is fantastic except for this one issue, and it is a major issue!
Signatures appear only for members with more than 30 posts

Offline urosh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Always first Tab
« Reply #7 on: November 13, 2012, 08:41:00 AM »
Hello.

I need the same sollution for this... Can you please just put in an option, where we can choose if it should go to the first tab or stay where it was?

br, Uros
Signatures appear only for members with more than 30 posts

Offline logz05

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Always first Tab
« Reply #8 on: January 14, 2013, 10:57:42 AM »
Hi,

I solved this problem by the addition of a single line in v2.6....

Copy the contents of 
/plugins/content/jw_ts/jw_ts/includes/jsbehaviour.js
to
/plugins/content/jw_ts/jw_ts/includes/jsbehaviour.min.js  (this makes it easier to write to)

After line 42 add var begin = 0;

The function should now look like this:
Code: [Select] [nofollow]
function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
//Nick added for first tab open
var begin = 0;
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
return unescape(dc.substring(begin + prefix.length, end));
}

Hope this helps
Signatures appear only for members with more than 30 posts

Offline urosh

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Always first Tab
« Reply #9 on: January 14, 2013, 11:53:31 AM »
Hello.

Yes, that did the trick for me  :)

Thank you verry many, thank you many times   :D
Signatures appear only for members with more than 30 posts

Offline twh115

  • Newbie
  • *
  • Posts: 2
    • View Profile
Code for 2.7
« Reply #10 on: February 04, 2013, 04:15:40 PM »
Has anyone determined how to fix this in version 2.7?
I would like to always have the first tab show on page load / reload.

The version 2.6 fix does not work in the 2.7 code.

Signatures appear only for members with more than 30 posts

Find this topic helpful? Why not share it with others?