Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Line break in TIMEPOS (was: newline)

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
haddl



Joined: 15 Apr 2008
Posts: 1

PostPosted: Tue Apr 15, 2008 6:14 am    Post subject: Line break in TIMEPOS (was: newline) Reply with quote

Hello,

first question here

I just want to add a newline to the TIMEPOS output. e.g.:

Code:
Created: Apr 15 2008 13:00:14 CEST
Calendar week 16


The documentation says: "The default timestamp text is 'Created: %b %d %Y %H:%M:%S'. The tokens used are those accepted by the PHP strftime function. For a full list see the PHP manual page."

And the PHP manual page says: %n - newline character.

For the timestamp I used: 'Created: %b %d %Y %H:%M:%S %Z %n Calendar week %V'

But weathermap doesn't render a new line (or line break or whatever you would call it). It just renders some special characters (see attached picture). Do I have to use ttf fonts in order to get this work?

Is this a bug or is this done intentionally?


Thanks in advance
Regards
Matthias

Edit: weathermap version is 0.95b used as cacti (0.8.7a) plugin.



nonewline.png
 Description:
no newline, just special characters
 Filesize:  589 Bytes
 Viewed:  835 Time(s)

nonewline.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group