블로그/게시판의 기본 스킨에 작성자(글,댓글)가 비회원일 경우 홈페이지 링크 적용

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2719 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-10 06:41:24 +00:00
parent 6e3c2b4fb4
commit c922dc5b20
12 changed files with 121 additions and 27 deletions

View file

@ -122,6 +122,24 @@
$oMemberController = &getController('member');
$oMemberController->sendMessage($sender_member_srl, $receiver_srl, $title, $content, false);
}
function isExistsHomepage() {
if(trim($this->get('homepage'))) return true;
return false;
}
function getHomepageUrl() {
$url = trim($this->get('homepage'));
if(!$url) return;
if(!eregi("^http:\/\/",$url)) $url = "http://".$url;
return $url;
}
function getMemberSrl() {
return $this->get('member_srl');
}
function getUserID() {
return htmlspecialchars($this->get('user_id'));