• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Show Last Post Title at Forum List

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good day.

I've been trying to edit the code so the LastPostInfo class will contain a String to hold the post's title. This is so that the Last Message column will be able to display the title of the last message.

Is there already a functionality for this?

Or do I still have to code it?

If I have to code it, supposedly I just edit the LastPostInfo class and FreeMarker will do all the wrapping processing right? I managed to edit the class, but the String title cannot be found by the script. If it existed, even if it was empty, it would return an empty string right? What happened here was that it was not able to find the String I added. I'm wondering if I missed out something, but as of now I don't have an idea... Any suggestions?

EDIT: Now that I think about it, seems that any changes I try to make do not take effect at all O_o Perhaps I'm missing out something when compiling? Because the files that I produce are of different sizes than what is available from the site...
[originally posted on jforum.net by suaveh]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The generated .class file size does not matter, as you may be using different compiler options / different compiler.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I looked in the Tomcat logs and I'm getting this while loading jforum, having edited the LastPostInfo class but not the forum_list.htm:

and when I access the page... I get this on the forum:

In the class... I just added this:

and these:

and in the forum_list.htm, I edited this:

and turned it to:

[originally posted on jforum.net by suaveh]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Managed to make it work. I was not compiling it properly... sorry for the bother...
[originally posted on jforum.net by suaveh]
 
It's just a flesh wound! Or a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic