Page 1 of 1

disabling / removing subscribe pages

PostPosted: 3:55am, Fri 01 Dec, 2006
by tripper54
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

PostPosted: 1:42pm, Sun 03 Dec, 2006
by H2B2

PostPosted: 1:58am, Tue 27 Mar, 2007
by tripper54
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

PostPosted: 10:53am, Tue 27 Mar, 2007
by Harlequin
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