[MyAAC][Plugin] Census (vocations, sex, country statistics)

slawkens

Developer
Premium User
Joined
Aug 27, 2007
Messages
2,853
Reaction score
369
Location
Germany
If you still didn't found reason to switch to MyAAC, then here's another one:

Nice charts made with help of Google Charts (Charts | Google Developers)

Installation:
Go to Admin Panel, select 'Plugins', and then select census.zip and click upload.
Installation is not all. It just adds this page to your AAC, you also need to add link to your page. You can do this by editing template file. Open templates/your_template/index.php or template.php and add link in proper sections.

(Optional) Configuration:
If you want to set how much countries to show on chart, then paste in your config.local.php this:
Code:
$config['census_countries'] = 5;
Where 5 is number of countries to show. Higher number may not be good shown, so I recommend values under 10.

Screenshot:
census.jpg
 

Attachments

Last edited by a moderator:

K243

Member
Joined
Mar 14, 2017
Messages
86
Reaction score
49
Is there a config to change if you want to show "none" voc or not. Alot of servers doesnt use that. + does it support custom vocations? Maybe good info to put into your thread. :]
 
OP
slawkens

slawkens

Developer
Premium User
Joined
Aug 27, 2007
Messages
2,853
Reaction score
369
Location
Germany
Is there a config to change if you want to show "none" voc or not. Alot of servers doesnt use that. + does it support custom vocations? Maybe good info to put into your thread. :]
If there are not any "none" vocations in your database, then it won't show it. Just delete if you have any. Yes it support custom vocations. You just need to set in config vocations_amount to amount custom vocations you have. By default its 4 (4 vocations).
 
Top