왕초보입니다.
처음에 무심코 XE를 기반으로 홈피를 만들었는데
엮인글이 2만 여건이 생겨서 고민하던 중
이곳에서 한꺼번에 지우는 법을 설명 한 것이 있어
주로 쓰는 layout.html 을 아래와 같이 수정하여 업데이트 하면 된다하였으나
엮인글이 지워지질 않았습니다. 어찌해야 할까요?
{@
$oDB = &DB::getInstance();
$qry_u = "UPDATE ".$oDB->prefix."documents SET trackback_count='0'";
$qry_d = "DELETE FROM ".$oDB->prefix."trackbacks";
mysql_query($qry_u);
mysql_query($qry_d);
}
Layouts 란 폴더 아래 CafeXE, Xe_blog, Xe_official 란 폴더가 더 있고 이 안에도 Layout.html
이 다 들어 있는데 이것도 수정해야 하는가요?
답변 고대하겠습니다.
먼저 엮인글이 작성된 게시판에 적용되어있는 레이아웃을 알아야됩니다.
해당 레이아웃을 알았다면 해당 레이아웃의 layout.html을 편집기로 열어서 수정후 적용해야합니다.
이 부분이 만약 어려우면 관리자페이지에 가셔서 레이아웃을 선택해서 해당 레이아웃의 편집을 눌러서 레이아웃설정에서 헤더스크립트란에 위의 소스를 적용하셔도 됩니다.
그리고 엮인글을 다 지우셨다면 게시판 추가설정에서 엮인글 부분의 체크를 해제하시면 엮인글이 작성되지를 않습니다.
또한 XE 1.7.4 이상의 버전에는 엮인글 기능이 없습니다.
p.s 님의 홈피의 XE버전이 1.2 버전대 이군요.
혹시 XE버전이 너무 낮아서 위의 소스가 적용이 안 될수도 있겠네요.
참조하세요.