dTabs is no longer under active development.
I originally developed dTabs really as a hobby while a student. Updating and maintaining it is very time consuming and as of version 3.0, Wordpress now includes a Custom Menu feature which allows the creation of custom menus. This covers the basic functionality of dTabs so I would reccomend that users of dTabs should install a new theme and use Worpress Custom Menus.
Description
Provides a function to output a user controled dynamically tabbed navigation system with optional drop down menus in Wordpress. Basically, it makes adding dynamic tabs to your Wordpress blog/theme easy.
…more info
- dTabs can be easily added as an option in themes.
- Tabs can be made for the posts page, the front page, individual posts, categories, pages, the archives, the bookmarks, and external links.
- Tabs for categories and pages have optional dropdown menus of their sub-categories/sub-pages, while archives and bookmarks have non-optional drop down menus.
- Tabs are set up by the user via administrator preferences, while their properties and appearance can either be set by the user via administrator preferences or within the theme’s css.
Recent Changes
Version 1.4 24/07/2009
- Moved admin panel from Tools to Options.
- Added option to disable links for tabs (Suggested by Elody).
- Added option to make tabbar a class instead of id for use with multiple tabbars (Suggested by Mor).
- Updated default css for use with tabbar class.
- Added first and last classes to respective tabs (Suggested by johnho).
- Implemented hierarchical dropdown boxes for categories and pages when editing a tab.
- Increased use of internal WP functions to reduce calls to the database and speed up dTabs.
- Updated implementation of metaboxes to work with WP 2.8.
- Fixed Uninstall dTabs button to work with WP 2.8.
Requirements
As of version 1.2, dTabs requires Wordpress Version 2.5 or greater for full functionality.
Installation
- Extract dtabs.zip on your local machine.
- Upload dtabs.php to your Wordpress Plugins directory.
- Activate dTabs in the Plugins section of the admin control panel.
Please note that if your theme is not pre-enabled for dTabs you need to paste a snippet of code into your theme before your tabs will appear on your blog, alternatively/in addition you could ask your theme’s author to pre-enable your theme.
Updating
To update follow the instructions for installation, writing over the old dtabs.php in your plugin directory.
Uninstallation and deactivation
To uninstall dTabs, click on uninstall on the Manage > Tabs admin panel. This will remove all of dTabs’ settings and deactivate the plugin, if you would like to keep your settings for future use, then simply deactivate dTabs on the Plugins admin panel as you would any other plugin.
Themes pre-enabled for dTabs
Please feel free to add any more themes to list by commenting on this post
.
Adding dTabs to your theme
To insert the tabs into a theme which is not pre-enabled, just copy and paste the code below into a template file corrisponding with where you wish your tabs to appear (most people will probable use header.php). The only requirement is that it is placed within the body html tags (ie somewhere after the <body> tag in header.php, before the </body> tag in footer.php, or anywhere in any other template file).
|
If the dTabs plugin is activated, this code will output your tabs. If it is not then it does nothing, your theme will display as normal, (minus your dynamic tabs).
The only thing left to do is add css formatting to your tabs and drop down menus, mainly so that a) the selected tabs are displaid differently to the non-selected tabs, b) that the drop down menus are positioned correctly in relation to their tabs, and c) that the tabs are displayed on the same line (ie if you want a horizontal navigation menu).
A good starting point for this is checking out the CSS section on the Manage Tabs admin preference pane. Ticking Automatic css generation will display some example css for you to work on. While the box is ticked the css will automatically be inserted into the header of every page in your blog. If you are pre-enabling a theme for public release then you will need to insert the css for the tabs into your theme’s css file.
The tabs will appear in your html as a list of links in the following format:
<li class="tabselected"><a href="Tab URL/Path/Permalink" id="Tab Name_tab">Tab Label</a></li> for selected tabs<li class="tab"><a href="Tab URL/Path/Permalink" id="Tab Name_tab">Tab Label</a></li> for none selected tabsThe links will be wrapped within <ul> tags with a class of tabbar:
<ul class="tabbar">
<li class="tabselected"><a href="Tab1 URL/Path/Permalink" id="tab1_tab">Tab1 Label</a></li>
<li class="tab"><a href="Tab2 URL/Path/Permalink" id="tab2_tab">Tab2 Label</a></li>
<li class="tab"><a href="Tab3 URL/Path/Permalink" id="tab3_tab">Tab3 Label</a></li>
</ul>
By default this will create an unordered list of tabs – a vertical dynamically tabed navigation system.
dtab_list_tabs() has six parameters which enable you to modify it’s output:
dtab_list_tabs('before=&after=&between=&fadetype=js&fadetime=500&outputjs=1tabbar=id')
- before
(string) Optional: text/html to place before each link. There is no default. - after
(string) Optional: text/html to place after each link. There is no default. - between
(string) Optional: text/html to place between each list-item (tab). There is no default. - fadetype
(string) Optional: js or css. The default is js, css is not currently supported in IE. - fadetime
(numeric) Optional: the length of time in milliseconds over which menus should fade in and out. The default is 500. This parameter is only taken into acount if fadetype is unchanged or set to js. - outputjs
(boolean) Optional: 1 outputs javascript with the tabs, 0 doesn’t (so that a javascript file can be included with the theme, which is more efficient than sending it with each page). The default is 1. This parameter is only taken into acount if fadetype is unchanged or set to js. - tabbar
(boolean) Optional: class is the default and gives the unordered list of tabs a class of “tabbar”. id also gives the unordered list of tabs an id of “tabbar” aswell as the default class of “tabbar”.
Any drop down menus will simply be a list of links to any subcategories for that tab enclosed in div tags with a class of “dmenu” and an id of “tab name_menu” eg:
<div class="dmenu" id="Downloads_menu">
<ul>
<li><a href="subcategory 1 url">subcategory 1 name</a></li>
<ul>
<li><a href="subcategory 1.1 url">subcategory 1.1 name</a></li>
<li><a href="subcategory 1.2 url">subcategory 1.2 name</a></li>
</ul>
<li><a href="subcategory 2 url">subcategory 2 name</a></li>
<li><a href="subcategory 3 url">subcategory 3 name</a></li>
</ul>
</div>
To check for the name of the current tab (using a pre-enabled or manually enabled theme with the dTab plugin installed and activated) take a look at the source of any post/page/category/etc and the name of the current tab will be contained in a comment just below the html for your tabs.
Examples
- The tabs on this site were made and are managed using dTabs.
- Kubrick tabs – a Kubrick (WP’s default theme) pre-enabled for dTabs
For examples of slightly more advanced css than that in the Tabs Options pannel, take a look at the css files in Kubrick tabs or on this site (style.css/style.css.php).
Download the latest version
Donate
Known Issues
I have experienced problems after restoring my database from a backup. This problem is due to the way in which Wordpress stores data for plugins and how certain scripts export this data when making backups. There isn’t much I can do to prevent it, but the problem can be fixed by reseting your tabs.
Future
Any suggestions? Let me know
History
Downloads Per Day
Version 1.4 24/07/2009
- Moved admin panel from Tools to Options.
- Added option to disable links for tabs (Suggested by Elody).
- Added option to make tabbar a class instead of id for use with multiple tabbars (Suggested by Mor).
- Updated default css for use with tabbar class.
- Added first and last classes to respective tabs (Suggested by johnho).
- Implemented hierarchical dropdown boxes for categories and pages when editing a tab.
- Increased use of internal WP functions to reduce calls to the database and speed up dTabs.
- Updated implementation of metaboxes to work with WP 2.8.
- Fixed Uninstall dTabs button to work with WP 2.8.
Version 1.3 05/07/2008 (11006 downloads)
- Fixed problem with default css in Firefox 2 where tabs always appear on seperate lines (reported by G Dan Mitchell and fixed by Ian Brown).
- Added “between” argument for dtab_list_tabs for adding content between tabs.
- Added “fadetime” argument for dtab_list_tabs to enable control over the length of time it takes to fade menus and add the option of disabling fading all together.
- Fixed flickering of dropdown menus in certain circumstances.
- Added provisional (not suported by IE) support for javascript free css menus .
- Added “fadetype” argument for dtab_list_tabs for switching to javascript free menus.
- Updated default css to support javascript free css menus.
- Added auto css for javascript free css layered menus.
Version 1.2.2 29/04/2008 (1909 downloads)
- Fixed a bug introduced in version 1.2.1 that prevented tabs with non-word characters in their name being selected (reported by Joy).
Version 1.2.1 20/04/2008 (456 downloads)
- Fixed a bug introduced in version 1.2 that prevented menus fading out for tabs with non-word characters in their name (Reported by Mike and Morgan).
Version 1.2 02/04/2008 (664 downloads)
- Improved improved support for static front pages
- Updated javascript to properly support Safari 3 (and dropped support for Safari 2)
- Updated javascript to fade drop down menus in and out
- Made javascript output optional (so a javascript file can be included with themes)
- Depreciated dtabs_echo_dtabs, replaced with dtabs_list_tabs
- Removed Tabs Options pannel
- Moved automatic CSS generation option to Manage Tabs Panel
- Dropped before and after admin options
- Rewrote default CSS, making it more complex but producing half decent looking tabs
- Used register_activation_hook to set up tabs upon activation
- Introduced activation message
- Introduced ability to uninstall
- Integrated into WP 2.5 UI
- Made other minor changes to streamline the interface
Version 1.1 18/12/2007 (1045 downloads)
- Added full support for static front pages
- Added suport for automatic update checking
- Prepared for internationalisation
- Fixed several empty array bugs (reported by Joost Verweij and others)
Version 1.0.4 16/10/2007 (390 downloads)
- Fixed ambiguity bug (reported by Julian) introduced with 1.0.3
- Fixed a bug also introduced with 1.0.3 that prevented dTabs from recognising sub categories
Version 1.0.3 15/10/2007 (6 downloads)
- Added support for WP 2.3
Verson 1.0.2 – 17/08/2007 (240 downloads)
- Fixed the zero bug (reported by Gregg Mendez) where in certain circumstances a “0″ was added within tabs’ links tags – invalidating the html.
- Fixed the slashes bug (reported by AJ) so slashes are stripped from tab labels
- Rearranged the order of tags for tabs so that before and after parameters are applied within the list item tags, to enable Gina’s suggestion to allow tabs to stretch and expand – i.e. dynamic css.
- Minor update to default css
Verson 1.0.1 – 03/04/2007 (496 downloads)
- Fixed behaviour for page tabs so that they cannot be confused with categories of the same id number.
- Put tabs in an unordered list – replacing the <div> tags with <ul>s and <span> tags with <li>s.
Verson 1.0 – 09/02/2007 (479 downloads)
- Added simple dynamic menu functionality – tabs that link to categories and pages can have a css/javascript drop down menu listing any subcategories, sub-pages, archives, or bookmarks in a hierarchal tree.
- Fixed the problem with the default tab present upon installation or after resetting the tabs so that it can be selected.
- Fixed the bug caused by database changes brought in with WP 2.1 (reported by James) where pages were no longer listed in the Modify > Tabs admin pannel.
- Added ability to make tabs for pages, subcategories, archives, and bookmarks (previously it was only super-parent categories and pages).
- Improved the method by which the current tab is selected – now all tabs linking to the current page/post/category and it’s parents are taken into consideration, and the closest match is selected.
Verson 0.911 – 14/08/2006 (645 downloads)
- Fixed behaviour for blog/main page tab so that it can be selected and so the link points towards the blogs web address (instead of the website’s root directory).
Verson 0.91 – 06/06/2006 (327 downloads)
- Added options > Tabs admin panel, with the following features:
- Optional automatic (basic) css generation/example.
- Optional automatic css output into any theme.
- Option to create vertical tab interface (as opposed to horizontal by default).
- The ability to add html before and after each tab (just like you can in the templates).
- Also added the option to control the formatting of selected and non selected tabs using their id instead of class, allowing the custom formatting for each tab.
Verson 0.9 – 10/03/2006 (28 downloads)
- Update to manage > Tabs admin panel, including the addition of a drop down list of available tabs to make setting the plugin up as easy as possible.
- Fixed behaviour with categories: current tab now reflects the parent category instead of the current category.
Verson 0.8 – 09/02/2006 (10 downloads)
- Initial release
If you would like to request any particular features for this plugin then feel free to leave a comment. Please note that while I will try my best to help, development of the plugin is very time consuming so unless it’s a tiny adjustment don’t expect any fast results
Support and Feedback
I no longer have the time to maintain dTabs or offer support. I suggest installing a new theme and setting up a new menu using Worpress Custom Menus.
I had a developer modify dtabs to work for wpmu so it works global but now that version of the plugin is broken and I need a fix. By global this is how it worked:
Tabs created in dtabs from categories, pages, archives etc…. is done on the main blog. The dtabs code is placed in the header of the template as it normally is.
The difference is the tas created on the main blog now show tabs on all sub blogs with drop down cats and pages that are from the main blog. This way the main wpmu blog administer can show constant categories across all blogs.
Can someone modify the code for me or show the modifications. I nned this quickly.
Thanks,
Justin
Reply
Dave reply on August 6th, 2009 12:17 pm:
Sorry Justin, I’m not familiar with working with WordPress MU and it’s documentation is somewhat less than comprehensive …perhaps if you email me the modified dTabs I might be able to help, but no promises
Reply
Hi
Thanks for the cool plugin! I’m having a problem immediately following activation.
2 of the fields on the “Edit Tab” page are disabled:
Tab name
and
Tab URL/Path/Permalink
…so i can’t add a url etc.
That being said – the tabs are showing up in the template and the css works etc
thanks for the help!
I am using WordPress 2.8.3
lm
Reply
Singing Bassist reply on August 24th, 2009 7:25 am:
In the “Edit Tab” page, toggle the second menu (“Tab Type”) from its default “Front Page” to “Page”, which enables entries into fields “Tab name” etc.
Hope this helps.
Reply
Sorry if this has been covered already but how exactly do you create submenus? I can’t find the option in the admin panel under ‘tabs’.
Reply
Where do you insert this code?
‘
subcategory 1 name
subcategory 1.1 name
subcategory 1.2 name
subcategory 2 name
subcategory 3 name
‘
I tried inserting it in the header.php under
“
and it just created three extra tabs on my navbar.
Reply
I can only add SIX tabs????
I’m running Firefox 3.5.2 in Mac OS 10.5.6.
When I attempt to add my SEVENTH tab in the “Manage Tabs” page, the “Create New Tab” Button leads to the edit screen of the SIXTH tab.
I have to force the add of a SEVENTH tab by adjusting the path-URL from clicking the “Create New Tab” button, adjusting that URL from “tab=6″ to “tab=7″. Looks like a bug. My workaround was quite involved (manually changing the URL). FYI.
Great Plug-in otherwise. Last year I would have enlisted a wordpress designer to do that for me.
Reply
I’m trying to get my menu on the top of http://www.agraceplace.org to go ALL the way to the top.
I even tried to put it in its own div.. and can’t seem to get it where i want it…
suggestions?
Reply
this has got to be the most confusing plugin I’ve ever used… your directions are very poor.. I’ve enabled the plugin, and have the nav set up (i.e when I go to tabs, I can create an item) however, I cannot find ANYWHERE how the heck to make a drop down.. if you look at my site you will see the nav item called “Photography” I would like to make it so when you hover over it, it shows:
Photograhy
ChrisBurkePhotograhy (a link to my photo site)
SmugMug (a link to my smugmug account)
however, I cannot for the life of me figure it out at all .. all I can figure out is how to make the nav menu a link not a drop down..
Reply
Nice Plug-In. It is the answer to all my problems. Perfect standard plug in and I will continue to use this for the rest of my websites. I am sort of a new player to HTML but I know enough to take simple instruction and feedback.
Here is my website garyblackburn.org I am building my site from a default WordPress theme so I can easily modify and create my own theme. It helps when I need to resort to plug ins make is easier to place code from other templates.
I’m having issues with lining up the tabs menu so they are actually touching the top of the content area like in the Kubrick Tabs Theme. I tried adjusting the position of the menu function in header.php but it doesn’t seem to work. I’m sure it is something simple that I’m not doing correctly. Can’t seem to get to work.
You probably answered this question before, but how do I place pictures inside the tabs next to the names? Would this be possible for subcategories in the drop down menus?
By default the Home tab highlights white when I am not on the page. Is that a bug?
Reply
Not to be a pest and double-post, but I just want to say thank you in return.
Reply
Hi,
Thanks for the plug in. Although some things aren’t syncing with my website yet and I seek assistance. The tabs aren’t lining up correctly across my page. i.e appearing above in a white box, in front of my header, or right above the title of my page, depending on where the code is placed.
Thanks for the help.
Reply
I ran into same problem as Michael below with MySQL Export/Import not handling the dtabs array correctly from the WP-Options table.
Your response was:
***********
Dave reply on May 26th, 2008 11:42 am:
If you can access the options directly (like in phpMyAdmin) then try copying the contents of the dtabs option over manually, I seem to remember backing up can have problems with arrays stored as options.
***********
Manually copying using phpMyAdmin resolved the problem on the destination server for me. Thanks.
My question is do you know why or how the export/import can be done so that the manual copy is not required. I perform website moves from development server to production server on regular basis and this added MANUAL process puts a big wrench in the process for me.
I have searched around trying to get educated on why this is happening and have had no luck.
Any input would be greatly appreciated.
Oh and THANKS! for the great plugin. It really does a perfect job for me.
Andy
Hope that helps
Reply
Saw the comment below about the “categories option” — I don’t get it. Why do we have to create sub-categories for all the posts in a page?? Or is there another way of doing what I want…
A CATEGORY
5 posts in a category
Which would result in a tab named after the category and links to all the posts in the drop-down. Or are you saying I need to create sub-categories for EVERY POST in the main category? Seems very redundant.
Reply
Hi there!
Thanks for the beautiful work on the dTab. ‘Made my day’ (quote: Clint the Guy)
I’ve used your dTab for a year and it worked very well until 2day. I’m running the last version. Today I wanted to add a new tab. What happened was that instead of giving me a new tab I got the last one in the row. I pat in the data but then it turned out that I as changing the last tab and NOT adding a new one. Got a solution?
Reply
Hello! I would like to start with giving your plugin praise, it’s really nice! Just what i needed for my new wordpress-site.
I have one question though? I wouldn’t be suprised if there’s a really simple solution for this, but I’m kinda new to wordpress and php.
Is there a simple way of making the link to the current page unclickable? Say if you surf into my “contact” section, it’s of course easy to make that link highlighted, but can you also deactivate the link to “contact”? That would be like a really nice bonus…
Reply
Hi! Thank you for this great plugin! Is it possible to open a Link in a new Browser-Tab? I use “tab type”=other and want the linked page to be opened in a new Browser-Tab.
Thanks,
Uli
Reply
This plugin is awesome!!!
but I do have two questions (please excuse if the questions are dumb):
1. how do I hide the text generated for the menu items if I am using background images for the text (I know this is frowned upon, but sometimes the client “must have” a certain font)?
2. how do I get the active state to work for my css background? The rollovers are working, and the active state shows up on MouseDown, but then goes back to the standard button when I am on the page.
Reply
Hello!
I wonder if it is possible to have all my categories to swow upp in list belox the tab on mous over?
Just like the archive?
Reply
Sidebar widgets let me have multiple LINKS, to separate topics. I’m getting nowhere trying to do that with dtabs and your modified default template, kubrick-tabs. I need link lists, not individual links. Any examples???
Reply
mugger reply on October 26th, 2009 10:00 pm:
Further info. I did setup a tab for Bookmarks, which has ALL links. Your controls seem to not let me have one link-cat per tab, to separate subjects.
Reply
Pingback: Top 1000 WordPress Plugin Authors « Metode de promovare
I’m banging my head against the wall…
It worked great at first but now when I try to add new tabs it says “Are you Sure you want to do this? Try Again.”
And It never lets me add a new tab. I’ve tried clearing cache and everything. What’s going on…
Reply
Dave reply on November 17th, 2009 12:12 pm:
I have no idea, dTabs doesn’t use that string of text so I can only presume it’s wordpress. Try hitting ‘Reset’, or failing that – try uninstalling and reactivating.
hope that helps
Reply
mike reply on November 17th, 2009 4:42 pm:
Thanks for the reply.
I’ve tried de-activating, uninstalling, clearing cache, trying on Firefox, Chrome, and Safari… still nothing.
Is there a way to manually add tabs by inserting code into header or something? So I don’t have to go through the plug-in settings menu.
For some reason it keeps telling me “Are You Sure You Want to Do This? Try Again” and I can never add a new tab…
I’m using the pre-approved theme too, the modification of Kubric…
Very strange, and I’m not dev savvy enough to figure this out on my own.
Thanks again for your help!
Reply
I am using the Kubrick Tabs, which I installed on February 2009 on WordPress 2.7.1. I want to update to the current WordPress 2.8.6 but I worry that Kubrick Tabs may not work. Has anyone tried? Please let me know.
Reply
First of all, thank you for the great plugin. Could you please help with inserting tabs to the pages. I’ve added code to page.php, created tabs with tab type “Page”. How do I actually insert them into the page. I know this is a stupid question, and I’m sorry for that:) I just need some help to figure it out.
Thanks a lot!
Reply
Would love to see this enabled for the Ahimsa theme. The rounded corners of the tabs would fit perfectly, design-wise, and add a very useful element to the navigation.
Reply
Dave reply on January 10th, 2010 6:13 pm:
have you tried contacting the theme’s author?
Reply
Love this plugin. Working so far in all browsers except that I’m not seeing rounded corners in IE7. Tried using the CSS from GWM Foundation (Corrections for Silly Windows IE: Wheee!) but all I get are smaller versions of the same boxy tabs.
Any ideas as to what causes this? I’m working on implementing these for http://www.tradewaiter.com/
Thanks so much!
Reply
Dave reply on January 10th, 2010 4:12 pm:
As far as I’m aware, Internet explorer does not support rounded corners (using css at least).
Sorry I can’t be more help
Reply
Janice Schwarz reply on January 10th, 2010 5:38 pm:
I notice when I see GWM Foundation and this site in IE7, the corners are rounded. Must be something else going on that I’m not catching. Thanks for the quick response.
Reply
Janice Schwarz reply on January 10th, 2010 5:56 pm:
Well, rounded corners or not, I really like this. I’ve been looking for an easy way to have tabs stay a certain color when on the current page. This is far easier (and thus: big time saver!) to implement than anything I’ve found so far. Thanks again!
Dave reply on January 10th, 2010 6:10 pm:
I designed this site before the days of border-radius and used images to get the rounded corners. It looks like the GWM Foundation has taken a similar approach. It’s pretty dirty and can be time consuming to get a good result, but if you want to do it then I would recommend downloading Kubrick Tabs to see how I did it. Take a look in header.php at the before and after arguments used when calling dtab_list_tabs and then the corresponding css in style.css.
Hope that helps
Janice Schwarz reply on January 10th, 2010 6:22 pm:
Thanks! Will check it out.
Thanks for developing this plug-in, it’s great!
Apologies for the beginner’s question. I’m using the example CSS supplied with the plug-in and was wondering how to change the background color of a tab on hover. I only seem to be able to change the color of the text at the moment.
Many thanks, Phil
Reply
Dave reply on January 11th, 2010 2:50 pm:
in the same place where you were changing the (text) color, add the background-color property eg .tabselected { color:black; background-color:green;} see http://www.w3schools.com/css/pr_background-color.asp for more info
Hope that helps
Reply
I’m having trouble with the positioning of the drop down menu…
/* style the dropdown menus */
.dmenu {
position: absolute; left: -999em; /* REQUIRED dont display them to begin with */
margin: -184px 0 0 -359px; /* position correctly */
It appears to depend on the width of the window the user has so there is no way to achieve consistent positioning of the drop down. CSS is my weak point! Can you help please.
Reply
Guys, how can I be able to display the subpages of each tab? please help.Thanks!
Reply
Nice plugin, but I can’t see any “first” and “last” classes! Furthermore, it’s not compatible with qTranslate plugin (multilingual site content) as dTabs doesn’t follow switching the languages. Not lucky me!
Reply
Hi! Thank you for this great plugin!
Reply
I am using the default CSS and only home will highlight white. no other pages will have their tab turn white when i am viewing them. any thoughts?
Reply
DJSlim reply on February 9th, 2010 3:40 am:
nevermind i figured it out finally
Reply
Great plugin! How do I make the font size of the dropdown menu items smaller than the font size of the Parent page?
Reply
error found when iam using dtab. I’ve enable the menu list feature.But when hover on the tab. the firebug show the error:”typeof(menuisvisible_�__�__�_��_�_menu)==’undefined’.
shouldshowmenu_�__�__�_��_�_menu=false”
how to fix this?? is this something about encoding?
Reply
dtabs bug in 1.4: Cannot redeclare current_tab()
Hi there Dave,
I have a problem upgrading dtabs from 1.2.something to 1.4.
I have 2 tab placements on the page, and after the 2nd placement, I now have this error:
PHP Fatal error: Cannot redeclare current_tab() (previously declared in …\wp-content\plugins\dtabs\dtabs.php:1638) in …\wp-content\plugins\dtabs\dtabs.php on line 1638
I’m placing the tabs like this:
This was working without a problem in the 1.2.something version. I’ll try to dig into the code but would appreciate you taking a look at it.
Thanks.
Sincerely,
Artem
Reply
Artem Russakovskii reply on February 21st, 2010 1:31 am:
Your comments ate my code tags. Anyway, I am placing the tabs with the regular suggested method above.
Reply
Artem Russakovskii reply on February 21st, 2010 5:12 am:
Turns out this function current_tab() is not referenced anywhere, so I removed it and everything started working. It was added recently but because it’s a function within another function (dtab_list_tabs()), PHP tries to redeclare it when I call dtab_list_tabs() the 2nd time.
Can you validate your thinking here or commit a fix if you needed that function?
Thanks.
Reply
Artem Russakovskii reply on February 21st, 2010 6:09 am:
And while I’m having this conversation with myself, if you ever wanted to actually have functions within functions, you can use the method in the answers to the question I just asked, outlined here: http://stackoverflow.com/questions/2304938/is-there-a-way-to-avoid-the-redeclared-function-fatal-error-while-defining-func
Reply
Hi! Just installed dTabs and all is well. My question is:
Can I keep a ‘posts page’ type tab highlighted when individual posts, or archives are displayed?
I have my menu setup with several static page tabs and have one blog (posts page)tab. Also, my front page is a static page..
Seems to me this is either very simple or impossible. Hope you can help me.
Reply
Hello
Thanks for your plugin.
I try to use it in the following F2 WP site :
http://www.osteopathe-larochelle.fr
I would like ton insert a drop down menu in my left sidebar but I don’t know where I have to paste the code :
I tried in header.php but it doesn’t works.
Thanks for your help
Philippe
Reply
This plugin works really well on the home page of my testblog (testblog4.jennmearswebdesign.com). I had to give the drop menus severe negative top and left margins to position them. For example:
#about_menu {
margin-left:-116px;
margin-top:-447px;
}
On the home page, the dtabs function is placed into the “navigation” div. On all the other pages, the header is much narrower so I put the dtabs function into the “navigation_inside” div. Is there a way to then style the menu differently for those pages? Currently they aren’t showing up on the page but they are in the source code for the page.
Basically, how do you style the menu to be in a different position on a different page?
thanks!
Reply
hi!
i’m working on a new look for my site, and i’d like to keep on using dtabs for the menu. I just would like to know if there’s a way i can organize the dropdown menu in a way that i select which subcatgory or page comes down each link.
what i mean is that for example, i have the live music category which include live reviews and live previews, but on the menu i’d like to add other two more links below live music, so it’ll be under live music: reviews, previews, editor’s picks, and gigs.
the problem is that because of the structure of the site, if i add editor’s picks and gigs as subcategories of live music then it’ll mess all the organization i want for the way to show editor’s picks and gigs (which is not a category and a page)
i hope i’m explaining it well, it’s kind of complicated i think.
and i hope there’s a way to do this.
thanks in advance for your help!
Reply
Hi again, while waiting for some wiser coder than me, i’ve been trying to solve my problem, but to organize the categories as subcategories to be displayed under a root one, i’ve had to create 3 levels of categories, so the rest of my structure doesn’t get all messed up.
so when on the menu there’s a category, it’ll display all the subcategories, and children categories of the subcategories too. And it makes a mess when displayed vertically.
I’d really need support on this one, please. i’m working on test.layabozi.com/wordpress/ … u can see the menu right there…
thanks
Reply
Hi, I’m having some issues with the dropdown menus being non-aligned to their parent. You can see the alignment bug here: http://sjf.cc/lyris/
is this a known problem? any suggestions would be much appreciated.
Peter
Reply
Dave reply on April 28th, 2010 6:48 pm:
Its just a css issue. Change the margin for .dmenu (around line 1759 of style.css on your site) try margin: 10px 0 0 -21px;
Reply
Peter C reply on April 28th, 2010 6:49 pm:
thanks for the speedy reply. will try this shortly.
Reply
Peter C reply on April 28th, 2010 6:51 pm:
hey, no difference – its also wildly different on chrome/safari/firefox – haven’t dared try IE yet
Reply
Peter C reply on April 28th, 2010 6:53 pm:
it appears to be the inline style attribute of the .menu eg: position: absolute; top: 61px; display: inline; z-index: 100; opacity: 1; left: 182px; appears to be ~50px off..
Reply
Dave reply on April 28th, 2010 7:05 pm:
Your style.css is still showing margin: 10px 0 0 -103px; at the moment. Changing the left margin from -103px to -21px works in Firefox and Safari.
Peter C reply on April 28th, 2010 7:08 pm:
Dave, changed it to:
margin: 10px 0 0 -21px;
renders central in chrome, slightly off (but ok) in safari and way off in Firefox. What version firefox are you on?
Dave reply on April 28th, 2010 7:18 pm:
FF 3.6.3 – perfect left alignment, Safari 4.0.5 – acceptable left alignment (1px off to the left). Make sure you’re not using cached versions of style.css – load it in your browser, confirm the margin is -21px and then reload the webpage.
Reply
Hey, great plugin but pretty frustrated here. My blog is http://www.thegiveproject.com/blog and I’m trying to add the tabs for navigation but I can’t figure out how to move them to the bottom of my header instead of the top. If you could tell me where too add the css and what to add (is it margin? position? align?) that would be super helpful. I’m super new at code so bear with me.
Thanks so much!
Chase Brumfield
Reply
I was getting few CSS problem Although it good plugin, Thanks!
Reply
This is how you solve dtabs not showing currenttabs on post page.
You need to on Tab type: select post page and it will solve the issue.
/Henrik
Reply
Please add after starting and ending javascript otherwise w3c vadilator will prompt erros and warnings.
File dtabs.php
Line: 1387 & 1459
keep code clean
cheers martin
Reply
Hi, I have a problem, tho it might be really easy to fix, I am not really sure where to begin- when I have completed my site http://www.2-woo.com it looks fine in Firefox but if I use IE8 to view it seems like the margins have been squeezed a lot making the drop down menu unviewable
( http://www.2-woo.com )
Reply
Hi there,
been using this bit of code for some time now and am very happy.
Just one quick question – is the plugin compatible with WP 3.0.1?
Cheers,
Omer
Reply
Hi Dave,
I like your dtabs very much. I use it on my site http://www.mariobruneau.com/wp/
But the sub menu “Conference” appear far to low from the “Accordéoniste” tab.
What can I do to fix it?
Thanks
Mario Bruneau
Reply
Editing options does not work on WP multisite installations–it takes you to the wrong URL. This should be a fairly easy fix.
Reply
It work great on WP 3.01, thanks!
The only thing I guess it’s missing it the possibility to disable the show/hide effect without manually modifying the plugin code.
Reply
Hi, I’m using dTabs on a WP blog( http://paologrande.it ) and I’m very happy about it, but there are two thing I really want to customize and I don’t know how to do it:
1) align the topnav menu generated by dtabs with the blog title (there’s a space I can’t delete…I don’t know where to search it in the plugin code.
) to customize the menu’s text colours and I can’t find them in the code…
2)I’d like (I need…
Thanks for your help!!!
Matteo
Reply
Hi,
How do I use dTab with custom taxonomy?
Thanks
Reply