PDA

View Full Version : Dynamic text in navtab


vBNinja
04-08-2013, 04:47 AM
Hello,

I'm creating a mod that keeps count of a variable (and is stored in the database), i'd like to retrieve that value and use that as part of the navtab text. Example, my current navbar is "My Mod", i would like to have it say "My Mod ($variable fetched from database)"

I think i found a working solution here: https://vborg.vbsupport.ru/showthread.php?t=286233

But it only works for 4.2 and i'm trying to do this on 4.1.10

Can anyone help me out?

Thanks!

Lynne
04-08-2013, 03:20 PM
If you are doing this in 4.1.10, then you are creating the navtab via a plugin, right? So, grab that variable and insert it into the tab name in the plugin. If you need further help, you need to post your plugin code for us.

vBNinja
04-08-2013, 03:48 PM
nevermind.. got it working using your "add navtab" article

Thanks! :D