| Author |
I want add a new function
|
Migrated From Jforum.net
Ranch Hand
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
I have successfully add the hot_topics_list function [originally posted on jforum.net by chopin]
|
 |
Migrated From Jforum.net
Ranch Hand
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
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
Joined: Apr 22, 2012
Posts: 17424
|
|
Great.
Please fill a Jira Task for that.
Rafael [originally posted on jforum.net by Rafael Steil]
|
 |
Migrated From Jforum.net
Ranch Hand
Joined: Apr 22, 2012
Posts: 17424
|
|
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: jrebel
|
|
subject: I want add a new function
|
|
|