PM Notification Box

OscarG

Seasoned Veteran
Joined
Jul 13, 2010
Messages
3,043
Reaction score
0
FP$
709
Is there a way to make a similar box that FP has for notification PM's?
 
there is a snippet for that 😉

Probably one of the shortest snippets I've done so far, but something I wanted to have on this site. Basically, it produces a little box exactly like the "disable board" information box. The box only shows if you have unread private messages. There is also a link to take you straight to your inbox. Sometimes I miss getting PM's - i.e. maybe don't notice them.

OPEN: styles/prosilver/template/overall_header.html
FIND:
Code:
	<div id="page-body">
AFTER ADD:
Code:
		 <!-- IF S_USER_UNREAD_PRIVMSG --> 
		<div id="message" class="rules">
			<div class="inner"><span class="corners-top"><span></span></span>
				<strong>{L_INFORMATION}:</strong> {L_NEW_PM_NOTICE} - Click <a href="{U_PRIVATEMSGS}">here</a> to go to your Inbox.
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<!-- ENDIF -->
OPEN: language/en/common.php
FIND:
Code:
	'NEW_MESSAGES'				=> 'New messages',
AFTER ADD:
Code:
	'NEW_PM_NOTICE'			=> 'You have new messages waiting to be read',

I know this goes against what I've said before, but as it's such a small and easy snippet, here is some code for subSilver2. This is a one-off and probably won't be provided again 😉

OPEN: styles/subSilver2/template/overall_header.html
FIND:
Code:
	<div id="menubar">
AFTER ADD:
Code:
	<!-- IF S_USER_UNREAD_PRIVMSG --> 
		<table class="tablebg" width="100%" cellspacing="1" cellpadding="0" style="margin-top: 5px;">
		<tr>
			<td class="row1">
				<p class="breadcrumbs"><strong>{L_INFORMATION}:</strong> {L_NEW_PM_NOTICE} - Click <a href="{U_PRIVATEMSGS}">here</a> to go to your Inbox.</p>
			</td>
		</tr>
		</table>
		<br />
	<!-- ENDIF -->

Remember to purge your cache after makeing template changes.
To test that this works, send a PM to yourself. As soon as you see the confirmation screen, go straight to your board index or another page e.g faq 🙂
 
Your welcome you will find that and more snippers like that on my site 😉
 
Same way but instead of prosilver, go into the 610nm folder and follow the rest of the instructions given.
 
Back
Top Bottom