• Hi,

    I want to thank you first for the fantastic plugins that you did for the community !

    For the next, I need some informations about the infobar.
    Right now, I understand that’s just possible to show only one by one user.
    Just asking if it’s possible to show at the same time all users on the infobar, and if it’s possible to styling these using HTML / CSS ?

    For exemple, i’m trying to do a <br> on each information display on the infobar…

    Thanks for your reply, and thank you again for the WP plugins !

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tinuzz

    (@tinuzz)

    Hi,

    At this time, the infobar only displays information for one user, and there’s nothing in the code to make it behave otherwise. This sounds like a reasonable thing though, so I will think about it, but it raises some questions, like: how big should the infobar be allowed to get, if you have like 10 different users on the map?

    Reqarding styling: the infobar is a <div> that has a class ‘trackserver-infobar’, so you can use CSS to style it.

    It is currently not possible to use HTML in the infobar. The content is HTML-escaped, so HTML special characters like ‘<‘ and ‘>’ are escaped into HTML entities. I’m not sure if it’s a good idea to allow HTML in the infobar, because it could mess up the page completely. All authors should be trusted to keep it nice and neat, and I’m not convinced that trust is the right thing to base features on 😉

    Best regards,
    Martijn.

    Plugin Author tinuzz

    (@tinuzz)

    I now see that WordPress has a builtin library to sanitize HTML and allow specific tags:

    https://codex.wordpress.org/Function_Reference/wp_kses

    I’ll see if that is suitable to use on the infobar, so allow at least some tags like <br>, <b>, <i>, etc.

    Cheers,
    Martijn.

    Thread Starter ideoking

    (@ideoking)

    Hi !

    Thanks for your reply !

    For the multiple user information display, we can imagine a display out of the map for live tracking. So I let you think about this featured 😉

    About the infobar styling, my main problem is for exemple separating every data with a <br>. I’ll tried to use JS and CSS to separate them, but no success for the moment :(.

    Thanks ! Can’t wait for your next Trackserver feature 😀

    Regards,
    Thierry

    Thread Starter ideoking

    (@ideoking)

    Nice 🙂

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Infobar : Styling and customisation informations’ is closed to new replies.