Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Contextual Forum Subscriptions Hack Details »
Contextual Forum Subscriptions Hack
Mod Version: 1.00, by kippesp (Member) kippesp is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 7
Released: 20 Mar 2002 Last Update: Never Downloads: 1
Not Supported  

This hack is similar to the "2.0 Email new thread notifictions to subscribed users" hack by chrispadfield. My hack is an enhanced replacement to the Padfield hack.

Without this hack, subscribing to a forum does nothing but add the forum to one's user CP. By installing this hack, an email will be sent with the post's content when a new thread is posted.

The major differences between this hack and the Padfield hack are:[list=1][*]Email notification contains the posted text.[*]When posting a new thread to moderated forums, notification will be delayed until the thread is approved. This also works with Wayne Luke's moderate user hack.[/list=1]This hack has been tested on vBulletin 2.2.1 through 2.2.5.

Post any problems/suggestions here. My users like it as is but would appreciate any improvement.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Useful inline contextual links in postbit and member profile cheat-master30 vBulletin 3.7 Template Modifications 5 16 Aug 2008 00:21

  #16  
Old 21 Mar 2002, 07:03
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Appreciate your help.
Reply With Quote
  #17  
Old 01 May 2002, 18:20
hadley hadley is offline
 
Join Date: Mar 2002
kippesp,
We installed your hack on vB 2.2.4, and all was well -- it worked exactly as promised.

But after I upgraded to vB 2.2.5 last week, the hack stopped working -- any idea why? I mean, did I overwrite something that needs to be reinstalled, or is your hack not compatible with 2.2.5?

Also: I would like to set my site default that all users are subscribed to all 8 of my forums when they sign up -- they'd have to go into their CP to unsubscribe. Do you know how I could accomplish this?
Reply With Quote
  #18  
Old 03 May 2002, 07:22
kippesp kippesp is offline
 
Join Date: Jan 2002
hadley,

Is it still not working?

I've gone through this hack again and applyed it to a fresh 2.2.5 vB. It is compatible with 2.2.5. I've also updated my test forum to 2.2.5 and this hack also worked.

Since the hack is mostly contained in one area of newthread.php, I'd start there. (Changes for moderated threads in mod/moderate.php are independent of the changes in newthread.php.) I assume the board still has emails enabled and other emails are working?

As far as forcing subscriptions on a user: Is it okay to hardcode the forumids? Or should the forumid list be controlled through the admin CP? Should users be subscribed on being activated? Or should users be subscribed on registering? If they are subscribed on registering, they will need to be able to access their user CP or you'll have some mightly "T'd" off users who can't unsubscibe themselves.
Reply With Quote
  #19  
Old 03 May 2002, 18:26
hadley hadley is offline
 
Join Date: Mar 2002
As far as forcing subscriptions on a user: Is it okay to hardcode the forumids?
I'm not sure what this means...

Or should the forumid list be controlled through the admin CP?
Ditto; sorry. I need to be able to see the list and make changes to it occasionally via the admin CP, but I don't need to assign IDs.

Should users be subscribed on being activated?
Yes.

Or should users be subscribed on registering?
No -- I want them to always have the ability to unsubscribe from any or all forums. I currently permit immediate activation -- no validation of email address or COPPA -- but plan to change that as the forums build mass.

Thanks for your help -- and let me know if you want to take this conversation offline -- I wasn't sure...
Reply With Quote
  #20  
Old 04 May 2002, 00:46
mvigod mvigod is offline
 
Join Date: Dec 2001
Won't this potentially create a huge amount of emails? What if you have 8000 users and 50 forums. Say 4000 subsribe to an average of 5 forums. That makes 20,000 subscriptions total. Now let's say each of those forums get's an averge of 10 new threads per day. That would generate 200,000 emails! That's alot of server load on an email server along with bandwidth. Even if you half my numbers in the exmaple it's 100,000 emails! This can be a scary one for active boards...
__________________

Reply With Quote
  #21  
Old 04 May 2002, 01:53
hadley hadley is offline
 
Join Date: Mar 2002
Yes, it could -- but I have 400 users, 10 forums, and about 2 new threads a week (not day) -- total, across all forums. So, I'd be looking at about 800 emails a week.

Most of my audience is accustomed to (and seems to prefer) listservs; I want to use this hack to get a bit more "in their face" -- so that when there is a new thread, they will be (hopefully) encouraged to visit the forums and add their own posts.

Of course, when/if the activity at my forums picks up, I would revert back to making the subscribe feature optional by default -- and then only those who want it could turn it on. (That's the way it runs now.)

Last edited by hadley; 04 May 2002 at 01:58.
Reply With Quote
  #22  
Old 04 May 2002, 08:01
chrispadfield's Avatar
chrispadfield chrispadfield is offline
 
Join Date: Oct 2001
Yes, it is not recommended for a very busy forum. If you are getting more than a few hundred subscriptions per forum then you are going to start causing yourself problems when new threads are started.
__________________
Christopher Padfield
[email protected]

http://www.deskpro.com - Manage your customer support
Now Avaliable
Reply With Quote
  #23  
Old 09 May 2002, 17:12
hadley hadley is offline
 
Join Date: Mar 2002
kippesp, the hack is still not working since I upgraded to 2.2.5.
My techie (Bill Cameron) worked on it, and here's what he sent to me via email:

Okay, as far as I can tell, it should be working. If it's not, I don't know why. All the new templates and edited templates are present, and I can see the changes I made are there, but it's not working.

Now here's the weird part. I downloaded the instructions again, to do a little comparison, and they don't look like the same instructions. Yet I've looked at it again and again. Kippesp's Contextual Forum Subscriptions Hack.

But his instructions say, for example, "Two templates must be added: email_newthread and emailsubject_newthread."

And yet, the templates I had added previously were "emailsubject_threadstarter" and "email_threadstarter". I made edits to the newthread.php template, but can't match the changes he indicates in the instructions with anything I've done.

Furthermore, I reverted the newthread.php template back to the original, then tried to reinstall, but his instructions don't match up with what is in the template.

I am confused, I have to admit. Perhaps I am looking at the wrong instructions, or the wrong templates. But this is just making no sense to me.
Reply With Quote
  #24  
Old 09 May 2002, 17:41
kippesp kippesp is offline
 
Join Date: Jan 2002
I suspect there may be mixture of hacks and hack instructions going on: mine and chrispadfield's. They are replacements and should not both be installed.

His template names are email_newthread and email_newthreadsubject. We both use email_newthread. But I used emailsubject_newthread because of existing vB conventions.

My instruction file hasn't changed since 21 March--not even to update the version numbers. Double check which install instructions are being used. (Mine starts out "This hack is similar to the "2.0 Email new thread notifictions to subscribed users" hack by chrispadfield. My hack is a replacement to the Padfield hack. The major differences are:")

Keep in mind that even if the templates were mixed or not even there, emails should still go out. If no templates exist, the email will be blank. (I'm using qmail so blank subjects & bodies are okay. This may not translate to other platforms/emailers.) Also, the thread starter is not notified.

If you still don't figure out, email me a diff of your newthread.php against an unmodified v2.2.5 using "diff -cw".

Last edited by kippesp; 09 May 2002 at 17:45.
Reply With Quote
  #25  
Old 09 May 2002, 20:21
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
Hi kippesp,

I installed your hack today, unfortunately im not getting emails from subrcribed forums. I looked at your code

if ($enableemail and $visible)

I presume that means, that users must be Visible and must have emails actived. I have my board setup so that emails-Adresses from users are not shown and quite a few users are not visible. Does that mean thats why its not working?

What would happen if I just removed this if clause?

greetings Tina
Reply With Quote
  #26  
Old 09 May 2002, 21:28
kippesp kippesp is offline
 
Join Date: Jan 2002
Originally posted by tkeil69575
I installed your hack today, unfortunately im not getting emails from subrcribed forums. I looked at your code

if ($enableemail and $visible)

I presume that means, that users must be Visible and must have emails actived. I have my board setup so that emails-Adresses from users are not shown and quite a few users are not visible. Does that mean thats why its not working?

What would happen if I just removed this if clause?
$enableemail is controlled from the admin control panel ("Enable Email features?"). The user cp option for admin emails does not matter (as with thread subscriptions).

$visible is generally used for moderated threads. It is true if (the poster is a moderator) OR (the thread is not moderated) OR (the thread is not a poll). If the thread is to be moderated ($visible == false), the hack's notification is delegated to the mod/moderate.php file. If your forums do not moderate new threads, $visible isn't necessary nor the changes to mod/moderate.php.

One error that I do have in this hack is the poll path. Obviously, I made no modifications to poll.php so nothing is sent. I'll put that on my to-do list.

My only suggestion on testing is to (1) subscribe to a forum, (2) log in using an alternate account, (3) post a new thread to the forum subscribed to in (1).

Also, my instructions may be unclear. The inserted code for file newthread.php needs to be outside the braces (i.e immediately before the line "// redirect"). Let me know if my instructions are unclear in this area. If this code is put in the wrong spot, the checks will be in the wrong if clause and highly unlikely to work.
Reply With Quote
  #27  
Old 09 May 2002, 21:44
tkeil69575 tkeil69575 is offline
 
Join Date: Nov 2001
ok thank you for the explanation. now I understand. I did what you said in regard to posting a new thread with an other account and its working!

Thanks for the great hack
Reply With Quote
  #28  
Old 22 Aug 2002, 18:27
malcolm fraser malcolm fraser is offline
 
Join Date: Aug 2002
Thumbs up help please

I've installed this hack and it works perfectly. Just what I needed!! Thank you!

What I need now is a way to see which users have subscribed to which forums - either from the Admin CP or whatever.

I know enough to know that this should be a relatively simple case of looking up tables and displaying them, but I'm afraid I don't know enough to actually do this myself.

Can anyone help??

Thanks,
Malcolm
Reply With Quote
  #29  
Old 31 Oct 2002, 23:28
mkunichi mkunichi is offline
 
Join Date: Oct 2002
works great in 2.2.8.

umm. a bit late now, but is there a preferred hack to this one?
Reply With Quote
  #30  
Old 01 Nov 2002, 01:04
kippesp kippesp is offline
 
Join Date: Jan 2002
What do you mean by "preferred hack." I'm not familure with that.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:31.

Layout Options | Width: Wide Color: