2009-10-16, 04:35 AM
I did some searching and couldn't find anything that could do what I wanted. See my original thread.
So I just decided to code my own.
All it does is email the users (I have < 10 in my Forum) a summary of all new posts during the previous 24 hours. The emails are sent every day at midnight.
I had no previous experience with MyBB, but just looked through other code to figure out what I needed. So my apologies if I'm not using the right functions. I'm sure there's a much better way to do what I'm doing
But...at least it works!
How to install (use at your own risk!):
If you'd like to change any of the functionality, just edit mailsummary.php. Here's an example of some things you may wish to modify:
I definitely like MyBB though! So easy to use yet very powerful.
Here's a screenshot of what the email looks like. Note that the post title has a hyperlink to the actual post.
So I just decided to code my own.
All it does is email the users (I have < 10 in my Forum) a summary of all new posts during the previous 24 hours. The emails are sent every day at midnight.
I had no previous experience with MyBB, but just looked through other code to figure out what I needed. So my apologies if I'm not using the right functions. I'm sure there's a much better way to do what I'm doing
But...at least it works!
How to install (use at your own risk!):
- bb2html.php (attached) goes in /inc/
- mailsummary.php (attached) goes in /inc/tasks/
- Edit mailsummary.php, line 81 (YourDomainURL.com)
- Add New Task (/admin/index.php?module=tools/tasks&action=add) - see screenshot below
If you'd like to change any of the functionality, just edit mailsummary.php. Here's an example of some things you may wish to modify:
- List of user groups who receive email (currently Registered and Admins)
- Email Subject (current *** DAILY POST SUMMARY ***)
- Period to get posts from (currently past 24 hours)
- Max characters to display per post (currently 500)
I definitely like MyBB though! So easy to use yet very powerful.
Here's a screenshot of what the email looks like. Note that the post title has a hyperlink to the actual post.