10.11.2016, 15:40
How are you saving the data?
If you save them using DINI, or any other file-based system you need to have a plugin that can retrieve all file names from a directory/count them. For example kurta999's version of YSF (and other forks) or maybe this directory plugin.
If you use MySQL, MrViolence gave you the answer already.
If you use files and do not want to use a plugin just for this, check the amount of users currently registered and create a counter. The starting value is the current amount, increasing every time someone registers. But this is a very simple solution and does not consider deletion of accounts and similar. But it works too.
If you save them using DINI, or any other file-based system you need to have a plugin that can retrieve all file names from a directory/count them. For example kurta999's version of YSF (and other forks) or maybe this directory plugin.
If you use MySQL, MrViolence gave you the answer already.
If you use files and do not want to use a plugin just for this, check the amount of users currently registered and create a counter. The starting value is the current amount, increasing every time someone registers. But this is a very simple solution and does not consider deletion of accounts and similar. But it works too.