아랫글의 수정과 삭제가 보이질 않아 다시 올립니다 - 팝업건 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

아랫글의 수정과 삭제가 보이질 않아 다시 올립니다 - 팝업건 정보

아랫글의 수정과 삭제가 보이질 않아 다시 올립니다 - 팝업건

본문

메인 페이지에 팝업창을 띄워야 하는데 가르쳐 주시길 부탁드립니다.,
팝업창을 띄워야 할 이미지 소스는 "http://www.skj.or.kr/bbs/bi/magnificat.jpg" 이고, 사이즈는 650x 670 입니다.

소스 맨아래에 popup에 대해서 이처럼 있는데 어찌해야 하는지 모르겠어요.
include_once "$g4[path]/lib/popup.lib.php";
include_once("./html/include/subTail.php");?>

이미지로 팝업창을 띄우게 아래 소스를 수정해 주시면 감사하겠습니다.
메인페이지 주소는 http://www.skj.or.kr/index.php 이고, 소스는 아래에 복사했습니다.
꼭 부탁드립니다.


<?
$menuNum = "index";
include_once("./html/include/subHead.php");
?><body onLoad="MM_preloadImages('html/images/images01/news_over_03.gif','html/images/images01/news_over_04.gif','html/images/images01/news_over_05.gif','html/images/main_news_01_on.gif','html/images/main_news_02_on.gif','html/images/main_news_03_on.gif','html/images/main_news_04_on.gif','html/images/main_news_05_on.gif')">
<table width="958" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <!--ㅡ로그인-->
    <td height="209" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="210" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="276"><?=outlogin("basic_skj")?></td>
              </tr>
              <tr>
                <td height="1" align="left" valign="top"></td>
              </tr>
              <tr>
                <td width="276" height="109" align="left" valign="top" background="html/images/main_today_bg.gif" ><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="80"><?=latest("main_today","06_01",1,120)?></td>
                    </tr>
                    <tr>
                      <td height="25" align="right" style="padding:0 5px 0 0"><a href="html/06/01.php"><img src="html/images/main_today_more.gif" width="43" height="15" border="0" /></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
          <td width="1"></td>
          <td width="681" height="209" align="left" valign="top"><?=latest("main_onetap_v2", "main_banner", 1, 10);?></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="958" height="1"></td>
        </tr>
        <tr>
          <!--미사시간-->
          <td height="170" align="left" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="276" height="254" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="276" height="169" align="left" valign="top" bgcolor="#FFFFFF"><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="276" height="36"><img src="html/images/main_left_notice.gif" width="77" height="27" /></td>
                          </tr>
                          <tr>
                            <td height="134" valign="top" style="padding:2px 0 0 17px; border-top:1px solid #DDDDDD"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td style="padding:5px 0 5px 0;">주일미사</td>
                                  <td style="padding:5px 0 5px 0;">오전6시,9시(중등부)<br>
                                    11시 30분(교중), 오후 6시(청년)</td>
                                </tr>
                                <tr>
                                  <td style="padding:5px 0 5px 0; border-top:1px solid #DDDDDD">토요특전미사</td>
                                  <td style="padding:5px 0 5px 0; border-top:1px solid #DDDDDD">오후4시(어린이),
                                    오후7시</td>
                                </tr>
                                <tr>
                                  <td style="padding:5px 0 5px 0; border-top:1px solid #DDDDDD">평일미사</td>
                                  <td style="padding:5px 0 5px 0; border-top:1px solid #DDDDDD">오전
                                    6시 월, 수,목,금,토<br>
                                    오전10시수, 금<br>
                                    오후 7시 화,목 </td>
                                </tr>
                              </table></td>
                          </tr>
                        </table></td>
                    </tr>
                    <tr>
                      <td style="padding:1px 0 0 0"><a href="html/02/01.php"><img src="html/images/main_left02.gif" width="276" height="83" border="0" /></a></td>
                    </tr>
                  </table></td>
                <td valign="top" bgcolor="#FFFFFF" style="border-right:1px solid #DDDDDD; border-left:1px solid #DDDDDD"><? include "$home_path/include/mboard.php";?></td>
                <!--예비자초대석-->
                <td width="276" height="254" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td height="86"><a href="http://skj.or.kr/bbs/bbs/board.php?bo_table=06_03"><img src="html/images/main_banner01.gif" width="280" height="86" border="0" /></a></td>
                    </tr>
                    <tr>
                      <td height="85"><a href="/html/06/02.php"><img src="html/images/main_banner02.gif" width="280" height="85" border="0"/></a></td>
                    </tr>
                    <tr>
                      <td height="83"><a href="/html/03/02.php#a20"><img src="html/images/main_banner03.gif" width="280" height="83" border="0" /></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td style="padding:0 0 2px 0"><table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="276" height="180" align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><a href="http://skj.or.kr/bbs/bbs/board.php?bo_table=08_07"><img src="html/images/main_left03.gif" width="276" height="81" border="0" /></a></td>
                    </tr>
                    <tr>
                      <td><a href="http://skj.familyds.org:7000/" target="_blank"><img src="html/images/main_left04.gif" width="276" height="100" border="0" /></a></td>
                    </tr>
                  </table></td>
                <!--갤러리-->
                <td width="402"><script>doc_write('<embed src="<?=$home_path?>/fla/gallery.swf" width="402" height="181" wmode="transparent"></embed>');</script></td>
                <td><table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><a href="html/06/05.php"><img src="html/images/main_banner04.gif" width="280" height="81" border="0" /></a></td>
                    </tr>
                    <tr>
                      <td><a href="javascript:openWin2('/ebook_40th/ebook.htm');"><img src="html/images/main_banner05.gif" width="280" height="100" border="0" /></a></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>

          <td bgcolor="#FFFFFF" style="border:1px solid #F2F2F2"><? include_once("./html/include/copy_sitemap.php");?></td>
        </tr>
      </table></td>
  </tr>
</table>
<?
include_once "$g4[path]/lib/popup.lib.php";
include_once("./html/include/subTail.php");?>
  • 복사

댓글 전체

include_once "$g4[path]/lib/popup.lib.php";  이게 포함되어 있는 걸 보면
제 생각에 팝업게시용 게시판이 따로 있지 싶네요.
관리자 페이지 로긴해서 잘 찾아보세요.

popup.lib.php 를 열어보시면 function에 호출하는 방법이 있을거에요.

메인페이지 (index.php 이신가요) 에
<? echo popup("스킨명","게시판명"); ?> 머 이런식으로요. 이건 예시입니다.
lib/popup.lib.php 를 열어보세요. 그럼 호출방법을 알 수 있습니다.
팝업관리등록을 찾았습니다.
팝업표현경로을 어떻게 해야 하는지여
이미지를 메인페이지에 팝업창으로 띄우려하는데
이미지소스 "http://www.skj.or.kr/bbs/bi/magnificat.jpg"를 어디다 써야하는지여
또 부틱드립니다.
lib/popup.lib.php을 열었는데도 모르겠어요.
어떻게 해야 하는지여 밤늦게 죄송합니다.

<?
/* http://topschool.co.kr */
// 제작 : 정진호(topschool)
// 제작일 : 2008.08.10  //
// 팝업창 관리 라이브러리  //
// 해당 스킨은 수정후        //
// 재배포 하실수없습니다. //
// 자신이 제작하는 사이트를 위해서만 사용하세요 //

if (!defined('_GNUBOARD_')) exit;

function get_popup_contents($content){
global $zindex, $rs;
$content = str_replace("{zindex}", $zindex, $content);
$content = str_replace("{title}", $rs[po_subject], $content);
$content = str_replace("{content}", $rs[po_content], $content);
$content = str_replace("{expirehours}", $rs[po_expirehours], $content);
$content = str_replace("{id}", $rs[po_id], $content);
$content = str_replace("{po_left}", $rs[po_left], $content);
$content = str_replace("{po_top}", $rs[po_top], $content);
$content = str_replace("{po_width}", $rs[po_width], $content);
$content = str_replace("{po_height}", $rs[po_height], $content);

if($rs[po_scrollbar] == "1"){
$content = str_replace("{overflow}", "auto", $content);
}else{
$content = str_replace("{overflow}", "hidden", $content);
}
return $content;

}


// 팝업창
$zindex = 100;
$popcnt = 1;
$jscnt = 1;
$sql = "select * from $g4[popup_table] where po_start_date < '$g4[time_ymdhis]' and po_end_date > '$g4[time_ymdhis]' and po_openchk = '1'";
$result = sql_query($sql);
if ($result) {
while($rs = sql_fetch_array($result)) {
if ( ( $rs[po_dir] == $_SERVER[PHP_SELF] || !$rs[po_dir] || ($bo_table == $rs[po_dir] && strstr($_SERVER[PHP_SELF],"/bbs/board.php")) ) && !strstr($_SERVER[PHP_SELF],"/viewpop.skin.php") ) {
if($jscnt == 1){
echo "<script src=\"{$g4[path]}/skin/popup/{$rs[po_skin]}/popup_control.js\"></script>";
$jscnt++;
}
if (trim($_COOKIE["it_ck_pop_".$rs[po_id]]) != "done") {
$popup_skin_path = "$g4[path]/skin/popup/$rs[po_skin]";
if($rs[po_popstyle] == "1"){
ob_start("get_popup_contents");
include("$popup_skin_path/viewlayer.skin.php");
ob_end_flush();
}else{
echo "<script>\n";
if($popcnt == 1){
echo "function popup(url,scroll,po_left,po_top,po_width,po_height,popname) {\n";
if($rs[po_leftcenter])
echo "po_left = (screen.width / 2) + po_left;";
if($rs[po_topcenter])
echo "po_top = (screen.height / 2) + po_top;";
echo "var settings = 'left='+po_left+','\n";
echo "settings += 'top='+po_top+','\n";
echo "settings += 'width='+po_width+','\n";
echo "settings += 'height='+po_height+','\n";
echo "settings += 'scrollbars='+scroll+','\n";
echo "window.open(url,popname,settings);";
echo "\n}\n";
$popcnt++;
}
echo "popup(\"$popup_skin_path/viewpop.skin.php?po_id=$rs[po_id]\",$rs[po_scrollbar],$rs[po_left],$rs[po_top],$rs[po_width],$rs[po_height],\"pop{$zindex}\");\n";
echo "</script>";
}
$zindex++;
}
}
}
}

?>
보내주신 소스대로 했더니 팝업창이 왼쪽으로 빠짝 붙어서 쪼끔 일부만 보여요.
왼쪽 여백을 줘야 하는 거 같은데
아래소스에서
  var leftmargin = 200; //왼쪽여백
을 바꿔야 하는 건가요

숫자를 늘여봤는데 변함이 없어요.
다시 또 부탁드립니다. 글구 너무노무 감사합니다.

<!--start pop-->
<div id=noticelayer style='position:absolute; left:-630px; top:130px; z-index:500;' >
    <table width=650 height=670>
    <td>
        <table width=100% height=100% cellpadding="0" cellspacing="0">
        <tr><td align=center><img src="/bbs/bi/magnificat.jpg" width="650" height="670" border="0"></td>
        </tr>
        <tr><td align=center valign=bottom bgcolor="#FFFFFF"><a href="javascript:document.all.noticelayer.style.visibility='hidden';setCookie( 'nlayer', 'done' , 1);">오늘은 창을 열지 않음</a></td>
        </tr>
        </table>
    </td>
    </table>
</div>
<SCRIPT LANGUAGE="JavaScript">
    moveX = -630;
    var timerID;
    var leftmargin = 200; //왼쪽여백
    function showLayerPopup() {
        clearTimeout(timerID);
        timerID = setTimeout("showLayerPopup()",25);
        if (moveX < -10) {
            moveX = moveX*0.93;
            document.all.noticelayer.style.pixelLeft = moveX+ leftmargin;
        } else {
            clearTimeout(timerID);
            timerID = setInterval('hideLayerPopup()',20000); //들어갈 시간 지정 3000=3초
        }
    }
    function hideLayerPopup() {
        clearTimeout(timerID);
        timerID = setTimeout("hideLayerPopup()",25);
        if (moveX > -630) {
            moveX = moveX-10;
            document.all.noticelayer.style.pixelLeft = moveX+30;
        } else clearInterval(timerID);
    }
if ( getCookie( "nlayer" ) != "done" ) timerID = setInterval('showLayerPopup()',600);
</SCRIPT>
<!--end pop-->
© SIRSOFT
현재 페이지 제일 처음으로