Customizing SMF > SMF Coding Discussion
CountDown
matedgo:
ok, this is countdown which i want.
http://www.gieson.com/Library/projects/utilities/countdown/index.html
how to add it ?, it have to be first at smf forum at center.
i tryed to make work it, but i cant, not so good, it have to be with deadline one.
K@:
--- Quote from: matedgo on June 10, 2012, 02:13:15 PM ---i tryed to make work it, but i cant
--- End quote ---
...because...?
matedgo:
when i edit index.template, forum is just showed white and nothing else, and now idk rlly how to add that code to page so it works.
K@:
When I do these kinds of things, not being a coder, I try the old "Trial and error" thing.
The instructions say "Open your HTML page and place the following code anywhere between the opening <body> and closing </body> tags.".
As long as you don't stick it in the middle of a block of code, screwing that block, almost anywhere should be OK, within reason.
Try putting it right after the opening body tag and see what happens.
Although, Arantor might see this and tell you exactly where to put it, if you're lucky. ;)
Arantor:
Well, it's still not clear exactly where you want it. A screenshot might help with that.
The reason it doesn't work is that you can't just shove JavaScript code into the PHP/HTML that SMF uses, because it ends up intermixing with the PHP and causes trouble as you've seen.
Navigation
[0] Message Index
[#] Next page
Go to full version