How get numbers of users,groups,vistors ...etc in code progrmming
To display where and how?
Note that displaying such stats tends to be inclined to discourage people unless the stats are already pretty high.
thaanks for your replay,i have custom theme and need to display users,groups,vistors in front page as Board Stats in simpleportal mode
Why can't you just get SimplePortal to do it? I'm sure it has a block for this already, but it's been a while since I used SP.
I need to do that without simple portal
where do you want it to show? within SMF if so where exactly? if outside SMF where?
So you're using SimplePortal but you need to not do it with SimplePortal...?
surly in SMF,but i change fornt page in index.template to suit my design now i need to put number of users,visitors,posts as large tittles in my page to notify my visitor with information about my site.
The code that displays those stats is in BoardIndex.template.php, look for "info center". You should be able to adapt it for your purpose.
Display is there but the logic is in BoardIndex.php and other files depending on what you're trying to do...
Which php code get total visitors like ', $context['common_stats']['total_members'], '
Is this an ok idea? Maybe I'll do this if the site is already stable with a lot of visitors. Well, that will depend on your goal.