The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm interested in putting the full forum post text in each forum notification email that members receive. This would be for all new posts, not just posts/threads the member has started or replied to.
I'm not interested in allowing members to reply by email (I already tried the email integration mod and it didn't work), only in members being able to read the full text of each post in their email. Having hits on my forum is not important at all. Having members easily read all the new/updated forum posts is the priority. Is there a template modification that can be done to insert the full text of posts into the notification emails? I know full text is included in emails notifications for subscribed threads, so it must be possible somehow. We are currently using vBulletin 3.8.3. Thanks. |
#2
|
||||
|
||||
![]()
Are you talking about the Daily Digest or what?
|
#3
|
|||
|
|||
![]()
Yes, when someone subscribes through Forum Tools to daily or weekly digests, I need to be able to include the full text of the posts in the email notifications instead of just the title, author, and link to the post on the forum.
|
#4
|
||||
|
||||
![]()
The phrase for the digestpostbit is this:
HTML Code:
************ $post[title] $vboptions[bburl]/showthread.php?p=$post[postid]#post$post[postid] Posted by: $post[postusername] On: $post[postdate] $post[posttime] $post[pagetext] |
#5
|
|||
|
|||
![]()
This is an example of contents of the notification email that is received by members who have subscribed to Daily Digest of forums:
### Dear John Doe, You are subscribed to the forum General Discussion, there have been 4 new thread(s) and 5 updated thread(s). http://mysite.org/members/forum/forumdisplay.php?f=13 The following threads are new: ************ Library update and thoughts on new forum http://mysite.org/members/forum/showthread.php?t=99 In forum: General Discussion Started by: M Smith Last post: 09-10-2009 09:55 AM ************ Where to shop? http://mysite.org/members/forum/showthread.php?t=100 In forum: Local Recommendations Started by: E Crownover Last post: 09-10-2009 11:11 AM ************ So as you see, it includes just the Title, the Link, the Forum Category, the Author, and the Post Date. No full text at all. |
#6
|
||||
|
||||
![]()
That is for when users are subscribed to a forum, not a particular thread. The post text is not grabbed in the query for the forum subscriptions and there are no hooks available. That means you will have to modify the actual query to grab the post text and then modify the code to parse it for the email and then modify the phrase to spit it out. The query is around line 204 in includes/functions_digest.php. I think you'll need to JOIN the post table in order to get the post text of the first post (I assume that is all you are wanting to grab).
|
#7
|
|||
|
|||
![]()
Are there more specific instructions that you could give me to modify the code? I am a newbie and coding and I'm afraid I couldn't figure it out on my own.
Would this also put the text of the Updated Posts in the digest in addition to the text for the New Posts? |
#8
|
||||
|
||||
![]()
I believe forum digests only go out for new threads that are posted in a forum. So, if there are new posts to a thread in a forum, these will not be included in the digest.
As for what to add... I've never done what you want to do, so I can't really give you specifics. But, the query I pointed out is, I think, the one you need to modify to grab the first post text at the same time as it grabs the other info. You need to add a join, something like: PHP Code:
PHP Code:
I would suggest you play with this on your test site. |
#9
|
|||
|
|||
![]()
Is there anyone else that can give me more specific instruction for how to do this? I can find the right place in the file that was referred to in the last post, but I still don't know exactly what code I need to put where. Please help?
|
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|