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

phpBB Installation & Usage Support
phpBB 2 安裝於各類型作業平台之問題討論;外掛問題,請到相關版面依發問格式發表!
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

版面規則
本區是討論關於 phpBB 2.0.X 架設安裝上的問題,只要有安裝任何外掛,請到外掛討論相關版面按照公告格式發表。
(發表文章請按照公告格式發表,違者砍文)
主題已鎖定
laocung
星球公民
星球公民
文章: 62
註冊時間: 2005-01-08 01:07
來自: 桃園縣

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

文章 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. 謝謝 !
最後由 laocung 於 2005-08-30 14:33 編輯,總共編輯了 1 次。
kp3011
竹貓忠實會員
竹貓忠實會員
文章: 384
註冊時間: 2004-05-15 21:16
來自: HKG

文章 kp3011 »

彈 出 來 那 頁 需 要 用 simple header 方 式 include page_header.php

做 法 :

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

前 加 上

$gen_simple_header = TRUE;
●架設主機作業系統:CentOS 4.7
●您的 phpBB2 版本:phpBB 3.0.4
●您的 domain(網域名稱):www.hkbf.org | forum.hkbrda.org
laocung
星球公民
星球公民
文章: 62
註冊時間: 2005-01-08 01:07
來自: 桃園縣

文章 laocung »

太感謝了 ! 感恩 ! :-D
主題已鎖定

回到「phpBB 2 安裝與使用」