PDA

View Full Version : email notify hack----where?


Sketch
05-01-2002, 01:19 AM
I imagine this is a hack and I can't find it anywhere. Someone, I hope, can point me in the right direction. The feature is found at sitepointforums.com. Wehn an email notification is received there is a "clip" of the posted message included in the email. I can't seem to find a hack to do this but it has to have been done somehow. Anyone can help?

Thanks.
Sketch

Steve Machol
05-01-2002, 02:31 AM
This isn't exactly what you're looking but you might be interested in it anyway. The simplest thing to do is to edit your email_notify template and include the variable:

$message

This will print the entire contents of the post rather than just a clip. Here's the email_notify template I use at one of my forums:

$bbuserinfo[username] has just replied to the message thread entitled - $threadinfo[title]. Here's the contents of that message:

~~~~~~~~~~~~~~ Message ~~~~~~~~~~~~~~~
$message
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This thread is located at:
$bburl/showthread.php?threadid=$threadinfo[threadid]&goto=newpost

There may be other replies also, but you will not receive any more notifications until you visit the board again.

Yours,
$bbtitle team

Sketch
05-01-2002, 03:21 AM
Hmmm...guess I have to figure out how to do a
$shortmessage = substr("$message",1,200); then, don't I? :D

_____

Aaron Brazell
Live the Worship Community Forums
http://www.livetheworship.com/bb

Steve Machol
05-01-2002, 03:23 AM
The trick would be in using the script, or more accurately it's output, in the email_notify template. You'd need to use phpinculde for this since php code will not parse in any other template but this one.

Logician
05-01-2002, 05:43 AM
https://vborg.vbsupport.ru/showthread.php?s=&threadid=34912 ;)

Sketch
05-01-2002, 09:42 AM
beautiful! Thanks a million, logician. ;)

Sketch

Admin
05-01-2002, 09:56 AM
Are you a new owner Sketch, BTW? :)

Sketch
05-01-2002, 03:25 PM
actually, yes. As of Monday I purchased vB and I just got the community "live" last night after upgrading from my phpbb2 forum.

Thanks for asking....or is that your way of telling me I forgot to put my name on some list somewhere in the annals of time? ;)

Sketch

Admin
05-01-2002, 04:35 PM
No, it's just what I remember you posted in another thread a while ago and you weren't licensed back then (good memory ;)), so I thought you are probably new. Congrats and enjoy vBulletin! (I know you will) :)