addon ForoAgency-ColoredUsername คือ addon ที่จะทำให้ชื่อของสมาชิกมีสีตามกลุ่มที่ตั้งไว้ใน user-groups นั้นๆ
bug ที่เจอคือมันจะไปทำให้ addon บางตัวไม่ทำงาน และ สีกลุ่มสมาชิกไม่แสดงใน Forum List - Category latest post
จากภาพ Forum List - Category latest post จะแสดงแค่ในส่วนที่เป็น Furum แต่ส่วน Category จะไม่แสดง
การแก้ไขทำได้โดยไปที่ /admin.php?template-modifications/&type=public เลื่อนลงหา [ForoAgency] Colored Username Everywhere
ที่หัวข้อ node_list_category Forum List - Category latest post ให้แกัไขตามนี้
ส่วน Fine :
แก้เป็น
และ Replace :
แก้เป็น
ส่วน bug ที่ทำให้ addon บางตัวไม่ทำงานแก้ไขโดยไปที่ PAGE_CONTAINER Username color member find
ส่วน Replace :
แก้เป็น
เรียบร้อยครับ
bug ที่เจอคือมันจะไปทำให้ addon บางตัวไม่ทำงาน และ สีกลุ่มสมาชิกไม่แสดงใน Forum List - Category latest post
จากภาพ Forum List - Category latest post จะแสดงแค่ในส่วนที่เป็น Furum แต่ส่วน Category จะไม่แสดง
การแก้ไขทำได้โดยไปที่ /admin.php?template-modifications/&type=public เลื่อนลงหา [ForoAgency] Colored Username Everywhere
ที่หัวข้อ node_list_category Forum List - Category latest post ให้แกัไขตามนี้
ส่วน Fine :
HTML:
<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" />
HTML:
<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" defaultname="{$extras.last_post_username}" /></li>
HTML:
<xf:if is="{$xf.options.fa_cue_locations.fl_latestCategoryPost}">
<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" rich="true" /></li>
<xf:else />
$0
</xf:if>
HTML:
<xf:if is="{$xf.options.fa_cue_locations.fl_latestCategoryPost}">
<li class="node-extra-user"><xf:username user="{$extras.LastPostUser}" defaultname="{$extras.last_post_username}" rich="true" /></li>
<xf:else />
$0
</xf:if>
ส่วน bug ที่ทำให้ addon บางตัวไม่ทำงานแก้ไขโดยไปที่ PAGE_CONTAINER Username color member find
ส่วน Replace :
HTML:
<xf:js src="foroagency/coloredusername/index.js" />
HTML:
<xf:js src="foroagency/coloredusername/index.js" />
$0
เรียบร้อยครับ

ไฟล์แนบ
แก้ไขล่าสุด: