Strict Standards: Non-static method Soojung::addReferer() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/settings.php on line 79

Warning: Cannot modify header information - headers already sent by (output started at /home/lifthrasiir/sites/sapzil.info/soojung/settings.php:79) in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Counter.class.php on line 63

Strict Standards: Non-static method Entry::getEntry() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/entry.php on line 51

Strict Standards: Non-static method Soojung::entryIdToFilename() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Entry.class.php on line 182

Strict Standards: Non-static method Soojung::queryFilenameMatch() should not be called statically in /home/lifthrasiir/sites/sapzil.info/soojung/classes/Soojung.class.php on line 55
TokigunStudio3 | 블로그: 템플릿 업데이트

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


더 이상 이 블로그는 운영되지 않습니다. 새 블로그로 가 주세요.

템플릿 업데이트

2005/01/20 AM 03:34 | 개발/soojung | 3 comments | 0 trackbacks | AllBlog: vote, to pocket

뭐 별로 티는 안 나지만, Archives 메뉴에도 글 수가 나오게 했다. 그러나 cvs에 반영될 지는 아무도 모른다. (도망간다)

...근데 12월에 올린 글이 의외로 적네. -_-; 역시 이 때는 암울했던 거군... orz (지금도 충분히 암울하지만 OTL)


고치는 방법: (졸라 간단해요)

1. classes/Archive.class.php의 Archive 클래스에 다음과 같은 메소드를 추가한다.
function getEntryCount() {
  $query = sprintf("^%04d%02d[^.]+[.]entry$", $this->year, $this->month);
  return Soojung::queryNumFilenameMatch($query);
}
2. 템플릿의 적당한 부분에 {$archive->getEntryCount()}를 넣어 준다. (보통 footer.tpl에 있다)
3. 알아서 캐시 파일을 업데이트한다. (sudo rm -rf .cache/* .compile/* 하면 아마 될라나... 절대로 맞다는 보장은 못 함.)

TrackBack URL: http://sapzil.info/soojung/trackback.php?blogid=320

Comment: 디토 (2005/01/20 AM 08:26)

index.php?compile=t 하면 되어요~~

Comment: ddt (2005/01/20 AM 09:05)

글 쓰면 자동으로 캐쉬 업데이트 합니다 ;)

Comment: 토끼군 (2005/01/20 AM 11:39)

디토: 저는 그게 잘 안 먹더군요. orz 그래서 수동으로 지웠습니다.
ddt: 바로 바로 적용되게 만들어야 직성이 풀려서... =3=33

Copyright (c) 1995-2005, Kang Seonghoon (Tokigun).