This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add a new forum

 
Michael Samir
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I downloaded and installed JForum 2.1.9, and it's working, but I don't know how to add a new Forum, I cannot find a screen for that also when I added manually in DB, I cannot find it, even after restart the server
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. Forums can be added via "Admin Control Panel", a link to which is at the bottom of each page if you're logged in with an admin account. I've never tried to add forums via direct DB manipulation, but I would imagine that the information goes into more than one table; so it's not quite as easy as it may look at first.

You may want to consider this newer branch of JForum, which has lots of improvements over the defunct 2.1.9 version. (In the interest of full disclosure, I'm a committer on that branch.)
 
robert crowther
Ranch Hand
Posts: 41
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're probably fixed by now but for DB insertion:

Dig round in the bugfix version on Google (*not* the original code). Read the lower posts here,

http://www.coderanch.com/t/622325/jforum/Preserving-customizations-upgrading#2845374

Goto the appropriate subfolder of /config/database for your database. There you will find scripts which pre-populate (and can tear down) JForum databases e.g. for MySql try,

/jforum-2.3.4/WEB-INF/config/database/mysql

the mysql_db_struct.sql script builds tables, we're not interested in that. But the mysql_db_data_dup.sql script populates tables, so we are interested (!). Here's the script used to create the demo category/forum,

Should be roughly the same form for the original JForum code.

If you tried something similar, then the problem is not there.. This script code suggests that, so long as there is an initial setup defining roles and the like, it's that simple - but I would still heed the warning in the post above.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic