link 1, link 2  Ʃ, vimeo url ֱ

Ҵ   
   ȸ 10869   õ 0     õ 0    

skin/board/boot/view.skin.php에서 링크 출력 부분을 아래처럼 함수로 바꿉니다

 

        // 링크
        $cnt = 0;
        for ($i=1; $i<=$g4[link_count]; $i++) {
            if ($view[link][$i]) {
                $cnt++;
                echo link_view($view[link_href][$i], $view[link][$i], $view[link_hit][$i]);
            }
        }

 

lib/b4.lib.php에 link_view 함수를 추가 합니다. 여기에 짤방처리부터 이런저런거 추가하면 됩니다.

 

// link를 파싱하여 보여줍니다
function link_view($link_href, $link, $link_hit, $link_len=70) {

    global $g4;

    // parse youtube video id using preg_match
    // http://stackoverflow.com/questions/2936467/parse-youtube-video-id-using-preg-match
    if (preg_match('%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $link, $match)) {
        $video_id = strip_tags($match[1]);
        $result = "<iframe width='560' height='315' src='https://www.youtube.com/embed/". $video_id . "' frameborder='0' allowfullscreen></iframe></br>";
        return $result;
    // parse vimeo
    // https://github.com/lingtalfi/video-ids-and-thumbnails/blob/master/function.video.php
    } else if (preg_match('#(?:https?://)?(?:www.)?(?:player.)?vimeo.com/(?:[a-z]*/)*([0-9]{6,11})[?]?.*#', $link, $match)) {
        $video_id = strip_tags($match[1]);
        $result = '<iframe src="https://player.vimeo.com/video/' . $video_id . '?color=ffffff&title=0&byline=0&portrait=0" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></br>';
        return $result;
    } else {
        // 표시되는 링크의 길이가 너무 길면 줄여야 함
        $link = cut_str($link, $link_len);
        return "<a href='$link_href' target=_blank>{$link} ($link_hit)</a></BR>";
    }
}

- opencode.co.kr -
ȸ 2015-12
Ҵ Ϳ

        // ũ
        $cnt = 0;
        for ($i=1; $i<=$g4[link_count]; $i++) {
            if ($view[link][$i]) {
                $cnt++;
                $link = cut_str($view[link][$i], 70);
                echo "<a href='{$view[link_href][$i]}' target=_blank style='color:#000;'><i class='fa fa-external-link'></i> {$link} ({$view[link_hit][$i]})</a>";
            }
        }

䷸ µ  .. .
ũ װ ϴ ڵ尡 ٲ .. ^^
ȸ 2015-12
Ҵ 2015-12
̰ Լ ٸ ˴ϴ.

                $link = cut_str($view[link][$i], 70);
                echo "<a href='{$view[link_href][$i]}' target=_blank style='color:#000;'><i class='fa fa-external-link'></i> {$link} ({$view[link_hit][$i]})</a>";

LG ϰ ũ ɴϴ.
̺κ Ʈ 缭 Լ ּž ؿ.
col-lg-12 col-lg-8 ٲ㺸ø  ƽð ̴ϴ.
min 1̰ max 12 Դϴ.

      $result = "<div class='row'><div class='col-lg-12 col-md-12 col-sm-12 col-xs-12 embed-responsive embed-responsive-16by9'><iframe class='embed-responsive-item' src='http://videofarm.daum.net/controller/video/viewer/Video.html?vid=" . $video_id . "&play_loc=undefined' frameborder='0' scrolling='no' ></iframe></div></div></BR>";
ȸ 2015-12
׷ϱ ũ ũǸ... ڵ Ǿ Ǿ ϴµ

ֽ ڵ ̾ƴϰ Խù ũ κп ...

̻ ʽϴ.

׸ ũ#1 ũǰ  ũ#2 Ϲ url ũǸ Ʒ ũ ̷ ɴϴ.

̰ ũ ɵ Ϲ ũ ũ ;ϴ κп ;ϰ ũ ũ ɵ ; ϴ.
     
Ҵ 2015-12
ȿ ũ ִ Ȱ̶ froala Դϴ.
⸦ froala ٲٴ ͵ ׷ ̱.
cheditor ô ϴ.

̻޴ϴ. -.-...
Ͽ ϱ.
Ͻô ž ؿ.
2-3Ŀ ̶ ̴ϴ.

غø ƽð, մϴ.

ũ#1 ũǰ  ũ#2 Ϲ url ũǸ Ʒ ũ ̷ ɴϴ.
--> α׷ ٴ ڵ ؾ κ̶ DZ⿡ о. ̰Ÿ Ϸ ڵ ϴ. as ȵǿ.


Page 1/28
2012-06   24123   Ҵ
2012-07   21838   Ҵ
2015-10   107460   Ҵ
2018-06   5604   Ҵ
2016-03   9020   Ҵ
2016-03   8778   Ҵ
2016-02   9073   Ҵ
2016-02   9706   Ҵ
2016-01   9663   Ҵ
2016-01   10304   Ҵ
2016-01   9557   Ҵ
2015-12   10870   Ҵ
2015-12   9507   Ҵ
2015-12   9985   Ҵ
2015-12   14396   Ҵ
2015-12   9456   Ҵ
2015-11   11354   Ҵ
2015-10   10334   Ҵ
2015-10   9709   Ҵ
2015-10   9357   Ҵ
2015-10   9171   Ҵ
2015-10   11182   Ҵ
2015-10   9217   Ҵ