1 頁 (共 1 頁)

[問題] 怎樣才不會有 Head 頁面 (已解決)

發表於 : 2005-08-30 12:55
laocung
我想利用一個在overall_header.tpl,裡頭的 Javascript 函數來開視窗顯示某某.tpl內容,
函數例如下面這樣( Activity Mod Plus 的) :

代碼: 選擇全部

function Trophy_Popup(mypage,myname,w,h,scroll)
{
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
  win = window.open(mypage,myname,settings);
}
雖然目的可以達到開視窗執行, 但是它卻包含了 論壇的Head, 請問要怎樣去修改才能讓它出來的.tpl內容不帶head. 謝謝 !

發表於 : 2005-08-30 14:06
kp3011
彈 出 來 那 頁 需 要 用 simple header 方 式 include page_header.php

做 法 :

在\r
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

前 加 上

$gen_simple_header = TRUE;

發表於 : 2005-08-30 14:33
laocung
太感謝了 ! 感恩 ! :-D