Thread Rating:
  • 12 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] MyTabs - Tabbed Forum Browsing
Where/What is the code plugin that I may put it on another page?

The ability to show what groups see what tabs would make this a must-have plugin.
Reply
(2015-04-01, 02:21 PM)Destroy666 Wrote:
(2015-03-31, 02:17 PM)Hamster24 Wrote: getting error
http://community.mybb.com/mods.php?action=view&pid=456
You have selected an invalid project.

I checked and approved it now.


@EthanD
This query (used 2 times) is redundant and takes up server resources for no reason:
$query = $db->simple_select('users', 'default_tab', "`uid`='{$mybb->user['uid']}'");

since you can simply access that with already available $mybb->user array - $mybb->user['default_tab']

And you're using $db->escape_string() incorrectly here:
eval("\$forums .= \"".$db->escape_string("<div id=\"tab_nav_{$current_iteration}\" style=\"{$display}\">".$setting['tab_list_html'])."</div>\";");
As the object and function name suggest, it's for escaping strings before using them in DB queries. Doing that on HTML output may end up in unexpected results. Not sure what's it's purpose here.

What in the world... I'll look into the escape_string thing. Oh and the $mybb->user issue is already fixed (I've been looking through things the past couple days working on optimization).

Thanks for the heads up! I wasn't very good with performance back in the day. Looking through all of my old code gives me chills.
I develop plugins.
Reply
Is there a way you can make it adapt to the forum's theme?
Reply
(2015-04-03, 12:50 AM)Almighty™ Wrote: Is there a way you can make it adapt to the forum's theme?

The tab has a template system that can be customized. Try using the "thead", "throw", and "tcat" classes. With the default forum theme, I was having difficulty making it look nice with the stylesheets provided, so I just made some random ones.

But you should be able to customize it any way you like.
I develop plugins.
Reply
Where I can find it in templates?
I want to move it...
MyBB Translator & helper
Please do not PM me requesting free support or help for your forums.
You can see my paid services here.
Reply
(2015-04-03, 01:21 PM)Ikerepc Wrote: Where I can find it in templates?
I want to move it...

It does not use templates. It hooks into the display of the forum and overrides the default forum generation to use its own custom display technique. The tabs are created by evaluating the custom templates offered within the MyTabs settings panel.
I develop plugins.
Reply
How I can move it before forum breadcumbs (part wich says where you are...)?
MyBB Translator & helper
Please do not PM me requesting free support or help for your forums.
You can see my paid services here.
Reply
(2015-04-03, 07:14 PM)Ikerepc Wrote: How I can move it before forum breadcumbs (part wich says where you are...)?

Yes, or add to search page.
Reply
(2015-04-03, 07:14 PM)Ikerepc Wrote: How I can move it before forum breadcumbs (part wich says where you are...)?

(2015-04-04, 02:28 PM)user25 Wrote:
(2015-04-03, 07:14 PM)Ikerepc Wrote: How I can move it before forum breadcumbs (part wich says where you are...)?

Yes, or add to search page.

Currently you can not do this. The tabs are added before the forums when they are generated in the plugin. You would have to hook the plugin to activate before forum generation and display them there.
I develop plugins.
Reply
It has some problem with shoutbox , my shoutbox stopped showing any shouts!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)