Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[1]: Forum as part of Intranet where user already logged-in

Martijn

I haven’t given this much thought, but the answer is yes. You will have to get into some of the code though.

All the logged in state is checked and set on lines 165–215 of start.php: https://github.com/Kroc/NoNonsenseForum/blob/e8a996c6cd3eb97c9de8762e3aa31b3b29508f93/start.php#L165-L215

You’d probably come a long way by defining the `AUTH` (and maybe `AUTH_HTTP` too) depending on login state in your session. Then define `NAME` as the name from your session.

If you have set `AUTH_HTTP` to true, the theme will by default remove the entire login form and display the user’s name prefilled. So the whole “allocating” is then automatically taken care of (see https://github.com/Kroc/NoNonsenseForum/blob/e8a996c6cd3eb97c9de8762e3aa31b3b29508f93/thread.php#L202-L207).

If you are hacking on the code and would like to brainstorm some ideas, you’re welcome to see if either @Kroc or I are available on the Discord! http://forum.camendesign.com/camen-design-discord-server

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn