[Logo] JForum - Powering Communities
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


JForum 2.6.2, which fixes a few bugs in 2.6.0, has been released. Download it from here
Code problem on trunk with template mobile/user_posts_show.htm RSS feed
Forum Index » Developer Forum
Author Message
davetcc


Joined: 2019/3/1
Messages: 4
Offline
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


Joined: 2013/2/21
Messages: 258
Offline
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
[WWW]
 
Forum Index » Developer Forum
Go to:   
Mobile view
Powered by JForum 2.6.0 © 2019 JForum Team • Maintained by Andowson Chang and Ulf Dittmer
Website Security Test