FC เลยคนเขียน ขอบคุณครับ
ส่วนนี้ให้คุณดูโพสต์ทั้งหมดของสมาชิกท่านนี้ (เฉพาะโพสต์ในส่วนที่คุณมีสิทธิ์เข้าถึง)
เมนู แสดงโพสต์อ้างถึงจาก: wisutsak ใน 02 พฤศจิกายน 2017, 23:13:26
https://drive.google.com/file/d/0B1B3myB2JtVUUTV2ZF8xenlmNHc/view?usp=sharing
แตกไฟล์ไปวางที่ smfpath
1. swfupload/js/swfupload.js แก้ myhost ที่บรรทัดแรก
2. swfupload/api/embedupload.php แก้ $myhost ที่บรรทัดแรก
3. เปลี่ยน permission folder swfuploadapiuploads ที่ host
Themes/default/Post.template.php
ใส่โค้ดนี้ก่อนหน้า // Finally, the submit buttons.
echo '<tr>
<td></td>
<td>
<font color="red"><b>Upload Picture Support<b> </font> <b>jpg, jpeg, gif, png </b> Size 2MB<br><br>
<script type="text/javascript" src="swfupload/js/swfupload.js"></script>
<script type="text/javascript">
upic_target = document.postmodify.message;
upic_type = "bbfull";
upic_buttoncss = "color:#000000;";
</script>
</td>
</tr>';
ลองเทสดูครับ ติดบักตรงไหนแจ้งมาหรือช่วยกันแก้ แล้วส่งต่อครับ

echo ' <iframe src="https://car.auto-nkp.com/new-ad.php" width="100%"></iframe>';
<?
include ('SSI.php');
function findIMG($text){
preg_match_all('/[img].*?[/img]/i',$text,$page);
foreach($page as $value)
$src = substr($value[0],5);
$src = substr($src,0,-6);
return($src);
}
function ssi_pic($num_top = 12,$order,$board = array()){
global $db_prefix, $scripturl, $smcFunc;
$request = $smcFunc['db_query']('', '
SELECT t.id_topic,m.body,m.subject
FROM {db_prefix}messages m,{db_prefix}topics t
WHERE t.id_first_msg=m.id_msg AND t.id_board IN('. implode(',',$board) .')
ORDER BY t.'.$order.' DESC
LIMIT '.$num_top,
array(
)
);
$posts = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
{
// Build the array.
$topics[] = array(
'id' => $row['id_topic'],
'body' => $row['body'],
'subject' => $row['subject']
);
}
$smcFunc['db_free_result']($request);
foreach ($topics as $data){
$topic = "index.php?topic=".$data['id'];
$srcPic = findIMG($data['body']);
$subject = $data['subject'];
echo '<div class="boxpGal">
<div class="picpGal"><a href="'.$srcPic.'" title="คลิ๊กเพื่อดูภาพเต็ม."><img src="'.$srcPic.'" width="150" alt="" />[/url]</div><center>'.mb_substr($subject,0,20,'UTF-8').'</center>
<div class="viewAllpic"><a href="'.$topic.'" target="_blank"><font color="#0000FF">อ่านเพิ่มเติม...</font>[/url]</div>
</div>';
}
}
echo'<div class="cat_bar">
<h3 class="catbg">คู่มือการซ่อม และวายริ่งรถยนต์ ล่าสุด...</h3></div>';
echo''.ssi_pic(6,'ID_TOPIC', array(25,436,656,739)).'';
?><iframe src="https://car.auto-nkp.com/new-ad.php"></iframe>

ขอบคุณทุกท่านที่ชี้แนะแนวทางครับอ้างถึงเชค .htaccess
เชค php version
ใช้ repair_settings.php repair
อ้างถึงจาก: HostSevenPlus ใน 04 เมษายน 2019, 09:20:30
เพิ่มเติม
1. ลองเปลี่ยน php เป็น 5.6 ดูครับ
วิธีเปลี่ยน Version PHP
https://client.hostsevenplus.com/knowledgebase.php?action=displayarticle&id=144
2. ดู log error ว่า Error ว่ายังไงบ้างครับ
วิธีดู https://help.ruk-com.in.th/topic/7634/
อ้างถึงจาก: CONY ใน 16 ธันวาคม 2018, 21:31:57
Admin --> Features and Options --> Allow users to edit their displayed name เอาเครื่องหมายถูกออก