SMF Thailand.
Other Forums Support => General Thai Support vBulletin => ข้อความที่เริ่มโดย: BlackCell ที่ 26/07/06, 21:16:13
-
ทำ Latest Active Threads แล้วไม่โชว์กระทู้ครับ
ผมได้ทำตามเว็ป http://www.vbulletin.com/forum/showthread.php?t=158887 (http://www.vbulletin.com/forum/showthread.php?t=158887)
ทุกขั้นตอนแล้วครับ แต่กระทู้ไม่โชว์เลย
แต่มีหัวข้อ Latest Active Threads ขึ้นมาให้
คลิ๊กเข้าไปแล้วมีโชว์กระทู้ให้เห็นครับ แต่ไม่โชว์กระทู้ที่หน้าแรก
ช่วยหน่อยนะครับ ขอบคุณครับ
-
ต้องตั้งค่าให้บุคคลทั่วไป อ่านหัวข้อได้
ถ้าตั้งค่าให้สมาชิกใช้งานได้อย่างเดียว Latest Active Threads จะไม่แสดงผล
-
ขอบคุณมากๆ ครับคุณเก่ง ;D
-
เข้าไป อ่านกี่ที ก็ งง ใครก็ ได้ ช่วยสอน ผม แบบ ละเอียด ที ครับ
ขอบคุณล่วงหน้าครับ
-
Installation Instructions
Step 1: Upload the .xml file to the Product Manager
Step 2: Modify the FORUMHOME template
Find:
<td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
</tr>
</tbody>
</if>
Add below:
<!-- latest threads -->
<if condition="$show['latestthreads']">
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_latestthreads')"><img id="collapseimg_forumhome_latestthreads" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_latestthreads].gif" alt="" border="0" /></a>
$vbphrase[latest_threads]
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_latestthreads" style="$vbcollapse[collapseobj_forumhome_latestthreads]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[latest_threads]" /></td>
<td class="alt1"><div class="smallfont">$threadbits</div></td>
</tr>
</tbody>
</if>
<!-- /latest threads -->
Step 3: Click INSTALL
Credits
NTLDR - For allowing me to port his vB3 hack of this
[ไฟล์แนบถูกลบโดยผู้ดำเนินการ]
-
ขอบคุณค้าบบบบ อิอิ ทำได้ แว้ว...
-
ว่า แต่ จะทำ ยังไงให้มันโชว์หัวข้อได้ มาก กว่า 5 หัวข้อ อ่ะคับ
-
แก้ในไฟล์ xml ครับ
$getthreads = $db->query_read("
## GET LATEST THREADS ##
SELECT thread.*,thread.iconid AS threadiconid $previewfield
FROM ".TABLE_PREFIX."thread AS thread
LEFT JOIN ".TABLE_PREFIX."deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
$previewjoin
WHERE open <> 10
AND forumid NOT IN (0$limitfids)
AND thread.visible = '1'
AND deletionlog.primaryid IS NULL
ORDER BY lastpost
DESC LIMIT 5"); >>>>> [color=red]แก้ตามต้องการครับ[/color]
-
อ่อ กระจ่าง ขอบคุณค้าบบบบบบ อิอิ
-
ขอบคุณมากๆ ครับคุณเก่ง