disabling / removing subscribe pages

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

disabling / removing subscribe pages

Postby tripper54 » 3:55am, Fri 01 Dec, 2006

Hello,

For the system I am setting up, all the subscribing/unsubscribing will be handled by administrators.

How do I disable the public list subscription pages?

Sorry in advance if this is mentioned somewhere obvious in the docs - I have hunted around and can't seem to find it.

Cheers,

Phil
tripper54
PL Nut
 
Posts: 32
Joined: 4:14am, Wed 29 Nov, 2006
Location: East Coast of Australia

Postby H2B2 » 1:42pm, Sun 03 Dec, 2006

H2B2
Moderator
 
Posts: 7188
Joined: 1:51am, Wed 15 Mar, 2006

Postby tripper54 » 1:58am, Tue 27 Mar, 2007

For the benefit of others looking to do this, I sorted this out by modifying some code in index.php.

Firstly I found this:

Code: Select all
     case "subscribe":
        $success = require "admin/subscribelib2.php";
       if ($success != 2) {
          print SubscribePage($id);
       }
        break;


and changed to this:

Code: Select all
case "subscribe":
        $success = require "admin/subscribelib2.php";
        //Changed this to remove ability to subscribe from the web page
      print "<p>Sorry. You cannot subscribe to these newsletters through this web site.</p>";
      /* if ($success != 2) {
          print SubscribePage($id);
        } */
        break;


Then for unsubscribe, I found this:

Code: Select all
case "unsubscribe":
        print UnsubscribePage($id);
        break;


and changed to this:

Code: Select all

case "unsubscribe":
     // Change this to an email link to subscriptions department
     print "To unsubscribe from Newsletters, <a>contact Subscriptions</a>.";
       // print UnsubscribePage($id);
        break;


It aint pretty, and there are possibly quite easy ways to circumvent it, but it works. I hope this helps - any suggestions for improvement welcome.

Phil
tripper54
PL Nut
 
Posts: 32
Joined: 4:14am, Wed 29 Nov, 2006
Location: East Coast of Australia

Postby Harlequin » 10:53am, Tue 27 Mar, 2007

Thanks Phil,

This is great!

This is really useful for me as I have a selective membership process for a club, and not just anyone can sign up over the web.

I need to be the one in total control of who puts user onto the system and who removes them. This code will ensure that the membership secretary retains control and the site is not open to any abuse.


Nice one!

Milton
Harlequin
phpList newbie
 
Posts: 2
Joined: 12:17am, Mon 29 Jan, 2007


Return to Question & Problems - after installing

Who is online

Users browsing this forum: No registered users and 5 guests