Should I contact Boonex?

Hello again,

        We're trying to create new pages without the page builder however how content does not show up. We have the css file, html, and the php files. We don't want to use the page builder because of our sites structure. All we need to accomplish is to have the content diplayed and the section to tell if the member is logged in or not. Any help is appreciated.

Quote · 7 Sep 2009

Well we have done the custom page in a different directory. That's been done without using the admin section. All we have to do now is figure out how to keep this directory as members only. I think there is a function that we're missing. Any ideas please let us know. Thanks in advance.

Quote · 7 Sep 2009

If you have included the required files at the top of your php custom page you can use the following that might help you.


$logged['member'] = member_auth( 0, true );

The above will force a member to be logged in before they can view the page by presenting them with a logon box


Or you can check the member cookie. When a member is logged in a cookie is set. So this will check the cookie.

$memberID = (int)$_COOKIE['memberID'];

Then if you check $memberID after doing that, it will contain 0 if no member is logged in, and anything over 0 is the logged in members id.

https://www.deanbassett.com
Quote · 7 Sep 2009

Thanks. The first code worked perfectly. We tried everything but, that. Thank goodness for people like you!

Quote · 8 Sep 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.