• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

how to get a forum's moderator?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We want to display the moderator name right after each forum's name, but fail to find how.

Our current version is 2.1.4.

Please help!

Gary
gchang1020@hotmail.com
[originally posted on jforum.net by aeolus727]
 
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've done this before for 2.1.5 version for PostgreSQL 7.4
Just follow the steps:
1. Modify WEB-INF/config/database/genericgeneric_queries.sql, add the following query to the ForumModel section.


2. Modify src/net/jforum/repository/ForumRepository.java, and add two methods for getModeratorList()


Modify reloadForum() to handle the cache


3. Modify src/net/jforum/entities/Forum.java


4. Modify src/net/jforum/dao/ForumDAO.java, add the following declaration


5. Modify src/net/jforum/dao/generic/GenericForumDAO.java, add an implementation of getModeratorList()


6. Modify templates/default/forum_list.htm, find this

modify it to look like the following:


7. Modify templates/default/forum_show.htm, find this

modify it to look like the following:


That's all, enjoy it.
[originally posted on jforum.net by andowson]
 
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
thank, solved it.
[originally posted on jforum.net by Anonymous]
 
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 checked in fixes killed my 2.15 copy refer to bugs forum for details

[originally posted on jforum.net by mqjoe1]
 
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic