[attachimg]805[/attachimg]
การติดตั้ง การวางโค้ดไม่เหมือนกันกับ 7.3.2 และ 7.5 rc นะครับ
PHPWind 7.5 ตัวเต็มมีการพัฒนาโค้ดใหม่ที่ไฟล์ index.htm นะครับ
วิธีติดตั้งเปิดไฟล์ index.htm ของสกินที่คุณใช้งานปัจจุบันคุณ
เช่นผมใช้สกินต้นฉบับ /template/wind/index.htm หาคัดลอกโค้ด (สำหรับ IE เท่านั้น)- <td id="fid_{$forums[fid]}" class="td1 f_one">
- <!--
- EOT;
- if($forums['logo']){print <<<EOT
- -->
- <a href="thread.php?fid=$forums[fid]"><img src="$forums[logo]" class="fl" style="margin:10px;"/></a>
- <!--
- EOT;
- }else{print <<<EOT
- -->
- <div style="width:37px;text-align:center;height:65px; background:url($imgpath/$stylepath/$forums[pic].gif) right center no-repeat; overflow:hidden;margin:0 13px 0 3px;;" class="fl"></div>
- <!--
- EOT;
- }print <<<EOT
- -->
- <div style="padding:5px 0;" class="fl">
- <h3>
- <a href="thread.php?fid=$forums[fid]" id="fn_$forums[fid]" class="fnamecolor b">$forums[name]</a>
- <!--
- EOT;
- if($db_todaypost && $forums[tpost]){print <<<EOT
- -->
- <span class="f10 s3 fn">(วันนี้:$forums[tpost])</span>
- <!--
- EOT;
- }print <<<EOT
- -->
- </h3><br />
- <span class="gray">กระทู้:$forums[topics] โพส:$forums[article]</span><br />
- <!--
- EOT;
- if($forums[au]){print <<<EOT
- -->
- <a href="$forums[ft]">$forums[t]</a><br />
- <span class="gray">by:$forums[au] <span class="f10">[$forums[newtitle]]</span>
- <!--
- EOT;
- }if($forums[pic]=='lock'){print <<<EOT
- -->
- อนุญาติให้คุณเข้าชมฟอรั่มนี้
- <!--
- EOT;
- }print <<<EOT
- -->
- </span>
- </div>
- </td>
|
แทนด้วย
คัดลอกโค้ด (สำหรับ IE เท่านั้น)- <td id="fid_{$forums[fid]}" class="td1 f_one" style="padding:0" title="$forums[descrip]">
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr style="line-height:180%"><td style="width:10px;">
- </td><td valign="top">
- <div class="fl"><h3><a href="thread.php?fid=$forums[fid]" id="fn_$forums[fid]" class="fnamecolor b">$forums[name]</a></h3></div>
- <div class="fr" style="overflow: hidden; height:20px;padding:10px 2px 0px 10px;"><img src="images/top5/dateline_url.gif" title="วันนี้:$forums[tpost]" /> <img src="images/top5/moderator.gif" title="ผู้ดูแล" onclick="coll_$forums[fid].style.display=coll_$forums[fid].style.display=='none'?'':'none';" style="cursor:pointer" /> <img src="images/top5/dateline.gif" title="กระทู้ : $forums[topics] โพส : $forums[article]" />
- <span id="coll_$forums[fid]" style="display:none">$forums[admin]</span></div>
- <!--
- EOT;
- $fid=$forums[fid];
- $query = $db->query("select fid,tid,subject,postdate FROM pw_threads WHERE fid=$fid ORDER BY postdate DESC limit 0,5");
- while($tgdata = $db->fetch_array($query)){$tglist[] = $tgdata;}
- print <<<EOT
- -->
- <ul style="background-image: url(images/top5/listbg_li.gif); padding:1px 2px 0px 18px; list-style-type: none; line-height: 20px; clear: both; margin:8px 0;">
- <!--
- EOT;
- foreach($tglist as $key=>$tgdata){
- $pdate = get_date($tgdata[postdate],'Y-m-d');
- print <<<EOT
- -->
- <div style="overflow: hidden; height:20px; width:100%"><small style="float:right; color:#9C8B88; margin: 0 0 0 5px">$pdate</small><a href="read.php?tid=$tgdata[tid]" title="$tgdata[subject]" target="_blank">$tgdata[subject]</a></div>
- <!--
- EOT;
- }unset($tglist);
- print <<<EOT
- -->
- </ul>
- </td></tr></table>
|
ดาวน์โหลดไฟล์และอัพโหลดไปวางที่ตำแหน่ง
ผมแถมไฟล์ index.htm ของสกิน wind มาให้ด้วย ใครที่ใช้สกินต้นฉบับอยู่แล้วก็แค่อัพโหลดไปวางทับได้เลยไม่ต้องแก้ไขตามด้านบน กรณีที่คุณใช้สกินอื่น คุณต้องแก้ไขไฟล์ index.htm เองนะ จะเอาไฟล์ index.htm ของสกิน wind ไปวางทับไม่ได้นะครับ สกินคุณเพี้ยนมาห้ามถามเด็ดขาด
[attach]806[/attach]
แถมรูปลิสให้ 3 รูปเลือกใช้ตามใจคุณ
ก่อนอื่นต้องเข้าไปตั้งค่าฟอรั่มหลักให้เป็นแนวนอน 3 คอลัมนะครับ ตามรูป
ฟอรั่มหลักนะลูกเพ่ มีสีเหลี่ยมเขียวๆ ไปตั้งฟอรั่มลองมันไม่แสดงแล้วห้ามถามนะลูกเพ่ (โดน)
หน้าแรก » ฟอรั่ม » ตั้งค่าฟอรั่ม
1.

2.

ขอย้ำว่าต้อง 3 คอลัมขึ้นไปนะครับ ถ้า 2 คอลัม จะบัคนะ
รูปภาพ: 1.gif