PDA

View Full Version : Email URL Notification Hack


08-08-2000, 11:27 PM
How can I change it so that when I (or a user) receives an email notification, it gives the actual URL (including #post) so that when you click on it, it goes directly to the message you haven't read. Now you have to wade through all the messages (and if you have a 30+post thread - that's a lot of messages).

08-09-2000, 02:31 AM
Try this,
Open up the "notifyemail" template and change this line:

$bburl/showthread.php?threadid=$threadid


To this:

$bburl/showthread.php?threadid=$threadid#$postid


This is untested but it should work. Let me know.

~Chris

08-09-2000, 02:37 AM
After looking more closely I dont think that will work for multipage threads :(

You could do this:

$bburl/showthread.php?goto=newpost&threadid=$threadid


But that would just take them to the last post in their thread.

Maybe something like this would work:

$bburl/showthread.php?goto=newpost&threadid=$threadid#$postid


Im just guessing now, but hopefully one of those will work for you.

~Chris

08-09-2000, 03:32 AM
change the line in the notifyemail template to this:


$bburl/showthread.php?threadid=$threadid&goto=newpost


That will go to the first unread post in the thread.



[Edited by rangersfan on 08-09-2000 at 12:34 AM]