This is actually a modwriter tool to "bundle" wtih mods that adds tabs to the main tab menu. (Or even better - implemented in a future version of YaBB 2.x)
AutoTabs 4 YaBB 2.3
This mod create tabs for the main tab menu based on a small text file uploaded to the /Variables folder.
Very handy for modwriters (and admins) that wants to add one or more tabs without having to download or delete the taborder.txt file.
Apply this mod.
Upload (in ASCII mode):
cgi-bin/yabb2/Admin/ModList.pl
cgi-bin/yabb2/Sources/AdvancedTabs.pl
Create a text file (or one for each tab you want to add) and save it with a meaningfull name and the extention .tab - like: google.tab and upload it to the /Variables folder in ASCII mode.
Format of a text file to create a complete custom tab
pointing to a external page:
-----------------------------------------------------
%newtab=(
'tabtext' => 'Google',
'taburl' => '
http://www.google.com',
'tabwin' => '1',
'showto' => '0',
'addafter' => 'search',
);
1;
-----------------------------------------------------
Format of a text file to create a complete custom tab
pointing to a internal page:
-----------------------------------------------------
%newtab=(
'tabtext' => 'My Profile',
'taburl' => '$scripturl?action=viewprofile;username=xxx',
'tabwin' => '0',
'showto' => '1',
'addafter' => 'admin',
);
1;
-----------------------------------------------------
If you for some reason have hardcoded the tab in your mod and only want to add it to the taborder.txt file this is the format (IMPORTANT that you only add these two elements to the text file):
-----------------------------------------------------
%newtab=(
'tabtext' => 'Google',
'addafter' => 'search',
);
1;
-----------------------------------------------------
The elements of the hash are:
'tabtext' The text displayed on the tab.
'taburl' The url to the page the tab should link to.
'tabwin' Open in same or new window.
'0' = open in same window.
'1' = open in new window.
'showto' Visitors that are allowed to see the tab.
'0' = all
'1' = members, gmods and admin
'2' = gmods and admin
'3' = admin only
'addafter' Hash key name of the tab you want the new tab located next to.
Key name for the standard tabs in YaBB are:
'home' = Home
'help' = Help
'search' = Search
'ml' = Members
'admin' = Admin
'revalidatesession' = Update Session
'login' = Login
'register' = Register
'guestpm' = PM to admin
'mycenter' = User CP
'logout' = Logout