Skip to Content Skip to Menu

dynamic tab name

  • ford
  • ford
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 5
17 years 7 months ago #34792 by ford
dynamic tab name was created by ford
Is it possible, from within the plugin, to dynamically allocate a different tab name, say:

"My groups" - when I'm visiting my own profile
"Groups" - when I'm visiting somebody else's profile

Cheers

Ford

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

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 7 months ago #34796 by mikko
Replied by mikko on topic Re:dynamic tab name
As far as I know: No, but you can get the same effect by doing the following:
-use language file to define the title for "groups"
-in plugin "onBeforeProfileView" change the language constant to "my groups" if the userid is $my->id

mikko

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

  • ford
  • ford
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 5
17 years 7 months ago #34797 by ford
Replied by ford on topic Re:dynamic tab name
Moi! Mikko

Thanks for the quick reply :cheer:

I'll try that out!

Best regards from

Ford :)

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

Moderators: beatnantkrileon
Powered by Kunena Forum