vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Contextual Forum Subscriptions Hack (https://vborg.vbsupport.ru/showthread.php?t=36365)

kippesp 03-19-2002 10:00 PM

Contextual Forum Subscriptions Hack
 
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.

Erwin 03-20-2002 09:46 PM

This is a great idea. I will install it after work. :)

chrispadfield 03-20-2002 10:03 PM

Cheers for doing this :) looks good.

Smoothie 03-21-2002 03:59 AM

installed on ver 2.2.2. Not getting emails to subscribed forums.

Smoothie 03-21-2002 04:20 AM

I did however get an email:

Database error in vBulletin 2.2.2:

Invalid SQL: SELECT user.username,user.email
FROM subscribeforum,fictionalley.user
WHERE subscribeforum.forumid='55'
AND subscribeforum.userid=user.userid
AND user.userid<>'42'
mysql error: Access denied for user: 'xxxx-xxxx@localhost' to database 'fictionalley'

mysql error number: 1044

kippesp 03-21-2002 04:29 AM

YIKES! My board has special queries. Very sorry about that!

I've fixed that now. The new file does not reference a special user database. (My board has userdata in a different DB!) I'll double check my work, but it should work without errors now.

I've also added to the description in case you're unfamilure with the Padfield hack. It won't send notifications of your own posts. And it isn't all posts. Only new threads.

Smoothie 03-21-2002 04:36 AM

ok, I'll give it another shot...

Thanks!

Smoothie 03-21-2002 04:43 AM

Quote:

# 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
Hi-
Is there a way to avoid this step? In other words is there a way for emails to be sent without first having the thread approved?

kippesp 03-21-2002 04:46 AM

Quote:

Originally posted by Smoothie
Hi-
Is there a way to avoid this step? In other words is there a way for emails to be sent without first having the thread approved?

Sure. Take out the check for $visual in newthread.php. So what was:
if ($enableemail and $visible) {

now becomes

if ($enableemail) {

If this is how you want to use it, you would not need any of my changes to mod/moderate.php.

Smoothie 03-21-2002 05:01 AM

Thanks again! Installing now.


All times are GMT. The time now is 12:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01655 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete