Skip to Content Skip to Menu

How to show tab only when necessary?

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
19 years 1 week ago #8950 by hypnotoad
How to show tab only when necessary? was created by hypnotoad
Is there a possibility to show a Plugin-tab only when it's necessary, as it is done with the custom tabs added by hand?
E.g. the 2 plugins I wrote (jAwards-Tab, and PonyTab) show up all the time. I'd like to hide those if the user has no awards or no images published.

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
19 years 1 day ago #9568 by hypnotoad
Replied by hypnotoad on topic Re:How to show tab only when necessary?
So.... (since only views, and no reply came), I guess it's not possible currently?

Can this feature be part of some future release of Community Builder?

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
19 years 19 hours ago #9584 by nant
Replied by nant on topic Re:How to show tab only when necessary?
hypnotoad wrote:

So.... (since only views, and no reply came), I guess it's not possible currently?

Can this feature be part of some future release of Community Builder?


Sure its possible.
Just evaluate the criteria and return nothing in the getdisplaytab function.

Please Log in or Create an account to join the conversation.

  • hypnotoad
  • hypnotoad
  • OFFLINE
  • Posts: 66
  • Thanks: 0
  • Karma: 20
19 years 18 hours ago #9586 by hypnotoad
Replied by hypnotoad on topic Re:How to show tab only when necessary?
:whistle: I could have guessed it exactly that way... works wonderful, will be used in the next versions of my tabs!

CB 3rd Party Developer: jAwards | GalleryTab for CB (Ponygallery, ML)

Please Log in or Create an account to join the conversation.

19 years 9 hours ago #9617 by balserodeluxe
Replied by balserodeluxe on topic Re:How to show tab only when necessary?
Any suggestions on how to hide certain tabs of OTHER USERS if there is no connection with that user?

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
19 years 6 hours ago #9623 by nant
Replied by nant on topic Re:How to show tab only when necessary?
balserodeluxe wrote:

Any suggestions on how to hide certain tabs of OTHER USERS if there is no connection with that user?


This can be programmed on a plugin basis.
I have added this feature to my (Nant's) Gallery plugin (currently in testing). I have a backend parameter option to allow only connected users to see other's gallery.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum