[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Code problem on trunk with template mobile/user_posts_show.htm RSS feed
討論區首頁 » Developer Forum
發表人 內容
davetcc


註冊時間: 2019/3/1
文章: 4
離線
Hi there,

I'm not sure if this belongs in the development section, but certainly did not seem to fit in the other cataegories. Firstly, thanks for this forum, I've got it up and running pretty quickly at thecoderscorner.com.

However, I noticed a bug in the default/mobile/user_posts_show.htm template. It refers to the post.time field that is not available and throws an exception on page rendering.

I changed the template as follows and it appears to work correctly now.

Removed:

${I18n.getMessage("ModerationLog.date")}: ${post.time}


Added:

<div class="postbody">${post.text}</div>


The change seems very minor and probably not worth a patch, but if you prefer a patch I will provide it as a patch.
[WWW] [Twitter]
udittmer


註冊時間: 2013/2/21
文章: 422
離線
Thanks for alerting us to that. It should read "${post.formattedTime}" rather than "${post.time}". That has actually led me to a couple more issues with the handling of relative dates - I just checked in a patch for those.

To keep the mobile view light, the post text isn't included on purpose.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer