Thread 'tools to unsubscribe from all old threads'

Message boards : Web interfaces : tools to unsubscribe from all old threads
Message board moderation

To post messages, you must log in.

AuthorMessage
ProfileJoseph Stateson
Volunteer tester
Avatar

Send message
Joined: 27 Jun 08
Posts: 641
United States
Message 23242 - Posted: 23 Feb 2009, 6:42:52 UTC
Last modified: 23 Feb 2009, 6:46:02 UTC

I did not see any way to easily unsubscribe from old posts so I put together a perl script here that allows anyone to unsubscribe from all threads on all registered projects that are over X days old. You can specify the number of days. You will have to edit the file unsubscribe.pl and change the following 4 lines

my $InitialSite = "http://www.gpugrid.net";
my $username = "YourUsername";
my $password = "YourPassword";
my $cutoff = 7;

The "7" unsubscribes all posts over a week. Make sure you read the readme.txt about special characters in username or password.

The initial site can be any site you are registered with except that climatewarming bs one.

if you run "unsubscribe.pl list" it will just lists the threads that are older than your cutoff day. If you leave off the "list" they will be unsubscribed from.

email if a problem. I have not tested this on ubuntu but it *should* work like the merge one.

Enjoy.
ID: 23242 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15560
Netherlands
Message 23243 - Posted: 23 Feb 2009, 6:54:45 UTC - in response to Message 23242.  

I did not see any way to easily unsubscribe from old posts

You see that Subscribe button on top of a thread? After you've clicked it, it changes to an Unsubscribe button. How difficult can that be? ;-)

The only difficulty to get rid of the subscription on some project forums is when the thread is hidden, but I believe that the latest versions of the forum software cancel all subscriptions on threads that people are subscribed to when the thread is hidden.
ID: 23243 · Report as offensive
ProfileJoseph Stateson
Volunteer tester
Avatar

Send message
Joined: 27 Jun 08
Posts: 641
United States
Message 23245 - Posted: 23 Feb 2009, 12:28:25 UTC - in response to Message 23243.  
Last modified: 23 Feb 2009, 12:48:04 UTC

I did not see any way to easily unsubscribe from old posts

You see that Subscribe button on top of a thread? After you've clicked it, it changes to an Unsubscribe button. How difficult can that be? ;-)

The only difficulty to get rid of the subscription on some project forums is when the thread is hidden, but I believe that the latest versions of the forum software cancel all subscriptions on threads that people are subscribed to when the thread is hidden.


Hi Jord. Clearly one can click on the unsubscribe, but my perl code automates going to all projects and doing it for you based on a cutoff date for old posts. In looking here under "Difficult/Complex" there is an acknowledged need to propagate profiles between projects, same for "forum preferences" and a quote "list of recent posts and threads". These can all be done using perl without haveing to update the php code at any of the servers. Clearly, you or any of the developers can code up a bunch of php pages to do these items, but it hasnt happened yet and all of the above are easy to do in perl.

For example, the "initial site" that must be supplied in my perl scripts (unsubscribe or merge) could easily be used as a template to propagate profile and other info to all other registered projects. I have started codeing that. However, a good php programmer could do us all a favor and code up some pages to handle this and install it at the servers. Again, it hasnt happened yet. I have a lot of experience in aspx, but have written only a single php page and it me took a long time to get it right.

I am unsure what a hidden thread is, but if it does not "show up" then my script will be unable to unsubscribe from it.
ID: 23245 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15560
Netherlands
Message 23246 - Posted: 23 Feb 2009, 13:20:42 UTC - in response to Message 23245.  

I am unsure what a hidden thread is, but if it does not "show up" then my script will be unable to unsubscribe from it.

When us moderators "delete" a thread, it is still available in the database and can still be read by moderators. Not by normal folk. (Hmmm, I seem to imply that us mods are abnormal ;-))

That's what a hidden thread is.
ID: 23246 · Report as offensive
Les Bayliss
Help desk expert

Send message
Joined: 25 Nov 05
Posts: 1654
Australia
Message 23247 - Posted: 23 Feb 2009, 13:46:22 UTC

:)
You need "moderator vision" to see the posts. A bit like xray vision.

ID: 23247 · Report as offensive
ProfileKSMarksPsych
Avatar

Send message
Joined: 30 Oct 05
Posts: 1239
United States
Message 23248 - Posted: 23 Feb 2009, 14:14:46 UTC - in response to Message 23246.  

(Hmmm, I seem to imply that us mods are abnormal ;-))


I never claimed to be normal.
Kathryn :o)
ID: 23248 · Report as offensive
ProfileJoseph Stateson
Volunteer tester
Avatar

Send message
Joined: 27 Jun 08
Posts: 641
United States
Message 23258 - Posted: 23 Feb 2009, 21:57:26 UTC - in response to Message 23245.  


For example, the "initial site" that must be supplied in my perl scripts (unsubscribe or merge) could easily be used as a template to propagate profile and other info to all other registered projects. I have started codeing that.


Unfortunately, about 1/2 of the projects I am registered with use a spam blocker to confirm profile edits. That defeats my perl program. The first couple of projects I looked at didnt use any spam blocking mechanism and I assumed I could propagate a profile change using perl. Once I got into it I discovered this problem.
ID: 23258 · Report as offensive

Message boards : Web interfaces : tools to unsubscribe from all old threads

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.