브라우저 제목표시줄에 포스트제목 넣기.. :: 2006. 2. 15. 13:03
Windows Lab에서 가져왔습니다.
1. title.php - 새로운 파일 생성
먼저 아래의 내용을 그대로 복사하셔서 title.php 파일을 하나 생성하시기 바랍니다..
2. index.php
313번째 줄쯤 아래의 내용으로 검색하셔서..
3. skin.html
※주의 : [ ##_xxx_##] 이곳에서 [와 ##_의 사이를 붙이셔야 됩니다.
수정할파일
1. title.php(새로생성)
2. index,php
2. skin.html
1. title.php(새로생성)
2. index,php
2. skin.html
1. title.php - 새로운 파일 생성
먼저 아래의 내용을 그대로 복사하셔서 title.php 파일을 하나 생성하시기 바랍니다..
<?php
//-- 제목표시줄에 포스트 제목을 넣기
if($_GET['pl'])
$rose_query = "select title from t3_$dbid where $is_public and no<='$_GET[pl]' order by regdate desc limit 1";
elseif($_GET['ct1'] && !$_GET['ct2'])
$rose_query = "SELECT label FROM t3_{$dbid}_ct1 WHERE no='$_GET[ct1]' limit 1";
elseif($_GET['ct2'])
$rose_query = "SELECT label FROM t3_{$dbid}_ct2 WHERE no='$_GET[ct2]' limit 1";
elseif($_GET['ct1']!='-1')
$rose_query = "select title from t3_$dbid where $is_public order by regdate desc limit ". ($page-1)*$p_page_cnt .",1";
$d1 = str_replace("[ ##_article_title_## ]", @mysql_result(@mysql_query($rose_query),0,0), $d1);
?>
이제 위 파일을 테터가 설치된 폴더로 업로드합니다.//-- 제목표시줄에 포스트 제목을 넣기
if($_GET['pl'])
$rose_query = "select title from t3_$dbid where $is_public and no<='$_GET[pl]' order by regdate desc limit 1";
elseif($_GET['ct1'] && !$_GET['ct2'])
$rose_query = "SELECT label FROM t3_{$dbid}_ct1 WHERE no='$_GET[ct1]' limit 1";
elseif($_GET['ct2'])
$rose_query = "SELECT label FROM t3_{$dbid}_ct2 WHERE no='$_GET[ct2]' limit 1";
elseif($_GET['ct1']!='-1')
$rose_query = "select title from t3_$dbid where $is_public order by regdate desc limit ". ($page-1)*$p_page_cnt .",1";
$d1 = str_replace("[ ##_article_title_## ]", @mysql_result(@mysql_query($rose_query),0,0), $d1);
?>
2. index.php
313번째 줄쯤 아래의 내용으로 검색하셔서..
unset($p, $p2, $add_str);
바로 윗줄에..include 'title.php';
라고 넣어주시면 됩니다..3. skin.html
<title>[ ##_title_##] :: [ ##_article_title_##]</title>
이렇게 수정해 주시면 되겠습니다..※주의 : [ ##_xxx_##] 이곳에서 [와 ##_의 사이를 붙이셔야 됩니다.
'테터&TISTORY' 카테고리의 다른 글
TT Classic OR에서 EXIF출력하기 (0) | 2006.02.22 |
---|---|
테터1.0 Classic OR 썸네일 앨범 적용 (2) | 2006.02.18 |
로그인과 로그아웃 시 다른 버튼 나타내기 (0) | 2006.02.04 |
태터 수정할 내용 (0) | 2006.02.02 |
TT 1.0은 잠시 접어두고~ (0) | 2006.02.01 |