구글 RSS 뉴스 플러그인 정보
기타 구글 RSS 뉴스 플러그인관련링크
http://www.miwit.com
1077회 연결
첨부파일
본문
마이위트 메인에 달아두었던 구글 RSS 뉴스 입니다.
◎ 사용방법
그누보드 디렉토리에 업로드 하시고,
필요한곳에 아래 코드를 참조하여 입력하시면 됩니다.
<? include("$g4[path]/plugin/google-news/index.php") ?>
배추빌더를 이용하시면 캐쉬기능을 사용하실 수 있습니다.
배추빌더가 아닌데 캐쉬기능을 이용하시려면,
배추빌더에서 아래 두파일만 추출하여 업로드하시고 사용하시면 됩니다.
/lib/mw.cache.lib.php
/lib/mw.file.lib.php
◎ 라이센스
프로그램 라이센스는 GPL2 입니다.
구글 RSS 뉴스에 대한 저작권은 아래 링크를 참조하세요.
http://www.google.co.kr/support/news/bin/answer.py?answer=59255&hl=ko
◎ 사용방법
그누보드 디렉토리에 업로드 하시고,
필요한곳에 아래 코드를 참조하여 입력하시면 됩니다.
<? include("$g4[path]/plugin/google-news/index.php") ?>
배추빌더를 이용하시면 캐쉬기능을 사용하실 수 있습니다.
배추빌더가 아닌데 캐쉬기능을 이용하시려면,
배추빌더에서 아래 두파일만 추출하여 업로드하시고 사용하시면 됩니다.
/lib/mw.cache.lib.php
/lib/mw.file.lib.php
◎ 라이센스
프로그램 라이센스는 GPL2 입니다.
구글 RSS 뉴스에 대한 저작권은 아래 링크를 참조하세요.
http://www.google.co.kr/support/news/bin/answer.py?answer=59255&hl=ko
추천
55
55
댓글 전체
받아가실때 춧현~ 부탁 드려요..
추천 !
추천 꾹
감사히 사용하겠습니다.
대단합니다. ^^
굿!!
굿!!
공개하셨군요
고맙습니다.
고맙습니다.
공개하셨네요 ㅎㅎ;
저번에 마요네즈랑 케첩이 생각난다는 ㅋㅋ
<?
$one = "케첩";
$two = "마요네즈";
$three = $one + $two;
echo $three;
?>
저번에 마요네즈랑 케첩이 생각난다는 ㅋㅋ
<?
$one = "케첩";
$two = "마요네즈";
$three = $one + $two;
echo $three;
?>
감사감사
니우스
와아 공개하셨네요..
이거 정말 달아보고 싶었다눈...
꾹!
이거 정말 달아보고 싶었다눈...
꾹!
공개 고맙습니다. ^^ 추천 한방요!!!
감사합니다.
추천.... 추천....
곱슬님 감사요~~^^ 그런데 홈피에서 검색에도 나오게 할 수 있나요? 오픈api 적용하지 않은 상태에서요... 만약 검색에는 적용되지 않는다면, 적용되는 방법이 없을까요?
뉴스가 아무것도 안나오는데요... 문제가 뭔지...
감사합니다.^^
감사합니다. ^^
배추도쏴!!!님 만세~!~~
재배포 가능합니까?
감사 합니다... 재배포 가능한지요.?
좋은스킨인데 이렇게 나오네요
Fatal error: Call to undefined function: iconv() in /home/dycarpos/html/car/plugin/google-news/get_news.php on line 61
Fatal error: Call to undefined function: iconv() in /home/dycarpos/html/car/plugin/google-news/get_news.php on line 61
서울가면 술한잔 사드려야겠네..ㅎㅎ
잘쓸게요
감사합니다
구글뉴스 플러그 인
뉴스제목중 ' 이라고 나오는 부분은 어찌 처리해야하는지 궁금합니다.
get_news.php
하단에 보면
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
을
아래와 같이 수정하면 됩니다.
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
$item[$i][title] = str_replace("'","'",$item[$i][title]);
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
하단에 보면
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
을
아래와 같이 수정하면 됩니다.
$item = array();
preg_match_all("/<item>(.*)<\/item>/iUs", $xml, $matchs);
for ($i=0, $max=count($matchs[1]); $i<$max; $i++) {
preg_match("/<title>(.*)<\/title>/iUs", $matchs[1][$i], $match);
$item[$i][title] = unhtmlspecialchars(trim($match[1]));
$item[$i][title] = str_replace("'","'",$item[$i][title]);
preg_match("/<link>(.*)<\/link>/iUs", $matchs[1][$i], $match);
$item[$i][link] = trim($match[1]);
preg_match("/img src=(.*) /iUs", $matchs[1][$i], $match);
$item[$i][img] = trim($match[1]);
}
return $item;
감사합니다.
크롬에서는 나타나지 않던 에러인데,
익스7에서 나타나더군요.
그래서 님이 알려주신것을 적용하니 잘 되는군요.
위 소스에서
$item[$i][title] = str_replace("'","'",$item[$i][title]);
이 한줄만 추가했읍니다.
고맙읍니다. ^&^
크롬에서는 나타나지 않던 에러인데,
익스7에서 나타나더군요.
그래서 님이 알려주신것을 적용하니 잘 되는군요.
위 소스에서
$item[$i][title] = str_replace("'","'",$item[$i][title]);
이 한줄만 추가했읍니다.
고맙읍니다. ^&^
저역시 ' 라고 나오는대 어떻게 처리 하셨나요.?
잘 사용하겠습니다. ^^
무위님 답변 감사 합니다.
좋은 자료 감사합니다^^
제가 찾던 자료입니다~
근데 왜 뉴스의 내용이 안나올까요 ㅠㅠ?
설치하신분중에서 아시는분 있으시면 가르쳐주세요 ㅠㅠ;
근데 왜 뉴스의 내용이 안나올까요 ㅠㅠ?
설치하신분중에서 아시는분 있으시면 가르쳐주세요 ㅠㅠ;
뉴스내용이 나오지 않습니다.
뉴스내용이.....
/lib/mw.cache.lib.php
/lib/mw.file.lib.php
이파일 넣으면 보이내요
/lib/mw.cache.lib.php
/lib/mw.file.lib.php
이파일 넣으면 보이내요
잘 쓸게요...
2011.02.15 배추빌더 적용.. 탭 뉴스 사용법
구글 RSS 뉴스 플러그인
작동잘돼고 너무좋습니다.
감사합니다.
감사합니다.
구글 RSS 뉴스 플러그인
감사합니다~
뉴스제목중 ' 이라고 나오는 부분은 어찌 처리해야하는지 궁금합니다.
위방법처럼햇으나 되지 않아요 ㅠㅠ
위방법처럼햇으나 되지 않아요 ㅠㅠ
ㅋㅅ합니다.
추천합니다.
사이트에 뉴스를 달자