kroff wrote:Bon premièrement je vais écrire en français, j'espère que personne m'en voudra

!
Tous ceux qui ne parlent pas français, cad la majorité ^^
Plus sérieusement, il faut éviter de parler sa propre langue sur un forum anglais, sinon ça va être le bazar.
Pour ceux qui ont des difficultés en anglais, le plus simple est peut être de procéder comme ça: Poster un message en français dans le forum en français, et demander à un bon samaritain de faire le même post anglais dans le forum anglais pour avoir des réponses en anglais.
kroff wrote:I'd like to know how to add tooltips like when you mouse over the refresh icon.
ManiaPress is built on top of ManiaLib, our open source framework. The latest version of ManiaLib has a nice and simple way of handling such UI primitives
But right now, ManiaPress uses and older release of ManiaLib, and it's a bit less straightforward
In any case, to add tooltips you need to modify the source code of the ManiaPress Theme so you have to know at least a bit what you're doing.
I'm going to soon release a new version of ManiaPress with an updated version of ManiaLib, and it will be simplier to use such features. In the meantime, here's what you can do to use it:
First, you need your manialink element to have an ID, and to have scriptevents="1". In ManiaLib, you do it like that:
Code: Select all
$ui->setScriptEvents();
$ui->setId('view-external');
See line 52:
http://code.google.com/p/maniapress/sou ... ter.php#52
Then to add a tooltip to that element:
Code: Select all
Manialink::appendScript(sprintf('manialib_ui_autotip2("view-external", "Visit the Website"); '));
See line 57:
http://code.google.com/p/maniapress/sou ... ter.php#57