How can we create members only pages outside ACP?
The current RTE inside the ACP when using the "add pages" feature does not allow for <html> tags. I need to use certain <html> tags on my "members only" pages!
How do I create a "members only" page and not use the ACP to do it? I can create .php pages outside the ACP just fine, I just need to know what code is necessary to make the page "members only" accessible, if possible. Thanks.
In the meantime, I replaced the new "add pages" in admin with the last version of vshare's "add page" files so that I can use the older RTE which worked just fine (and if it's not broke, don't fix it!!)
Re: How can we create members only pages outside ACP?
Quote:
Originally Posted by grynmoors
The current RTE inside the ACP
Huh? :)
Re: How can we create members only pages outside ACP?
Quote:
The current RTE inside the ACP when using the "add pages" feature does not allow for <html> tags. I need to use certain <html> tags on my "members only" pages!
The current "Real Time Editor" in the "Admin Control Panel". It's that "WYSIWYG" window for editing the add-on pages.
UPDATE: I replaced the RTE with the editor from the last version of Vshare. No more problems.
Re: How can we create members only pages outside ACP?
Here's an old thread that I needed to re-visit. I created a page outside the admin control panel, I need this page of the site to be for members only access. Can someone please either tell me how make it members only access or direct me to a wiki or something on how to make a page so that it's member only access? I'm trying to google this but coming up short.
Re: How can we create members only pages outside ACP?
Geeze, I think I finally found it! Dang, that was a lot of searching LOL...but persistance pays off.
http://docs.buyscripts.in/Check_user_lo ... HP_scripts
Code:
<?php
require("/path/to/include/config.php");
require("/path/to/include/function.php");
if (!isset($_SESSION['USERNAME'])) {
Header("Location: {$config['baseurl']}/login.php");
exit(0);
}
?>
<html>
<body>
<h1>Welcome to Members Area</h1>
</body>
</html>