Home 게시판 커뮤니티 Q&A 특정 페이지에만 출력하기.

2개 답변, 1 voice Last updated by Avatar of zenguyzenguy 18 years, 1 month 전
  • Avatar of zenguyzenguy
    Participant
    @zenguy
    #1239

    다른곳에 문제는 없이 잘 적용하신거구요..

    문제는 inline-ajax-comment 라는 function이 없다는 겁니다..

    inline-ajax-comment은 function이 아니라 플러그인 이름입니다. ^^;

    function_exists 의 내용값에는 사용하고자하는 function의 이름을 적어주시면 될겁니다.

    <?php if ((function_exists(ajax_comments_link)) && (is_home())) { ?>
    <?php ajax_comments_link(); ?>
    <?php ajax_comments_div(); ?>
    <?php } ?>

    ajax_comments_link function이 존재한다는것은 ajax_comments_div function도 존재한다는 것이기때문에 ajax_comments_link function이 존재하는지만 확인한것입니다.

    Avatar of zenguyzenguy
    Participant
    @zenguy
    #1240

    <img src=../../../images/tn-tiny.gif style="position:relative;vertical-align:text-bottom;top:-2px;padding:0;margin:0;">&nbsp;<?php the_post_keytags(false,"technorati",false); ?>
            <?php if ((function_exists(inline-ajax-comments)) && (is_home())) { ?>
            <?php ajax_comments_link(); ?>
            <?php ajax_comments_div(); ?>
            <?php } ?>

    이런식으로 테마 파일에 삽입하였습니다.

    허나.. 페이지에 아예 표시가 되질 않고 있습니다.

    https://kopress.kr/forums/topic.php?id=96&highlight=%C6%AF%C1%A4

    여기서 설명되어진대로 하였는데도, 계속 되질 않고 있습니다.

    inline-ajax-comments는 제대로 작동을 하는데.
    메인 페이지에만 표시하려니, 그게 잘 안되는군요.

    위의 소스대로 하면, 전체 페이지, 모두다에서 표시가 되질 않습니다.

            <?php ajax_comments_link(); ?>
            <?php ajax_comments_div(); ?>

    이렇게 쓰면, 전체 모든 페이지에서 표시가 잘 되는데 말입니다.
    혹여 답을 알고 계신분들의 답변 기다리겠습니다.

    Avatar of zenguyzenguy
    Participant
    @zenguy
    #1241

    <img src=../../../images/tn-tiny.gif style="position:relative;vertical-align:text-bottom;top:-2px;padding:0;margin:0;">&nbsp;<?php the_post_keytags(false,"technorati",false); ?>
            <?php if ((function_exists(inline-ajax-comments)) && (is_home())) { ?>
            <?php ajax_comments_link(); ?>
            <?php ajax_comments_div(); ?>
            <?php } ?>

    이런식으로 테마 파일에 삽입하였습니다.

    허나.. 페이지에 아예 표시가 되질 않고 있습니다.

    https://kopress.kr/forums/topic.php?id=96&highlight=%C6%AF%C1%A4

    여기서 설명되어진대로 하였는데도, 계속 되질 않고 있습니다.

    inline-ajax-comments는 제대로 작동을 하는데.
    메인 페이지에만 표시하려니, 그게 잘 안되는군요.

    위의 소스대로 하면, 전체 페이지, 모두다에서 표시가 되질 않습니다.

            <?php ajax_comments_link(); ?>
            <?php ajax_comments_div(); ?>

    이렇게 쓰면, 전체 모든 페이지에서 표시가 잘 되는데 말입니다.
    혹여 답을 알고 계신분들의 답변 기다리겠습니다.

3 글 보임 - 1에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.