Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic [2.3.1] AutoTabs 4 YaBB 2.3.1 (Read 4261 times)
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
[2.3.1] AutoTabs 4 YaBB 2.3.1
Jan 4th, 2009 at 11:22pm
Print Post  
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)  Wink

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
« Last Edit: Jan 5th, 2009 at 12:37am by Carsten »  

autotabs_4_yabb231.zip ( 2 KB | Downloads )

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
batchman
Global Moderator
*****
Offline


What's up?!

Posts: 1280
Location: Orlando
Joined: Apr 28th, 2002
Gender: Male
Re: AutoTabs 4 YaBB 2.31
Reply #1 - Jan 4th, 2009 at 11:57pm
Print Post  
Was there any actual change in this? I just installed it (in preparation for using it with my own mod, which I am updating as we speak) and it went in without any problems.
  

Improving my forum, one mod at a time!


Now up and running again, with an accurate link.


Back to top
WWW  
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: AutoTabs 4 YaBB 2.31
Reply #2 - Jan 5th, 2009 at 12:38am
Print Post  
batchman wrote on Jan 4th, 2009 at 11:57pm:
Was there any actual change in this? I just installed it (in preparation for using it with my own mod, which I am updating as we speak) and it went in without any problems.

Nope - it's the same as beta 0.2 for v. 2.3
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
laurin31135
New Member
*
Offline


I love YaBB 2.2.3

Posts: 48
Location: vor der Höhe
Joined: Aug 11th, 2008
Gender: Male
Re: [2.3.1] AutoTabs 4 YaBB 2.3.1
Reply #3 - Jan 5th, 2009 at 5:04pm
Print Post  
I am very sorry,,but I do not know, what kind of mistake I've made.

The Tab "Membermap" is to be seen in the English language version.

After switching to the "German_Du"-Version there is an untitled Tab, which I can not give any title. Same happens to Chatirc.

What is to be done?  Wink
  
Back to top
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: [2.3.1] AutoTabs 4 YaBB 2.3.1
Reply #4 - Jan 5th, 2009 at 5:31pm
Print Post  
in "/English/Menu.lng" find and copy 'membermap' => 'Member Map',
Then open "/German_Du/Menu.lng" and paste it in same location as it was at in the English .lng file. Then change 'Member Map' to 'Mitgliederkarte'
  

If you knock your head against a brick wall and hear a hollow sound, it's not necessarily coming from the wall.
Back to top
 
IP Logged
 
laurin31135
New Member
*
Offline


I love YaBB 2.2.3

Posts: 48
Location: vor der Höhe
Joined: Aug 11th, 2008
Gender: Male
Re: [2.3.1] AutoTabs 4 YaBB 2.3.1
Reply #5 - Jan 5th, 2009 at 5:46pm
Print Post  
Thanks!

It worked perfect!
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint