Advertisement:

Author Topic: Tabbed Categories  (Read 89940 times)

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #120 on: November 11, 2013, 01:27:47 PM »
Might be, but have you swapped out all $s in the original code for jQuery already?

Code: [Select]
$(document).ready(function() {
$('#tab-container').easytabs();
});

would become

Code: [Select]
jQuery(document).ready(function() {
jQuery('#tab-container').easytabs();
});
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,419
  • Gender: Male
    • Kindred-999 on GitHub
Re: Tabbed Categories
« Reply #121 on: November 11, 2013, 01:39:06 PM »
thank gods for my reset script. :)

Easy peasy cleanup and restart from a clean forum regardless of what I have messed up.

trying again.
Fresh install this mod only.
Works.

Applying jquery changes
ok... works!  Must have been a fat finger on my part.
Code: [Select]
<script type="text/javascript">
//
$.noConflict();
jQuery(document).ready(function() {
jQuery(\'#tab-container\').easytabs();
});
//]]>
</script>';



Confirmed -- this now works with ShareThis
Confirmed -- this now works with Sisyphus

Ok...   still has the white tabs and border on a dark theme... but I think the CSS looks simple to adjust.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #122 on: November 11, 2013, 01:42:51 PM »
Thanks Kindred, if it works in that form that's one issue less :)

I'll add the fix in in a small bit, and upload a new package.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #123 on: November 11, 2013, 01:54:11 PM »
This package should fix the issue :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline DSystem

  • Jr. Member
  • **
  • Posts: 238
  • Gender: Male
  • EletronicaBR - Admin
    • eletronicaBR.com
Re: Tabbed Categories
« Reply #124 on: November 11, 2013, 07:42:25 PM »
Take...2!

Also attached is the old style from the previous take so you can take that one back if you liked it. Upload it to Themes/{yourtheme}/css/tabs and select it from the ACP :)

Setting can be found at Admin > Configuration > Current Theme. Special thanks to Arantor for showing me how it works & helping with the file listing mechanic :)

Happy tabbing, and let me know if it works! :)

This mod is getting better and better.

Tested is approved.

Check out the link-> http://eletronicabr.com/


I'm going to wait a little longer to put into production. Who knows there's more news ... ;D
« Last Edit: January 09, 2014, 09:35:15 AM by dsystem »

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,419
  • Gender: Male
    • Kindred-999 on GitHub
Re: Tabbed Categories
« Reply #125 on: November 11, 2013, 10:28:50 PM »
side note... doing this will enable you to build a different CSS for each theme

1- copy the Themes/default/css/tabs sub-directory to each and every themes/custom_theme/css directory
2- change the line in Sources/Boardindex.php
   <link rel="stylesheet" href="' . $settings['theme_url'] . '/css/tabs/default.css" />

and for themes like curve multi-color that have variants
   <link rel="stylesheet" href="' . $settings['theme_url'] . '/css/tabs/default'.(isset($context['theme_variant'])? $context['theme_variant'] : '') . '.css" />

http://www.askawitchcommunity.org/index.php?action=forum

I am still working on the variant theme colors... but the base variant (inverted) is looking good now with only minor changes to match colors for text and backgrounds
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #126 on: November 12, 2013, 01:20:23 AM »
It is built already so you can have different files in every theme :)

Copy the tabs directory over, change default.css and done!

As for theme variants, that's a good one, I'll add that in in a bit. (Also, the default.css bit should not be hardcoded in the source, it should be something with $settings
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #127 on: November 12, 2013, 05:17:06 AM »
Just checked the thing with the default css, seems that's another bug that somehow slipped in.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,419
  • Gender: Male
    • Kindred-999 on GitHub
Re: Tabbed Categories
« Reply #128 on: November 12, 2013, 06:59:30 AM »
lol... yeah....   it was calling for only the default_theme_url /css/tabs/default.css  :)
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #129 on: November 12, 2013, 09:05:24 AM »
This package should fix the issue. :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,978
    • http://cbasites.net/
Re: Tabbed Categories
« Reply #130 on: November 13, 2013, 11:27:41 AM »
Here an interesting "variation" of tabbed categories... using an horizontal scroll...
http://gazpo.com/downloads/tutorials/jquery/horizontal_scroll/

(just sharing something found... maybe someone finds it interesting)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline Antros22

  • Semi-Newbie
  • *
  • Posts: 55
Re: Tabbed Categories
« Reply #131 on: November 13, 2013, 11:40:23 AM »
very nice mod ...  ;D

Offline TomW

  • Jr. Member
  • **
  • Posts: 294
  • Gender: Male
Re: Tabbed Categories
« Reply #132 on: November 21, 2013, 10:39:02 PM »
Is there a way to replace the menu bar with tabs, or vice versa ?  I'd prefer to have 1 'menu'.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,378
    • StoryBB/StoryBB on GitHub
Re: Tabbed Categories
« Reply #133 on: November 21, 2013, 11:25:07 PM »
Not without rewriting the guts of the SMF menu system, they're completely different pieces of code, in completely different places, and would attach a non-trivial performance hit to your site.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #134 on: January 09, 2014, 08:39:52 AM »
Hoping my file can be modified so this works

I tried, managing to get the categories up but with a half blank table

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #135 on: January 09, 2014, 12:22:38 PM »
That's a 1.1 theme, I'm sorry but this mod does not work with SMF 1.1.x.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #136 on: January 09, 2014, 12:41:25 PM »
The theme is working with my SMF 2.0.6 install.

I believe the 1.1 in the file refers to the file version.

The code to be replaced appears to begin around line 71 and end line 104

Its the end tags in the second modification where I think I'm going wrong.

Please have a go - your mod is the only one I've seen that can display categories as tabs!

Offline NanoSector

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,499
  • Gender: Male
  • VC321xb47@aperture:~#
    • Yoshi2889 on GitHub
Re: Tabbed Categories
« Reply #137 on: January 09, 2014, 02:23:56 PM »
Oh I'm sorry, I got confused by that. :)

I'll have a poke somewhere tomorrow.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Offline gurdain

  • Newbie
  • *
  • Posts: 7
Re: Tabbed Categories
« Reply #138 on: January 13, 2014, 11:24:58 AM »
hi yoshi,

any luck with adding tabbed categories to the file?
it would come in really handy

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,378
    • StoryBB/StoryBB on GitHub
Re: Tabbed Categories
« Reply #139 on: January 13, 2014, 11:31:40 AM »
Theme authors really should NOT be changing that version number, because it does indicate it is a 1.1 version theme by doing so.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.