vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] Email Notification Hack v0.1 (https://vborg.vbsupport.ru/showthread.php?t=2822)

08-31-2000 05:17 AM

This hack will add a link to the notification emails that are sent out to your users. Clicking on this link will disable email notification for the thread that generated the notification for that user. The hack also shows a small snippet of the new post.

You need to edit your notifyemail template and place something like this in it. Format as you see fit. $snippet is the text from the message.

Code:

Text Snippet:
~~~
$snippet
~~~

If you no longer want to receive notification of replies to this thread then please click here:
$bburl/notifyoff.php?threadid=$threadid

edit newreply.php and find:
Code:

$toemail=$useremail[email];
Directly after that place:
Code:

// Email Notification v0.1 Begin
if (strlen($message) > 160)
{ $snippet = substr($message,0,160) . "(...)";  }
else { $snippet = $message; }
// Email Notification v0.1 End

Change the two instances of 160 in the above code to the number of characters you want your text snippet to be.

Download the hack at http://www.hedgehogwheels.com/forums/notifyoff.php.txt and name it notifyoff.php

I think I am going to turn this into a full fledged email notification hack that has a centralized area to add and remove your subscribed threads and adds an icon to all threads that allows you to quickly subscribe to a thread without posting to it. Don't hold your breath on it though :)

[Edited by rangersfan on 08-31-2000 at 02:17 AM]

08-31-2000 05:21 AM

okay going to add it in a sec... and let you know :D

08-31-2000 05:24 AM

Also if you don't want to edit any of your files, then just remove the "snippet" part from your notifyemail template and you can still use the disable enmail notification part of the hack.

Eva I made a post on your forum at http://animeboards.net/forums/showth...?threadid=2058 reply to it when you get the hack up.

[Edited by rangersfan on 08-31-2000 at 02:26 AM]

08-31-2000 05:31 AM

just added the hack and replied to that thread you did... reply again and see if i get the message :D

08-31-2000 05:34 AM

You can verify it works by editing your messages and seeing that the "email notification" box is now unchecked. Remember if you make a new post and have that box checked then notifies will resume.

08-31-2000 05:37 AM

yep checked the original post and my notify is off :D ... another great hack rangersfan https://vborg.vbsupport.ru/

08-31-2000 05:39 AM

It sets it off for every post in the thread as any of them being checked will trigger an email notify.

08-31-2000 05:42 AM

i see... now all we need is Ed and vb hackers site to open it's doors and you can get your hacks up on the site :D

08-31-2000 08:07 AM

hm... would that qualify as a silent hint?

09-02-2000 02:37 AM

rangersfan:

Don't you have to have the emailnotification enabled for the user too? I have the emailnotification set to 0 for all of my members instead of being set at a default of 1. So if the emailnotification is set to zero for the user does it still allow tracking of the the thread?

Thanks,
Parker


All times are GMT. The time now is 11:16 AM.

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.01131 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete