• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic