Roman visitor counter
A normal visitor counter displays the number of visitors as an Arabic number, for example 123, 2026 or 10000.
With the Roman visitor counter, the same visitor number can be shown as a Roman numeral.
For example, 2026 becomes MMXXVI.
This is not the most practical display for every website, but it can be a nice little eye-catcher for history pages, Latin projects, school projects, museum pages or retro homepages.
What do you have to change?
You do not have to download a PHP file and you do not have to install any server-side code on your own website.
You only change the visitor counter code that you paste into your homepage.
In the counter code, replace counter.php with numerator.php.
Also change the STYLE parameter to a style that is suitable for Roman numerals, for example STYLE=L0.
In short:
counter.php -> numerator.php
STYLE=0 -> STYLE=L0
The normal visitor counter code
A normal visitor counter code from our service may look like this:
Turn it into a Roman visitor counter
For the Roman display, replace counter.php with numerator.php in the image URL and in the JavaScript counter URL.
Then change STYLE=0 to STYLE=L0.
The modified code then looks like this:
Keep your own counter ID
Important: keep your own counter ID unchanged.
In the example above, the ID is example.com.
In your own counter code, your own website or counter ID will be used instead.
If you want to keep the existing counter value, do not change the ID.
Only the visual display changes; the actual counter remains the same.
ID=example.com
stays:
ID=example.com
Which STYLE values can be used?
Roman numerals are displayed with special text styles.
They are called with L0 to L14.
STYLE=L0
STYLE=L1
STYLE=L2
STYLE=L3
...
STYLE=L14
The letter L is important.
A normal value such as STYLE=0 is intended for the classic visitor counter.
For the Roman visitor counter, use STYLE=L0 to STYLE=L14 instead.
Why are special styles needed?
Many classic counter styles are made from separate image files for the digits 0 to 9.
Roman numerals, however, consist of letters.
The most important Roman numeral symbols are:
I, V, X, L, C, D, M
That is why the Roman visitor counter uses styles that can display letters cleanly.
For this purpose, the STYLE values L0 to L14 are available.
What happens to statistics and reload protection?
The counting logic remains unchanged.
The counter continues to count internally as usual.
Reload protection, statistics and visitor information are handled just like with the normal visitor counter.
Only the visible output of the visitor number is changed.
The stored counter value remains a normal number.
What happens with the number 0?
The Romans did not have a zero in the modern sense.
If a Roman visitor counter has to display the value 0, it uses N.
This stands for nulla.
A note about large visitor numbers
Roman numerals can become much longer than normal numbers.
For example, 3888 becomes:
MMMDCCCLXXXVIII
For very high visitor numbers, the counter image may therefore become wider than a normal visitor counter.
The Roman counter is mainly a decorative special version.
Short version
To display an existing visitor counter as a Roman numeral, change only these two parts in the embed code:
https://besucherzaehler.gratis/counter.php
becomes:
https://besucherzaehler.gratis/numerator.php
STYLE=0
becomes:
STYLE=L0
Your own counter ID stays the same.
This turns the normal visitor counter into a visitor counter with Roman numerals.









