Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
  #61  
Old 24 May 2012, 20:12
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
I misunderstood what you meant then. My bad.

I had an options setting for the days in the mod.
Reply With Quote
  #62  
Old 24 May 2012, 20:18
nhawk nhawk is offline
 
Join Date: Jan 2011
Originally Posted by Boofo View Post
I misunderstood what you meant then. My bad.

I had an options setting for the days in the mod.
Ah, it's a member option then. Not one set in the ACP.

That's a different animal then.
Reply With Quote
  #63  
Old 24 May 2012, 20:28
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Not really, you just change


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To pick up the settings from where-ever they are stored.



BTW, I would use ;


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

There isnt any reason to enclose $tabforumid in quotes, but children should be.
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #64  
Old 24 May 2012, 20:32
nhawk nhawk is offline
 
Join Date: Jan 2011
I understand the array can be from anywhere. But, I'm trying to avoid the use of a plugin in most cases. Creating the links in the DB eliminates the plugin and allows vB to handle the menu system.

But I can see where using a plugin to create the menu would be needed at times. Heck, I'm the one that first questioned the dynamic creation of menus in this thread.
Reply With Quote
  #65  
Old 24 May 2012, 20:33
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by nhawk View Post
Ah, it's a member option then. Not one set in the ACP.

That's a different animal then.
No, it was an admin cp option.

--------------- Added 24 May 2012 at 20:45 ---------------

I'm getting W3C Validation errors like crazy now:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

--------------- Added 24 May 2012 at 22:51 ---------------

How do you get this to display in more than the forum tab when doing it via a plugun?

--------------- Added 24 May 2012 at 23:01 ---------------

Originally Posted by Badshah93 View Post
use array_slice, array_merge to adjust position
I tried it with $roots, but it seems that isn't the right way.

Last edited by Boofo; 24 May 2012 at 20:44.
Reply With Quote
  #66  
Old 26 May 2012, 01:18
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Real name: Rick-owner, Kym-admin
If you need to modify the Tab name on the fly...
Eg: Our photo competition system shows the number of competitions open for you to enter.

@hook: parse_templates (just convenient for me)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Easy!

--------------- Added 26 May 2012 at 01:23 ---------------

OP updated with correct hook name set_navigation_tab_fallaback

--------------- Added 26 May 2012 at 01:28 ---------------

Using $root example here...

http://www.vbulletin.org/forum/showp...&postcount=409

--------------- Added 26 May 2012 at 01:48 ---------------

Also: More doco needed ... https://www.vbulletin.com/forum/show...96#post2297796
__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account
*** Home of the AP fully comprehensive vb4 photographic competition management solution ***
Reply With Quote
  #67  
Old 26 May 2012, 05:10
Easy5s.net Easy5s.net is offline
 
Join Date: Jun 2011
Pls help me:
http://www.vbulletin.org/forum/showthread.php?t=283451
Reply With Quote
  #68  
Old 26 May 2012, 12:11
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
No one is going to just write code for you (well, unless maybe you pay them).
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #69  
Old 26 May 2012, 15:12
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Originally Posted by snoopytas View Post
If you need to modify the Tab name on the fly...
Eg: Our photo competition system shows the number of competitions open for you to enter.

@hook: parse_templates (just convenient for me)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Easy!
Why nor just edit the phrase?

--------------- Added 26 May 2012 at 15:13 ---------------

Originally Posted by Paul M View Post
No one is going to just write code for you (well, unless maybe you pay them).
Exsactly! As a lot of us are still leaning the new system, too.
Reply With Quote
  #70  
Old 27 May 2012, 00:05
AusPhotography's Avatar
AusPhotography AusPhotography is offline
 
Join Date: Nov 2007
Real name: Rick-owner, Kym-admin
Originally Posted by Boofo View Post
Why nor just edit the phrase?
Because it's dynamic!

We have a Competitions tab which shows Competitions (C,V) where C = competitions open to enter and V = competitions open for voting.
C and V set set per user based on their competition system status.
__________________
www.AusPhotography.net.au a.k.a. AP is a photography forum where members share their photography, photo editing skills and techniques. We run regular photographic competitions; Rick (site owner) and Kym (site tech) using this account
*** Home of the AP fully comprehensive vb4 photographic competition management solution ***
Reply With Quote
  #71  
Old 27 May 2012, 00:19
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Okay!
Reply With Quote
  #72  
Old 27 May 2012, 09:12
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Real name: Christos
Originally Posted by Paul M View Post
Custom $show variables can be created pretty much in any hook, as the navigation is almost the last thing built, but two common ones added for the purpose are load_show_variables & load_forum_show_variables.
If you don't mind, can you help me on how to convert a condition like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to work as $show. I know that there are variables/condiltions like: $show['member'], but I was always using the above style.

Thank you
Chris
Reply With Quote
  #73  
Old 27 May 2012, 09:32
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Maybe something like this?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #74  
Old 27 May 2012, 09:36
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Real name: Christos
Originally Posted by Boofo View Post
Maybe something like this?


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thank you. I'll try it. I suppose that I can add multiple conditions and end them like $show['classifieds_post'] = true, or $show['classifieds_moderate'] = true etc.

Thanks again
Chris
Reply With Quote
  #75  
Old 27 May 2012, 10:34
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Sure you can. As another example, here is one I use in the load_show_variables hook:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


If APM is installed it will use that link. If not, it default to the vb product manager.

I also use the show variables in the navigation_tab_complete, but you have to globalize it in that hook, as well as $vbphrase if you use that there, too.
Reply With Quote
Reply

Similar Article
Article Author Type Replies Last Post
Administrative and Maintenance Tools Navigation Manager Enhancements Andreas vBulletin 4.x Add-ons 337 03 Jan 2018 16:58



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:02.

Layout Options | Width: Wide Color: