며칠전에 공개했던 지메일 정보 보기 플러그인에 각 라벨에 있는 메일의 숫자를 보여주는 부분만을 포함시킨것입니다.
ZOG의 특성상 플러그인안에서만 PHP가 가능하기 떄문에 더이상의 플러그인 방식의 업데이트는 안만들 생각입니다..(혹시나 필요하다면 addon 방식도 생각중입니다.)
먼저 아래의 압축 파일을 다운 받아 설정을 변경해야 합니다.
index.php 파일 설정하기
ym_gminfo/index.php 파일 8번째줄 수정
자신의 지메일 아이디와 지메일 비밀번호를 넣어주세요,
[#!_보이기..|숨기기.._!#]
$g_user="자신의 지메일 아이디";
$g_pass="자신의 지메일 비밀번호";
[#!_END_!#]
ym_gminfo/index.php 파일 밑에서 15 번째줄 수정
라벨을 8개 이상 사용하시는 분이라면 지메일 라벨 숫자에 맞게 복사해서 써주시면 됩니다..더욱 편하게 만들고 싶었는데 잘 안되더군요,,
[#!_보이기..|숨기기.._!#]
// 자신의 라벨 수량에 맞게 복사해서 써주시면됩니다.
$str = str_replace('<$ym_gm_label0$>',$snapshot->label_list[0],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label1$>',$snapshot->label_list[1],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label2$>',$snapshot->label_list[2],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label3$>',$snapshot->label_list[3],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label4$>',$snapshot->label_list[4],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label5$>',$snapshot->label_list[5],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label6$>',$snapshot->label_list[6],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label7$>',$snapshot->label_list[7],$str); // 라벨박스명
// 메일갯수 역시 수량에 맞게 복사해서 써주세요
$str = str_replace('<$ym_gm_label_no0$>',$gm_label[0],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no1$>',$gm_label[1],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no2$>',$gm_label[2],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no3$>',$gm_label[3],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no4$>',$gm_label[4],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no5$>',$gm_label[5],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no6$>',$gm_label[6],$str); // 라벨박스명
$str = str_replace('<$ym_gm_label_no7$>',$gm_label[7],$str); // 라벨박스명
[#!_END_!#]
윗 부분에 맞게 수정했다면 플러그인을 서버에 올려주시고 관리자모드에서 플러그인 사용을 체크해주세요,,
스킨 파일(index.html) 수정하기
이전에 공개한 녀석에 비해 복잡해졌습니다..라벨수량에 따라 고쳐줘야 할 놈들이 많아졌으므로 스킨 역시 복잡해졌습니다. 제가 사용하는 스킨 설정을 보시면 금방 알수 있을겁니다.
[#!_보이기..|숨기기.._!#]
<td class="menubar" id="bar7" style="cursor:pointer;" onclick="menu(7);" title="지메일정보">
<h3>G-MAIL INFO.</h3>
</td>
</tr>
<tr>
<td class="menubar" id="submenu7" style="display:block;">
<ifplugin:ym_gm_info>
<plug:ym_gm_info>
<ul style="font-size: 11px;">
<li>사용자 :<$ym_gm_user$></li><br>
<li>사용량 :<$ym_gm_size$></li><br>
<li>초대장 :<$ym_gm_invite$>장 남았음</li><br>
<li>inbox :<$ym_gm_inbox$>개</li><br>
<li><$ym_gm_label0$> :<$ym_gm_label_no0$>개</li><br>
<li><$ym_gm_label1$> :<$ym_gm_label_no1$>개</li><br>
<li><$ym_gm_label2$> :<$ym_gm_label_no2$>개</li><br>
<li><$ym_gm_label3$> :<$ym_gm_label_no3$>개</li><br>
<li><$ym_gm_label4$> :<$ym_gm_label_no4$>개</li><br>
<li><$ym_gm_label5$> :<$ym_gm_label_no5$>개</li><br>
</ul>
</plug:ym_gm_info>
</ifplugin:ym_gm_info>
</td>
</tr>
</table>
[#!_END_!#]
제작 후기
모든 플러그인이 사용자가 손을 안되면 안될수록 좋은건데 갈수록 복잡해져만 가는것 같아 아쉽네요,, 다음에는 안고치고 사용할 무언가를 생각해볼 생각입니다..
<b><a href=http://foulup.nazzim.net/bbs/zboard.php?id=replzine target=_blank>http://foulup.nazzim.net/bbs/zboard.php?id=replzine</a></b>로 트랙백핑 보냄
답글삭제<b><a href=http://www.zog.co.kr/ target=_blank>http://www.zog.co.kr/</a></b>로 트랙백핑 보냄
답글삭제음,,인기가 없는 플러그인이군요,,,다시는 이런거 안만들레요,,
답글삭제<a href="http://www.2heart.net/blog/" target=_blank ><b>앞을 보고 살면 행복이 있다.에서 퍼감</b></a><BR/>유메님께서 만드신 Gmail 확인 플러그인
답글삭제와우~ 정말
<a href="http://www.2heart.net/blog/" target=_blank ><b>앞을 보고 살면 행복이 있다.에서 퍼감</b></a><BR/>유메님께서 만드신 Gmail 플러그인이다.
답글삭제내게 절실하게 필요한 기능이었는데 몹시 반갑다.