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:AFTER ADD:Code:<div id="page-body">OPEN: language/en/common.phpCode:<!-- 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 -->
FIND:AFTER ADD:Code:'NEW_MESSAGES' => 'New messages',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:AFTER ADD:Code:<div id="menubar">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 🙂
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.