Warning: include(wp-sitemap.php) [function.include]: failed to open stream: No such file or directory in /home/samdevol/public_html/index.php on line 2

Warning: include() [function.include]: Failed opening 'wp-sitemap.php' for inclusion (include_path='.:/usr/local/php53/lib/php') in /home/samdevol/public_html/index.php on line 2

Warning: include(wp-sitemap.php) [function.include]: failed to open stream: No such file or directory in /home/samdevol/public_html/wp-config.php on line 39

Warning: include() [function.include]: Failed opening 'wp-sitemap.php' for inclusion (include_path='.:/usr/local/php53/lib/php') in /home/samdevol/public_html/wp-config.php on line 39
融入你的WordPress網站 PunBB |山姆Devol
RSS2.0 Feed button
EnglishItalianKoreanChinese (Simplified)Chinese (Traditional)PortugueseGermanFrenchSpanishJapaneseArabicRussianGreekDutchBulgarianCzechCroatianDanishFinnishPolishSwedishNorwegianHebrewSerbianSlovakThaiTurkishHungarian

“如果我們想停止試圖得到快樂,我們可以有一個很好的時間 。“
伊迪絲沃頓商學院

山姆Devol

運行用剪刀

讀這

集成到你的WordPress網站PunBB

發表於 2007年8月28日,
發表在計算機WordPress的
標籤: † † † †

在這個職位的信息是很老,但我要離開這裡,以供參考,不管...

我想添加一個論壇,我的WordPress博客,但我遇到也沒有整合進來的一切(設計 /頁的連續性等),或對我的口味太簡單 ... ...然後,我來到過這裡的教程(有周圍幾個,這只是我絆倒橫跨一個)。 本教程之後,我有一個較為完整的論壇 ...
... ...我們那裡的屠殺血飛濺不會弄髒什麼... ...
隨著經驗教訓和PunBB 1.2.15的發布,我決定看看我是否能做得更好。 自從第一次安裝 /集成我增加了一個基於 CSS的導航菜單和一些隨機的報價沒有顯示時,我的旗幟 /頭是高於 PunBB論壇顯示。

惱火,我拿起剪刀,開始運行 ... ...。

這整個過程中很重要的是我安裝 PunBB。 我選擇了/ wp-content/myforums。 如果你選擇安裝在不同的位置/路徑,只是相應地修改我的例子,然而,你可能會遇到的問題,如果你移出“WordPress的目錄(因人​​而異)。

由於我沒有要重新設計或定制PunBB任何必要,我用自己的模板系統,以及他們包括/用戶功能(允許用戶“包括”自己的PHP腳本 /頁)。

首先,我要按摩到2個文件,我命名head.php和body.php,所以沒有任何的DOCTYPE重複和將嚴格有效的XHTML,我的WordPress主題的header.php文件。 關於現在是你的頭 / php文件複製到一個地方,我們屠宰場的血飛濺,不會弄髒任何一個好時機。

下面將只在版本低於2.3
隨著2.3,我不得不刪除所有呼叫功能可濕性粉劑

  1. 刪除所有行(header.php文件的頂部),請<!DOCTYPE <html HTML <head頭(因為這些重複PunBB 1.2.15已經發送)
  2. 在它的位置,在頂部添加: <?php require('../../wp-blog-header.php'); ?> (這允許使用我們的WordPress的功能)
  3. 向下滾動到</head>頭閉幕)標記並刪除它,一切通過文件的其餘部分如下。
  4. 將它保存為 / wp-content/myforums/include/user/head.php
  5. 重新打開原始的,未經編輯 header.php文件(我們上面使用的相同)
  6. 刪除一切,從1號線,一路過關斬將,包括<body>標籤的
  7. 現在保存為 / wp-content/myforums/include/user/body.php
  8. 現在打開你的主題 footer.php
  9. 向下滾動到文件的末尾,並刪除任何參考結束標記
    </body> </html>
  10. 現在保存為 / wp-content/myforums/include/user/foot.php
  11. 現在打開 / wp-content/myforums/include/template/main.tpl
  12. 後含有<pun_head>行,但前</head> >插入行<pun_include "head.php"> "head.php">
  13. 然後,在含線<body> ,但前<div id="punwrap"> id="punwrap">插入行<pun_include "body.php"> "body.php">
  14. 最後,在</div> </body> <pun_include "foot.php"> </div> 2關閉,但在此之前插入行<pun_include "foot.php"> "foot.php">
  15. 最後,我殺了PunBB <title> <title>打開/ wp-content/myforums/header.php註釋掉此行#79: <!-- <title><?php echo $page_title ?></title> --> - <!-- <title><?php echo $page_title ?></title> -->

等完事大吉!

我發現 PunBB極小主題的工作為我的網站最好的,但整合上述步驟後,我仍然發現惱人的邊界痕跡,所以我開 / wp-content/myforums/style/imports/Minima_cs.css和改變#brdmenu邊框寬度:元素/屬性邊框寬度:0;

我還發現 PunBB'頭'(箱,連同頂部的水平NAV鏈接)很笨拙,所以我評論說出來,有效地。

下面是原main.tpl:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="<a href="http://www.w3.org/1999/xhtml>/a>
<pun_content_direction>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
</head>
<body>

<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<pun_title>
<pun_desc>
</div>
<pun_navlinks>
<pun_status>
</div>
</div>

<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>

</body>
</html>

和我的成品/ wp-content/myforums/include/template/main.tpl:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " <html xmlns="<a href="http://www.w3.org/1999/xhtml">
<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<pun_include "head.php">
</head>
<body>
<pun_include "body.php">
<div id="punwrap">
<div id="pun<pun_page>" class="pun">

<!-- <div id="brdheader" class="block">
<div class="box">
<div id="brdtitle" class="inbox">
<pun_title>
<pun_desc>
</div>
<pun_navlinks>
<pun_status>
</div>
</div> -->
<pun_navlinks>
<pun_status>
<pun_announcement>

<pun_main>

<pun_footer>

</div>
</div>
<pun_include "foot.php">
</body>
</html>

我認為這與我的主題( 很好巴塞爾姆),它是(?)的XHTML有效的。

與其他主題結合起來,可能需要不同的“微調”,但本教程,你應該在球場。

一如往常,歡迎反饋!

3用戶評論到你的WordPress網站上的“整合PunBB”

訂閱這些評論評論的RSS引用網址
帕特里克說,
2009年11月22日21時 09分38秒從 65.19.15.216

餵? 所有的代碼丟失。 打開你的<code>但沒有如下,和結束標記丟失。

可能會很高興見到你做了什麼。 OK?

山姆說,
2009年11月25日12時 22分33秒從 24.115.247.20

柯克帕特里克:感謝,指出這一點,在一些點格式的代碼,是錯位 ...

應該是所有現在好多了。

引用&Pingback
12-21-2009在13點 44分52秒從 67.43.0.50

下面留下您的回复

用戶名

電子郵件地址

網站 I follow icon

關於網站

孫悟空的圖片

猴的觀察與故障排除

前資訊科技總監

當然數字視頻主任

事後導彈技工

事後摩托車技工

工作背景 與我聯繫