Page Index Toggle Pages: 1 2 3 [4] 5 6  Send TopicPrint
Very Hot Topic (More than 25 Replies) Advanced Tabs for YaBB 2.2 (Read 33855 times)
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #45 - Dec 30th, 2007 at 11:43am
Print Post  
Quote:
I had to move the 1|0|0|0|1 onto a new line though.

Let me try and explain the format of data in "tabs_ext.def":

tab_key      a|b|c|d|e

- tab_key: If the url has a 'action=something' in it then 'something' will be the tab_key else the tab text in lowercase will be the tab_key.

- a: If the url is an internal YaBB.pl url wiht a 'action' included 'a' will be '1'. If the url is an internal AdminIndex.pl url with a 'action' included 'a' will be '2'. In all other cases 'a' will be the url.

- b: If the url has a 'action' included 'b' will be '1' telling the script that the url has a 'action' and that the tab_key is that action - else 'b' will be '0'.

- c: If a username is required 'c' will be '1' else 'c' will be '0'.

- d: Sets who can see the tab - all = '0' - Members+ = '1' - GMod+ = '2' - Admin only = '3'.

- e: Open in new window = '1' else '0'.
  

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
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Advanced Tabs for YaBB 2.2
Reply #46 - Dec 30th, 2007 at 12:14pm
Print Post  
Hi Carsten,

with your new .pl it works perfectly, thanks a lot!

Second question (its not really important) is it possible to give the tabs which link to an intern site, the hovering effect if they are in use?
  
Back to top
WWW  
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #47 - Dec 30th, 2007 at 12:29pm
Print Post  
aerow90 wrote on Dec 30th, 2007 at 12:14pm:
Hi Carsten,

with your new .pl it works perfectly, thanks a lot!

Second question (its not really important) is it possible to give the tabs which link to an intern site, the hovering effect if they are in use?

Thanks for testing/reporting.

Not sure i understand what you mean by 'hovering effect'. If you mean that tabs in use (selected) is brought to front and highlighted, then it already does that to internal pages using 'action' meaning not 'Custom Pages' - see attached image:
  

tab_selected.gif ( 11 KB | Downloads )
tab_selected.gif

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
 
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #48 - Dec 30th, 2007 at 12:38pm
Print Post  
Hi aerow90
its already.  Grin Hover button give your text.  Tongue
  

tabhovername.png ( 6 KB | Downloads )
tabhovername.png

greetings
Jeff
Back to top
WWW  
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Advanced Tabs for YaBB 2.2
Reply #49 - Dec 30th, 2007 at 1:29pm
Print Post  
Hi,

ah okay understand, wrong English?

Carsten you are right, my mistake, I talked from Custom Page, sorry!

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


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #50 - Dec 30th, 2007 at 1:47pm
Print Post  
aerow90 wrote on Dec 30th, 2007 at 1:29pm:
Hi,

ah okay understand, wrong English?

Carsten you are right, my mistake, I talked from Custom Page, sorry!

Greetings

np - aerow90

Actually it's quite simple to make Custom Pages selected:

in TabMenu.pl find:
Code
Select All
	else {
		$tmpaction = "home";
	} 



and add before:
Code
Select All
	elsif ($INFO{'custompage'}) {
		$tmpaction = $INFO{'custompage'};
	} 



Then in AdvancedTabs.pl find:
Code
Select All
	if($taburl =~ m/action\=(.*?)(\;|\Z)/i) {
		$tabaction = $1;
		$tmpisaction = 1;
	} 


and add after:
Code
Select All
	elsif($taburl =~ m/custompage\=(.*?)(\;|\Z)/i) {
		$tabaction = $1;
		$tmpisaction = 0;
	} 



Should do the trick.
  

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
 
ccarr
Ex Member


Re: Advanced Tabs for YaBB 2.2
Reply #51 - Dec 30th, 2007 at 2:55pm
Print Post  
Hi Carsten

Quote:
I've attached a new zip package to the first post - only changes in "AdvancedTabs.pl" - please test it and report back

Thanks for the updated mod. The new mod allows the custom pages to be added Smiley  One little problem though. I wanted the custom page to open in the same window so didn't tick the box to open in a new page, however it still did open in a new page. I checked the 'tabs_ext.def' file and it had: reciprocal_link_code      http://www.eulogia.co.uk/cgi-bin/forum/YaBB.pl?custompage=code|0|0|0|0 which I think is correct. The only way I can get this link to open in the same window is to remove part or all of the |0|0|0|0 which removes the permissions. That's not a problem for me but might be for another user or am I dong something wrong?

All other link types work ok though.

Thanks for adding the ' tab_key  a|b|c|d|e' info. It's good to see how it works Wink
« Last Edit: Dec 30th, 2007 at 7:15pm by »  
Back to top
 
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #52 - Dec 30th, 2007 at 3:09pm
Print Post  
@ ccarr - that is strange - i've now installed Custom Pages on my test board and tabs are working the way they should for me.
  

custom_tabs.gif ( 18 KB | Downloads )
custom_tabs.gif

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
 
ccarr
Ex Member


Re: Advanced Tabs for YaBB 2.2
Reply #53 - Dec 30th, 2007 at 3:12pm
Print Post  
I'll check how I installed custom pages and see what I have done wrong.

Thanks Smiley
  
Back to top
 
IP Logged
 
ccarr
Ex Member


Re: Advanced Tabs for YaBB 2.2
Reply #54 - Dec 30th, 2007 at 4:18pm
Print Post  
I don't know what went wrong? I deleted tabs, created new and re-ordered and all is working fine now.

Great Mod Smiley  Rubbish User Grin

Thanks
  
Back to top
 
IP Logged
 
aerow90
Senior Member
****
Offline



Posts: 253
Joined: Mar 18th, 2006
Re: Advanced Tabs for YaBB 2.2
Reply #55 - Dec 30th, 2007 at 8:20pm
Print Post  
Hi,

thank you very much Carsten, it works perfect now, great mod !!!
  
Back to top
WWW  
IP Logged
 
Matt Flan =]
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 15
Location: Birmingham
Joined: Dec 25th, 2007
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #56 - Dec 30th, 2007 at 10:15pm
Print Post  
Hi C!

Thanks for trying to give me a hand in sorting this problem out.

Ive done what  you did Chmod 755 but it doesnt solve the problem.

Ive made a screenshot so you can see what i see.

Could it be a Variable's or Sources Problem?

Thanks
  

Tesr.JPG ( 33 KB | Downloads )
Tesr.JPG
Back to top
 
IP Logged
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #57 - Dec 30th, 2007 at 10:38pm
Print Post  
@ Flan - could you look in your language folder(s) and tell me if a file named 'tabtext.lng' has been created?

If not it really looks like a permissions problem - you could try and set full permission (chmod 777) on your 'Languages' folder as well as your 'English' folder.
  

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
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #58 - Dec 31st, 2007 at 2:04am
Print Post  
Release 1.02 attached to first post. Just a small cosmetic change to make more space for tabs in the tab-menu when logged in as guest or member. Changes are in 'AdvancedTabs.pl' and 'default.html'.
  

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
 
Carsten
God Member
*****
Offline


...to much YaMS

Posts: 3281
Location: Langå
Joined: Aug 2nd, 2002
Gender: Male
Re: Advanced Tabs for YaBB 2.2
Reply #59 - Dec 31st, 2007 at 5:44am
Print Post  
Just found that in some situations data files are loaded more than once. Fixed that now and attached new zip package to first post. All changes are in 'AdvancedTabs.pl' - no new install. This should be the absolute last update.
  

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
 
Page Index Toggle Pages: 1 2 3 [4] 5 6 
Send TopicPrint