1
Aeolos
requires visitors to register [wfdownloads]
  • 2005/8/29 8:51

  • Aeolos

  • Just popping in

  • Posts: 6

  • Since: 2005/8/25


is it possible to make it such that users must register/login before they can download?
think i came across some website wif wfdownloads doing that.
but unable to figure out how to set it in the module settings.
appreciate any help =)

sorry if i post in wrong forum. not sure should be in "Module usage questions"

2
hyperpod
Re: requires visitors to register [wfdownloads]
  • 2005/8/31 4:37

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


You can add this code to /modules/wfdownloads/visit.php

near the top, after all the functions and maybe above the if agree section.


if ($xoopsUser$uid $xoopsUser->getVar("uid""E");
else 
redirect_header("/register.php"3"You must register for free and/or login to download.");



This will allow all users to browse the downloads, but then when they go to actually download, it will check to see if they are a loggen in (registered) user and if not, redirect them to the login/registration page.

Hope that helps,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

3
Aeolos
Re: requires visitors to register [wfdownloads]
  • 2005/8/31 12:00

  • Aeolos

  • Just popping in

  • Posts: 6

  • Since: 2005/8/25


alrite it works!
thx hyperpod

Login

Who's Online

180 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 180


more...

Donat-O-Meter

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

Latest GitHub Commits