Code

Callum93

Madly Diligent
Joined
Mar 16, 2008
Messages
9,782
Reaction score
0
FP$
6
What is the code for adding a PM alert box when you have a new PM, like the one FP has?
 
The HTML:
Code:
<!-- IF not S_IS_BOT && not $CA_SKIP_PM_NOTIFY && S_USER_LOGGED_IN && S_DISPLAY_PM -->
	<!-- IF S_USER_NEW_PRIVMSG -->
		<div class="pm-notify-new"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div>
	<!-- ELSEIF S_USER_UNREAD_PRIVMSG -->
		<div class="pm-notify-unread"><div class="pm-notify-header">{L_PRIVATE_MESSAGES}</div><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD -->, {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a></div>
	<!-- ENDIF -->
<!-- ENDIF -->

The CSS:
Code:
.pm-notify-new, .pm-notify-unread {
	border-left: solid 1px #317FC5;
	border-right: solid 1px #2370B6;
	border-top: solid 1px #317FC5;
	border-bottom: solid 1px #2370B6;
	background: #313131 url(images/cell.gif) top left repeat-x;
	margin: 10px 0;
	padding: 10px;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
}
.pm-notify-new a, .pm-notify-new a:visited, .pm-notify-unread a, .pm-notify-unread a:visited { text-decoration: underline; }
.pm-notify-header {
	margin-bottom: 10px;
	color: #CCC;
}
.pm-notify-new, .pm-notify-unread:hover {
	border-left: solid 1px #FCF536;
	border-right: solid 1px #F0E80A;
	border-top: solid 1px #FCF536;
	border-bottom: solid 1px #F0E80A;
}
.pm-notify-new { padding: 30px; }

You'll probably have to change a few of the colour codes in the CSS to suit your board, although i'm sure you'll manage ~smile~
 
Where does this go, and what file does it go in? I have a prosilver based style.
 
Lol fun! I made mine custom, those of you that know your way around in html will get mine =P

Code:
<div class="pm-notify-new"><div class="pm-notify-header"><span style="color: red;"><b><font size='14'>{L_PRIVATE_MESSAGES}</font></span></div>We'z noticeded ya gots <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD --> and {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a><br />oh, did we'z get ja attentions? Thoughts so =P</b></div>

And yeah sbfc93, we'll need your overall_header.html file
 
Thank You, that'll work in invisionfree?

Also Ghost I need your help but I'll send you a pm about it.
 
Actually, thats just my New PM Alert one...im not sure of one thatll work with invisionfree. Best bet would be to look for one that works with IPBFree and then try it. Im sure it must be possible, because you can edit the headers -n-

Ill dig around and see if I can find anything...
 
Back
Top Bottom