Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-08-2014, 03:15 AM
Trillian Trillian is offline
 
Join Date: Oct 2001
Location: Indonesia
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Combine daily digest emails from different forums into one?

Our message board is set up so there are 10 forums to help categorize the different topics we discuss. There is potential for more categories therefore more forums.

Users would like to receive a daily digest of all the message board activity. In order to do that they need to individually subscribe to each forum. Understood.

However, when you subscribe to 10 forums, that means potentially you receive 10 daily digest emails a day... one for each forum.

We would like to reduce this amount of email. So I am considering two options and open to others:

1. Reformat the message board, but how? We still want to keep our categories, but somehow have them under a single forum so there is one daily digest email, is that possible? Or,

2. Programmatically create a single daily digest email of all the forums. I am guessing this can be done in /forum/includes/functions_digest.php script, but I'm unsure how to proceed. The use of prepared statements for the MySQL queries requires some research and learning (not complaining, just that I don't want to screw things up!) and overall the coding is tricky for me to follow. Still, it seems the solution is in this script somehow.

Any advice? Or other solutions? Your attention is appreciated on this
Reply With Quote
  #2  
Old 09-09-2014, 10:25 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trillian View Post

2. Programmatically create a single daily digest email of all the forums. I am guessing this can be done in /forum/includes/functions_digest.php script, but I'm unsure how to proceed. The use of prepared statements for the MySQL queries requires some research and learning (not complaining, just that I don't want to screw things up!) and overall the coding is tricky for me to follow. Still, it seems the solution is in this script somehow.
I can see your point here, but only if your board is small. Most users will never read through 20 pages of an email, so most boards would be sending out this massive email that no one is going to read -- I understand your situation could be unique.

Looking at "functions_digets.php" the code that you need is all there except the parent constructs have to be rewritten. If you decide to take this on, then I can give you assistance in your code, when you go astray. Unfortunately, the amount of time required for testing this type of code makes this prohibitive to me for direct involvement. Email routines always seem to be time sinks during the testing phase.
Reply With Quote
  #3  
Old 09-10-2014, 02:02 PM
Trillian Trillian is offline
 
Join Date: Oct 2001
Location: Indonesia
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the response!

You are right, it is a small board, and the day may come where a forum-wide digest may be multiple pages and cumbersome to read. But at least the user will still hold the power to unsubscribe to individual forums or the email all together, so for now the concept suits our needs

I've been slowly trying to work with the MySQL queries in the functions_digest.php to get a better understanding, but still hitting some questions. And as I dig I learn a little bit more. I imagine I'll be back with some specifics that I can't answer myself.
Reply With Quote
  #4  
Old 09-10-2014, 07:16 PM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trillian View Post
Thanks for the response!

I've been slowly trying to work with the MySQL queries in the functions_digest.php to get a better understanding, but still hitting some questions. And as I dig I learn a little bit more. I imagine I'll be back with some specifics that I can't answer myself.
If I can be of any assistance feel free to ask.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 10:20 PM.


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.03792 seconds
  • Memory Usage 2,189KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete