Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2014-03-02 16:01:24

Olaola
Member
Registered: 2014-03-02
Posts: 15

Fluxbb system in website?

Hi,

I have to create a website in php with registration, some pages with script php and a forum.
Of course, I want that users should only register once to access all areas of the site.

I am considering the platforms to use to the forum, looking for the lighter ones, and this is the one that seems appropriate for its minimal graphics and kb.

The question:
You can get information about what files to include my site's pages, and which function to use to see if the user is logged?

Really thanks!

Offline

#2 2014-03-02 17:34:42

Franz
Lead developer
From: Germany
Registered: 2008-05-13
Posts: 6,686
Website

Re: Fluxbb system in website?

Welcome to FluxBB! smile

Very easy to do:

define('PUN_ROOT', '/path/to/your/forum/');
include PUN_ROOT.'include/common.php';

if ($pun_user['is_guest']) {
    echo 'You are a guest';
} else {
    echo 'You are logged in';
}

Have fun! smile


fluxbb.de | develoPHP

"As code is more often read than written it's really important to write clean code."

Offline

#3 2014-03-03 16:16:22

Olaola
Member
Registered: 2014-03-02
Posts: 15

Re: Fluxbb system in website?

Wow, so easy, nice!

I've try that forum yesterday, and others.. But I think this is top simply, clean and fast..

I try implement it!

Really thanks man!

Last edited by Olaola (2014-03-03 16:16:55)

Offline

Board footer

Powered by FluxBB