웹마스터 팁

이루히님이 제작하신 카카오톡 링크를 가지고 한줄 고치니 카카오스토리도 되네요. ^^;;

찾아보니 팁란에 없어서 남깁니다.


붉은색 부분만 변경하시면 가능하세요. ^^;

파일 첨부 했습니다. ^^;;;;;;


$appid = $addon_info->appid;

if (!$appid) $appid = 'm.kakao.com';

$appver = $addon_info->appver;

if (!$appver) $appver = '1.0';

$apiver = $addon_info->apiver;

if (!$apiver) $apiver = '1.0';

$appname = $addon_info->appname;

if (!$appname) $appname = '카카오';

$button_align = $addon_info->button_align;

$button_width = $addon_info->button_width;

if (!$button_width) $button_width = '35';

 

$before = '<div style="text-align: '.$button_align.';"><a href="storylink://posting?post='.$oDocument->getPermanentUrl().'&appid='.$appid.'&apiver='.$apiver.'&appver='.$appver.'&appname='.$appname.'"><img src="/addons/kakao_story_link/img/kakaotalkicon_150150.png" width="'.$button_width.'" /></a></div>';

$output = preg_replace($pos_regx, "<!--AfterDocument($1,$2)-->".$before, $output);




예제 http://nigahae.com/xe/board_lUat76/321 을 보시면 카카오스토리 링크가 있습니다.

하지만... 완벽하진 않습니다. 


원제작님 파일 수정한걸 첨부합니다. 제작자 등등 모두 그대로 두었습니다. ^^;



<div cond="$mi->to_sns=='3' || ($mi->to_sns!='N' && Mobile::isMobileCheckByAgent())" class="to_sns big" style="text-align:{$mi->to_sns_big}">
<a class="facebook bubble" href="http://facebook.com/" title="To Facebook~"><b class="ico_sns facebook">Facebook</b></a>
<a class="twitter bubble" href="http://twitter.com/" title="To Twitter~"><b class="ico_sns twitter">Twitter</b></a>
<a class="me2day bubble" href="http://me2day.net/" title="To Me2day~"><b class="ico_sns me2day">Me2day</b></a>
<a class="yozm bubble" href="http://yozm.daum.net/" title="To Yozm~"><b class="ico_sns yozm">Yozm</b></a>
<a cond="Mobile::isMobileCheckByAgent()" class="kakao bubble" href="kakaolink://sendurl?msg={htmlspecialchars($oDocument->getTitleText())}&url={$oDocument->getPermanentUrl()}&appid=m.kakao.com&appver=2.0&appname=카카오" title="카카오톡으로 링크보내기~"><b class="ico_sns kakao">Kakao</b></a>
</div>
제목 글쓴이 날짜
회원가입 인증메일 제목 msg_confirm_account_title 오류 해결방법 [2] 뒤뒤 2013.06.27
관리자 IP대역 설정 오류해결법 [1] 뒤뒤 2013.06.27
XE 설치 중 DB 입력 완료 후 진행이 안되는 경우! [4] file S야옹이 2013.06.26
XE + dokuwiki 도쿠위키 세션 연동시 파일 올리기 해결방법 [1] uotalkie 2013.06.25
우분투 nginx + php + MariaDB 에 XE 설치하기 (+Rewrite) [2] file Neder 2013.06.22
Minify 동작 안되시는분 마지막의 마지막에 확인하실것 불타는_방열판 2013.06.20
아이디 계정때도 이메일 변경시 재인증 메일 발송하기 [1] 혼ME 2013.06.19
간혹 DB오류메시지 뜨고 접속 안되는 경우 [1] 다크진 2013.06.19
중복 글등록을 방지하는 간단한 팁 다크진 2013.06.18
문서 작성시 기본 카테고리 선택 Summer 2013.06.17
XE 1.7.3.4 에서 레이아웃 설정의 메뉴가 계속 '시작메뉴가 있는 사이트맵'으로 설정되는 버그 [1] sejin7940 2013.06.16
게시판에 specialist,officialis 같은 단어를 쓰면 작동이 안될 때 [2] file Summer 2013.06.13
글쓰기 안되고 관리자만 글쓰기가 될때 해결법 [2] 소푸 2013.06.12
XE 자료실에 쉬운설치되게 등록하기 [1] file 도라미 2013.06.09
레이아웃 구상에 도움을 주는 사이트 [2] WhoamI 2013.06.06
파일 다운로드시 사이트 전환 불가 해결 방법 [3] StyleRoot 2013.06.05
XE설치시 정상적으로 설치완료가 되지 않고 404 페이지가 뜨는경우 [4] ZEME 2013.06.04
게시판에 갤러리 자동 삽입 [1] 강지우588 2013.06.04
페이지.. onmouseover... [2] skeofk 2013.05.28
♥ 간단하게 사이트 현재 접속자 수 표기하는 방법 ♥ [5] file 다크진 2013.05.28