Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 08-31-2000
Last Update: Never
Installs: 0
No support by the author.
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.
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]
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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
I LOVE this idea. I would would much prefer having a central area to go to when you want to track a thread. For example if you were to want to track a thread you would just click a tracking button in the reply area and it would take you to a page that would allow you to enable or disable the tracking of this thread. If you didn't want to track it any more you would click on the same tracking button and you could now disable it.
Originally posted by rangersfan 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
An idea for the new version:
In addition to subscribing to threads, what about enabling people to recieve a notification when specific user post a message?
Rangersfan - first off thanks for the hack. Second I keep getting my notification emails looking like this now that I installed this hack:
Code:
Hello, Bad ?ss with a Gun! has just replied to your thread entitled - About tired of it..... - in the Flames Forum forum of PaintballCity.com Message Boards. This thread is located at: http://forums.paintballcity.com/show...threadid=51257 If you no longer want to receive notification of replies to this thread then please click here: http://forums.paintballcity.com/noti...threadid=51257 Post Preview: ~~~~~~~~~~~~~ Originally posted by Bungalow See your opinion doesn't count because you are a moderator, therefor you will take up for Jim because you are s(...) ~~~~~~~~~~~~~ There may be other replies also, but you will not receive any more notifications until you visit the thread.
It does not keep the line breaks that I have in my otifyemail template.