vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   email notify hack----where? (https://vborg.vbsupport.ru/showthread.php?t=38097)

Sketch 05-01-2002 01:19 AM

email notify hack----where?
 
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:

Quote:

$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
PHP Code:

$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/showthrea...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) :)


All times are GMT. The time now is 12:27 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.01125 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete