custom forum settings
Posted by Zdravko Balorda
custom forum settings April 18, 2011 09:21AM |
Registered: 15 years ago Posts: 59 |
Re: custom forum settings April 18, 2011 10:07AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: custom forum settings April 19, 2011 01:46AM |
Registered: 15 years ago Posts: 59 |
Well, compared to user settings, I use quite a lot phorum_api_user_save, (get) for storing of different user data. I can think of several things that I would set by "phorum_api_forum_save". Template details (pecularites if you like) for instance, additional moderation rules, user instructions, forum dependant module data, etc. I have a user profile extension module where I can put all the user data in $PHORUM['user']['mod_profile_ext'] for every single user. Something like $PHORUM['forum'][....] seems a nice thing to have api supported environment.
Re: custom forum settings April 19, 2011 01:57AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: custom forum settings April 19, 2011 02:05AM |
Registered: 15 years ago Posts: 59 |
Re: custom forum settings December 30, 2011 05:25AM |
Registered: 15 years ago Posts: 59 |
December 30, 2011 08:22AM |
Admin Registered: 20 years ago Posts: 8,532 |
It's not a single spot to point you on, but you could for example take a look at the forums API (especially phorum_api_forums_save()) and the custom field API (which is used to configure custom fields for the various Phorum entities). The custom field API is used by the admin interface for configuring custom fields, but can be used from module code as well to setup custom fields automatically (something that was done in a hacky way in 5.2 modules by directly modifying the related data structures; now it is safer by means of the new API).
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: custom forum settings July 31, 2013 03:39AM |
Registered: 11 years ago Posts: 1 |
Re: custom forum settings August 01, 2013 04:21AM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.