1
Groover
Making single pages of a module public
  • 2004/7/2 21:41

  • Groover

  • Just popping in

  • Posts: 23

  • Since: 2004/7/1 2


I'm writing a module that handles people's membership status. I'm using PayPal to handle the payments so people can upgrade their membership, etc. The membership module is not available to guests/anonymous users.

In order to interface to PayPal I need a page which can be accessed by PayPal - which means accessible by guests. It's the payment completed page.

What is the best way to arrange this? It looks like I could just create the page in the top folder of my site, but I would prefer to keep the files for the module together.

Any help is appriciated! Thanks!

Groover

2
Groover
Re: Making single pages of a module public
  • 2004/7/6 19:38

  • Groover

  • Just popping in

  • Posts: 23

  • Since: 2004/7/1 2


I guess it isn't possible then?

Groover

3
Dave_L
Re: Making single pages of a module public
  • 2004/7/6 20:18

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I did something similar. My solution was to set $xoopsOption['nocommon'] = 1 before including mainfile.php, and then include a stripped-down copy of include/common.php without the web-related or permissions-related code.

4
Groover
Re: Making single pages of a module public
  • 2004/7/6 20:40

  • Groover

  • Just popping in

  • Posts: 23

  • Since: 2004/7/1 2


Thanks! That appears to work just fine!

I copied common.php into my module folder and renamed to commonpublic.php. Included in my .php file for my public web page. Set tbe nocommon option. Then commented out everything from:

############## Login a user with a valid session ##############

to the second-to-last closing brace. Seems to work with no side effects. Cheers!

Groover

5
Groover
Re: Making single pages of a module public
  • 2004/7/6 20:52

  • Groover

  • Just popping in

  • Posts: 23

  • Since: 2004/7/1 2


Actually if you comment out all that code then if a user is logged in, that page will appear as if they are not. If you instead comment out from:

if ($xoopsConfig['closesite'] == 1) {

to the second to last closing brace (inclusive) then the page will appear correctly for both logged in and not logged in.

Groover

6
brash
Re: Making single pages of a module public
  • 2004/7/7 0:40

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Nice work Groover, I'll be interested to see the end product.

Login

Who's Online

463 user(s) are online (59 user(s) are browsing Support Forums)


Members: 0


Guests: 463


more...

Donat-O-Meter

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

Latest GitHub Commits