• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want add a new function

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi:
I want to add a new function that list the hotted Topics like recent topic s. Is Ok? Could you give any instruction ?
[originally posted on jforum.net by chopin]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Humm not a really simple question ...

I think you want to add this in UserAction.java

Try to to this :


[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
I will try it.
If I have any question on the development, I will turn to you. Is oK?
[originally posted on jforum.net by chopin]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No pb man, but maybe I haven't all answers 8)
I'm just playing with JForum for few months and I'm not a "real"expert in java.
[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have successfully add the hot_topics_list function
[originally posted on jforum.net by chopin]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to know that you have successfully add your function.
Maybe you could provide here some implementation to help others 8)
[originally posted on jforum.net by redhand]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would really appreciate if someone had a working implementation of this "hottest topics"-function? That's exactly what I need.

:roll:
[originally posted on jforum.net by Akumite]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just finished implementing hottest topics from recent topics.
1. add the SQL to WEB-INF/config/database/generic/generic_queries.sql below TopicModel.selectRecentTopicsByLimit

2.copy templates/default/recent_thread.htm to templates/default/hottest_thread.htm and change all "recent" to "hottest"

3.modify WEB-INF/config/urlPattern.properties (add them just below where you find a recentTopics-like)


4.modify WEB-INF/config/templatesMapping.properties(add them just below where you find a recent-like)


5.modify WEB-INF/config/modulesMapping.properties(add it just below where you find a recentTopics-like)


6.copy src/net/jforum/view/forum/RecentTopicsAction.java to src/net/jforum/view/forum/HottestTopicsAction.java and replace all "recent" to "hottest", all "Recent" to "Hottest", all "RECENT" to "HOTTEST".

7. modifiy src/net/jforum/util/preferences/TemplateKeys.java(add them just below where you find a recent-like)


8. modify src/net/jforum/util/preferences/ConfigKeys.java(add it just below where you find a recent-like)


9. modify TopicRepository.java(add them just below where you find a recent-like)




10. modify src/net/jforum/dao/TopicDAO.java(add them just below where you find a recent-like)


11. modify src/net/jforum/dao/generic/GenericTopicDAO.java(add them just below where you find a recent-like)


12. add topic.hottest to WEB-INF/config/SystemGlobals.properties and WEB-INF/config/jforum-custom.conf


13. add ForumBase.hottestTopics = Hottest Topics to WEB-INF/config/languages/en_US.properties and your locale language.

14. modify templates/default/header.htm add a link to hottestTopics (just copy the recentTopics one and modify it)

15. rebuild and restart Tomcat
I attached 3 files, the rest is simple for you to finish it. If you don't know how to complete them. Please visit my site.
http://www.andowson.com/posts/list/50.page
[originally posted on jforum.net by andowson]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great.

Please fill a Jira Task for that.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will this be included in new versions of JForum?

If not, and these steps are completed, will the functionality still be available after upgrade to newer versions of JForum?
[originally posted on jforum.net by frankern]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic