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 | 블로그: soojung 0.4: bbcode 테스트

내용으로 바로 넘어 가기


TokigunStudio3

228 / 3282   


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

soojung 0.4: bbcode 테스트

2004/12/26 AM 02:09 | 개발/soojung | 2 comments | 0 trackbacks | AllBlog: vote, to pocket

0.4에서 추가된 기능 중 하나가 자유롭게 Format을 선택할 수 있다는 것이다. 이번에 새로 추가된 것은 bbcode Format인데, 무려 정규표현식 삽질을 통해서 만들어진 산물이다. (나중에 d3m... 님 패치 -- 이름이 잘 기억이 안 나;; -- 를 추가했는데 코드가 뭔가 거시기해졌다. 이거 참... 고쳐야 할 텐데.)

테스트로 몇 개... 일단 굵게 기울게 밑줄과 같은 기본적인 기능은 잘 돌아 간다. pre 블록도 다음과 같이 지원된다:
  // 방금 전에 나를 괴롭혔던 바로 그 해쉬 알고리즘
  function getHashID() {
    $hash = md5($this->name);
    return sprintf("%08x",
      hexdec(substr($hash, 0, 8)) + hexdec(substr($hash, 8, 8)) +
      hexdec(substr($hash, 16, 8)) + hexdec(substr($hash, 24, 8)));
  }

quote 블록은 현재 blockquote로 되어 있는데, 템플릿에서 처리를 안 해 주고 있기 때문에 밋밋하게 보일 것이다. :p 아. 그리고 스마일리 처리도 되어 있다. :)

누군가가 말하길:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


이미지 삽입이나 링크 걸기도 모두 지원된다.
[img]http://sapzil.info/banner.png[/img]

지금까지 설명한 건 옛날 내 홈페이지에 달려 있던 the notepad에서 대부분을 가져 온 것인데, 귀찮아서 안 넣은 것이 있었으니 바로 list였다. 이제 list도 무리 없이 된다! (type도 지정할 수 있는데 I/i는 내 맘대로 넣었다.)
  • 하나


그 외에 색깔이나 글꼴 크기도 지정할 수 있으나 내가 안 좋아 하니까 빼자. :)

(지금 보니까 문제가 있다. 슬슬 고쳐 놓았음. cvs에다가도 시간 나면 커밋해야지...)

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

Comment: d3m3vilurr (2004/12/26 AM 05:14)

나중에 두고보자로 들려요;;; 죄송(...)
후다닥...=3=3=3

Comment: 토끼군 (2004/12/26 PM 03:19)

d3m3vilurr: 어디에 두고 봐야 하나요? :p (도망간다)

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