1
kalpax
Strange Chars in theme header, current time, how can I get rid of them?
  • 2005/11/3 16:06

  • kalpax

  • Just popping in

  • Posts: 61

  • Since: 2005/8/9 2


In the orange_peco theme from ocean-net, there are some odd (probably japanese) charcters in the headers upper right hand corner:

¸áÁ° 8»þ8ʬ37ÉÃ

The number increments every second, so it's probably supposed to be the current time. How can I get rid of that? The site does not need the current time shown. I know zilch about css etc, so any response should be as specific as possible.

Thanks

2
bluenova
Re: Strange Chars in theme header, current time, how can I get rid of them?

I can't tell you where the code is located, but it is probably in theme.html in your themes directory. It should be quite obvious near the top of the file where the code is (it's probably java-script, and would say so in the theme). Remember to make a backup before editing, and turn on 'update themes and templates' from the XOOPS adminstation 'general preferances'

3
kalpax
Re: Strange Chars in theme header, current time, how can I get rid of them?
  • 2005/11/3 16:22

  • kalpax

  • Just popping in

  • Posts: 61

  • Since: 2005/8/9 2


Thanks for the quick reply, I'm sure it's in the right direction. I found code below which must be the current time section and deleted it, yet I still see the current time chars in the header. I've closed all IE windows, even tried another browser and it's still there. Strange? Or is there some part of XOOPS that has to be 'notified' of the change?

<Script Language="JavaScript">
<!--
var spSTim11=" ";
function time01() {
var dayTim,jiTim,funTim,byoTim,goze;
dayTim=new Date();
jiTim=dayTim.getHours();
funTim=dayTim.getMinutes();
byoTim=dayTim.getSeconds();
if (jiTim<12) goze="¸áÁ° ";
else {
goze="¸á¸å ";
jiTim=jiTim-12;
}
document.time01.timeform.value=spSTim11+goze+jiTim+"»þ"+funTim+"ʬ"+byoTim+"ÉÃ";
setTimeout("time01()",1000);
}
// End -->
</Script>

4
kalpax
Re: Strange Chars in theme header, current time, how can I get rid of them?
  • 2005/11/3 20:50

  • kalpax

  • Just popping in

  • Posts: 61

  • Since: 2005/8/9 2


Oh, you did tell me to change that setting in the admin area, and what do you know...it worked!

Thanks

5
Sloan
Re: Strange Chars in theme header, current time, how can I get rid of them?
  • 2005/11/10 23:56

  • Sloan

  • Just popping in

  • Posts: 9

  • Since: 2005/11/4


I changed the JavaScript to the following:

var spSTim11=" ";
function time01() {
var dayTim,iHours,iMins,iSecs,strAMPM;
dayTim=new Date();
iHours=dayTim.getHours();
iMins=dayTim.getMinutes();
iSecs=dayTim.getSeconds();
if (iHours<12)
{
strAMPM="am";
}
else
{
strAMPM="pm";
iHours=iHours-12;
}
if (iMins<10) iMins = "0" + iMins;
if (iSecs<10) iSecs = "0" + iSecs;
document.time01.timeform.value = spSTim11 + iHours + ":" + iMins + ":" + iSecs + " " + strAMPM;
setTimeout("time01()",1000);
}

Login

Who's Online

102 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 102


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits