MyBB Community Forums
[YATT] - Yet another tab tutorial (with cookies) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: [YATT] - Yet another tab tutorial (with cookies) (/thread-139594.html)

Pages: 1 2 3 4


RE: [YATT] - Yet another tab tutorial (with cookies) - HoneyBeeBear - 2022-05-04

This code works great, but I've got a slight issue. When on any tab besides the first one, the contents of tab_1 shows briefly on refresh.

Are there any workarounds for this?


RE: [YATT] - Yet another tab tutorial (with cookies) - Crazycat - 2022-05-04

This is normal, as the javascript works after the page is loaded. I don't think you can do anything about that


RE: [YATT] - Yet another tab tutorial (with cookies) - Zaisen - 2022-05-27

I don't know where to put this EXAMPLE of what it says
.tab_1 #tab_cat_1 {
  display:block !important;
}

.tab_3 #tab_cat_2,
.tab_3 #tab_cat_3 {
  display:block !important;
}

or I think this is a real code
.tab_x #tab_cat_y,
.tab_x #tab_cat_y {
  display:block !important;  /*if your tab content contains more then 1 category use this code*/
}

.tab_x #tab_cat_y {
  display:block !important;
}
It's just that I didn't put or add additional code because I don't know where to put it. Others I have corrected but my Categories or sub forums are not visible because I first edited within the theme before I added the Forum. I hope someone can help me.



RE: [YATT] - Yet another tab tutorial (with cookies) - Tekkie Da - 2024-09-21

Modified a little to match my theme. Still the best way to make tabbed menu in MyBB.