1
chaosad
password protection
  • 2004/10/4 18:42

  • chaosad

  • Just popping in

  • Posts: 11

  • Since: 2004/9/23


I'm looking for a way to password protect certain pages, not just based on whether they are articles and such. Below is the way I do pages that are outside the scoop of the XOOPS modules. I jsut wrap the pages within a wrapper:

include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?>

include(XOOPS_ROOT_PATH."/footer.php");
?>

Is there a variable I can use or function to simply decide whether I want certain pages pwd protected using the XOOPS sessions?

Thanks in advance!

2
zite83
Re: password protection
  • 2004/10/5 13:05

  • zite83

  • Just popping in

  • Posts: 41

  • Since: 2004/10/5


Yes I also would like to know how to do this, I dont know if it the same as you want Chaosad.

I am just doing the plain old wrap the header footer around a static php file. Now I want to put information on this that only registered users can see. So is there somewhere in that file I can insert code that would say:

Sorry, you don't have the permission to access this area.
If the page does not automatically reload, please click here

if you tried viewing that file with out being logged in? Just like when you try to view a register user only modual.

3
zite83
Re: password protection
  • 2004/10/5 15:42

  • zite83

  • Just popping in

  • Posts: 41

  • Since: 2004/10/5


Look into creating your own modules, it is very simple.

http://www.macambridge.com/dummies/

Go to that site, its great!

4
chaosad
Re: password protection
  • 2004/10/5 16:37

  • chaosad

  • Just popping in

  • Posts: 11

  • Since: 2004/9/23


Thanks for the help. I've been to this site and have not found exactly what I'm looking for. I, like the other poster, am just looking to what needs to be added to a page to add it to the session for XOOPS so I can use it to let only registered users view the pages I want. I've already got these pages setup and are wrapped with a XOOPS header and footer as previously stated in first post.

Is there not just a few lines or a file to include to make it so you must be logged into XOOPS to view?

5
chaosad
Re: password protection
  • 2004/10/18 17:24

  • chaosad

  • Just popping in

  • Posts: 11

  • Since: 2004/9/23


Still looking for anything on this. Any help would be appreciated.

I just want to add the XOOPS password protection to my custom pages. Nothing spectacular or complicated :)

Login

Who's Online

353 user(s) are online (302 user(s) are browsing Support Forums)


Members: 0


Guests: 353


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits