q2a/question2answer — pull request #15 by pupi1985 (2014-01-06 22:46:34+00:00)
Title: Added the user id in the user ranking page to ease plugin development.

When processing the user items in a theme/layer everything at hand is a label and a score. The label looks something like this:
```html
user1
```
In order to develop a plugin that would, for instance, replace the user1 text displayed in the link with the name of the user or maybe to show the users badges the best approach would be to parse the href link with a regex. Currently, I'm doing it this way:
```php
preg_match('@]*href="[^"]*user/(.*?)"@', $item['label'], $matches)
```
Adding the user id to the result would simplify this process at almost no cost and plugin developers won't have to parse HTML with regex.