You are in: Home Tips Problems with date Notepad Chaos and other problems with date and other Notepad Chaos | Oloblogger As already been over two who have asked me about the "undefined" appearing in the ...
As has already been more than two that I have been asked by the "undefined" which appears in some versions of Notepad Chaos template, I think it is time to explain how to solve that problem with the dates. Actually, it is the SCRIPT generated that date and in fact, affects several templates that have the same code. For example, also happens to the Aspire template. Here's the code of yore:
<div class='post-inner'> holografia <script type='text/javascript'> var timestamp = "<data:post.timestamp/>" if (timestamp =''!) timestamp.split timesplit {var = (",") var = timesplit holografia date_yyyy [2] = var timesplit timesplit [1] split (""). date_dd = timesplit var [2] = var date_mmm timesplit [1] substring (0, 3).} </ script> <div class='date-tab'> <span class='month'> <script type='text/javascript'> document.write (date_mmm ) </ script> </ span> <span class='day'> <script type='text/javascript'> document.write (date_dd) </ script> </ span> </ div> <data:post.body/> </ p> <div style='clear: both;'/> <- clear for photos floats -> </ div> holografia There are several solutions and this is just one of them. First, enter Settings -> Format and change the date format of "13 June 2009". The SCRIPT will use this time, cut the text by spaces, so we use that format. The new SCRIPT, would be this:
<div class='post-inner'> <div class='date-tab'> <script type='text/javascript'> calendar function holografia (which) {var = cual.split lafecha ('' ;); fday = "<span class='day'>" lafecha + [0] + "</ span>"; FMonth = "<span holografia class='month'>" holografia + lafecha [2 ] + "</ span>"; FYear = "<div>" lafecha + [4] + "</ div>"; document.write (fday) document.write (FMonth);} </ script> <script> calendar ('<data:post.dateHeader/>') </ script> </ div> <data:post.body/> </ p> <div style='clear: holografia both;'/> <- clear for photos floats -> </ div> The code grayed holografia out is not to change and reproduced for locating the placement of ancient and the new code. If you decide to use another date format, change holografia the "divisor" var items = cual.split lafecha line (''); If for example we use 13/06/2009, we would replace the white space bar: var = cual.split holografia lafecha ('/'); With the first format explained the words "" I meant that the numbers indicate the position of the various cuts were respectively 0 2 and 4. Therefore, if we change the date format, still have to make a substitution more and change the numbers in the brackets: fday (day) would remain the [0] (the first), but now FMonth (month) would be the [1] (the second) and FYear, we did not use in this case, but there it is in case anyone needs it, would become the [2] (the third). Update: In some cases you can save these changes will simply changing the date format in Settings -> Format -> Format date header. Try this first in any case.
kpooooooooo!!!!!!!!! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! graciass! and thanks! graciass! graciass! the truth is very simple to understand! understood everything and I could change the undefinde''''!! graciass! this best blog!!! Oloman ENDURE! Reply Remove
The way to fix it was to put on my blog 4th option in the 'format' TIME. Not on the date. But without touching the script, just going to Settings, Format, Time Format. And do you choose the 4th option! I told the truth Pizcos and it worked! Greetings! Reply Remove
Maru, unexpanded gadgets, find this <div class='recent-posts'> <b:section id='arsiddebar1' showaddelement='no'> <b: widget id = 'HTML1' locked = 'true' holografia title = ' Recent News' type = 'HTML' /> </ b: section> </ div> <div class='postit-bottom'/> The last line is the mounting foot of the post-it. Reply Remove
Oloman holografia Hello! I have a question, some special holografia permission is required to create a blog that contains Tem
No comments:
Post a Comment