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)

Smoothie 03-21-2002 05:15 AM

Still no email, except this:

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-xxx@localhost' to database 'fictionalley'

mysql error number: 1044

kippesp 03-21-2002 05:19 AM

Those references to "fictionalley" were removed from the file about 30 min ago. (I think there were 2 of them.) I had to clear my browser cache for some reason before I'd get the file to download right from vb.org.

Smoothie 03-21-2002 05:24 AM

ok, cache cleared.

Smoothie 03-21-2002 05:42 AM

Works great....nice work. :)

kippesp 03-21-2002 05:44 AM

Glad to hear it. Thanks for helping me find my slip ups.

Smoothie 03-21-2002 06:03 AM

Appreciate your help.

hadley 05-01-2002 05:20 PM

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?

kippesp 05-03-2002 06:22 AM

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.

hadley 05-03-2002 05:26 PM

Quote:

As far as forcing subscriptions on a user: Is it okay to hardcode the forumids?
I'm not sure what this means...

Quote:

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.

Quote:

Should users be subscribed on being activated?
Yes.

Quote:

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...

mvigod 05-03-2002 11:46 PM

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...


All times are GMT. The time now is 08:36 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.01072 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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