![]() |
nice hack :) very useful! thanks for sharing it with us all ;)
|
About letting the PM go and then display the message?
|
I tried the below with
$sendto["$username"] = true; $tostring["$user[userid]"] = $user['username']; before and after the actual error message or without it at all, like your code I get no error messages and all PM went thru. else if ($user['awaystatus'] == 1) { $awaysincedate = vbdate($vboptions['dateformat'], $user['awaysince']); if ($user['awaymessage'] == "") { $awaymsg = "not given"; } else { $awaymsg = $user['awaymessage']; } $sendto["$username"] = true; $tostring["$user[userid]"] = $user['username']; eval('$pmuseraway[] = "' . fetch_phrase('userawaynopm', PHRASETYPEID_ERROR) . '";'); } |
OK, try this if you can. Use the original private.php file and find:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
---------- John |
Quote:
Sorry, not enough time here for that. I admit though, if someone can come up with it, I'll use it too. Rgds ---------- John |
Quote:
If not, here is the code you can use. In your private.php, find: PHP Code:
PHP Code:
I hope this helps. Rgds -------------- John |
Quote:
|
Quote:
|
Quote:
|
Quote:
Just to let you know though, I stopped using this mod. I replaced it in my forums with the e-mail warning one. I think it is better that way, your PM goes to the recipient, even if he is away, and you get back an e-mail saying that the recipient is away and he will get your message when he returns. A PM would be a more elegant solution, but I do not want to get involved with all the checks necessary to send a PM. The e-mail is sent by the admin account, so users will get it one way or another. Rgds |
All times are GMT. The time now is 03:30 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|