posted 16 years ago
Take a look at the *_data_dump.sql files in the config/database/* directories. This is a set of manual queries that sets up the initial jForum users, groups, rights, and forums.
If I remember correctly, you basically have to add the entry in the user table and then add the user to the user_groups table.
FYI - Users an not given permissions. This is all done thru groups. It is possible to set up groups and permissions thru SQL but it is VERY tricky and there are a lot of situations where you can easily end up with more rights than you wanted.
In addition, there is a permissions cache. This means that even if you add the records, the memory cache may not be up to date.
This is a case that the best way to do this if via the admin screen or to have code that submits the same information as the admin screen. IMHO, This is a lot easier and safer than trying to hack the underlying DB.
[originally posted on jforum.net by monroe]