TWTCommish
15 Jan 2002, 15:26
Alright, this is pretty straightforward. Using this, your users will be redirected right to their most recent PM, rather than just their Inbox. Furthermore, you'll be able to use the username and title of the message in the popup. Only known downside: if they have more than one PM, it just takes them to the most recent one. I might work on this later to let them know that they've got a few waiting for them, but I've found that this is a very minor problem that rarely comes up.
This is in the Beta forum for one simple reason: I had trouble putting it together, and strongly suspect there's an easier way to do this. I figured I'd take a chance and post it anyway. Started off just for my own board, but I found it so useful I thought I'd post it. Here's how it's done:
Open global.php in your main forums directory. Find this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
RIGHT after it (before the eval() line), put this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Save and upload. Then, edit the template head_newpm. You can now use $pm_popup_id, $pm_popup_username, and $pm_popup_title within this template to refer to the ID of the PM, the username of the person who sent it, and the title of the message.
I'm sure you can all figure out for yourselves from then on how to get it to redirect and all that. Here's the template I'm using:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Enjoy! Screenshot attached. :) Please let me know if I'm being a moron, if I've missed something, etc.
This is in the Beta forum for one simple reason: I had trouble putting it together, and strongly suspect there's an easier way to do this. I figured I'd take a chance and post it anyway. Started off just for my own board, but I found it so useful I thought I'd post it. Here's how it's done:
Open global.php in your main forums directory. Find this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
RIGHT after it (before the eval() line), put this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Save and upload. Then, edit the template head_newpm. You can now use $pm_popup_id, $pm_popup_username, and $pm_popup_title within this template to refer to the ID of the PM, the username of the person who sent it, and the title of the message.
I'm sure you can all figure out for yourselves from then on how to get it to redirect and all that. Here's the template I'm using:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Enjoy! Screenshot attached. :) Please let me know if I'm being a moron, if I've missed something, etc.