2012-05-18, 08:49 PM
2012-05-18, 08:56 PM
What do you want to show or use ?
2012-05-18, 08:58 PM
(2012-05-18, 08:56 PM)Yaldaram Wrote: [ -> ]What do you want to show or use ?
I plan to show how many people are registered in the forum.
Like...
Users: {'$existing_users'}
or something.
2012-05-19, 10:45 AM
The correct syntax would be {$existing_users}, but there's no such variable. Depending on where you want to display it, {$stats['numusers']} might work.
2012-05-19, 11:54 AM
(2012-05-19, 10:45 AM)Fábio Maia Wrote: [ -> ]The correct syntax would be {$existing_users}, but there's no such variable. Depending on where you want to display it, {$stats['numusers']} might work.
Yes, that worked. I got my variable from here:
http://crossreference.mybboard.de/nav.ht...index.html
Can you post the variables of..
- Number of overall posts
- Number of overall threads
- Latest member
- Current username logged in
- Members online
- Members, guests & bots online
- List online users with formatted usernames
2012-07-26, 06:11 AM
Well how does one add a language variable to MyBB core language files properly? Specifically in Global. just adding in the variable directly doesn't seem to work.
2012-07-26, 07:29 AM
^ Open global.lang.php, add this at the end:
You can now use {$lang->some_key} wherever the MyBB global file is loaded (which means everywhere except hen ajax is used, AFAIK...).
$l['some_key'] = "some value";
You can now use {$lang->some_key} wherever the MyBB global file is loaded (which means everywhere except hen ajax is used, AFAIK...).