PM Notify & Guest Register bar
Posted: 10 Mar 2010, 21:27
PM Notify & Guest Register bar
Author: Stoker, Cback and Strato
Version: 1.0.0
Description: This mod was originally created by Cback for phpBB2. When I converted to phpBB3 this mod was one of the first mods I modified and installed.
Later there was added some code provided by Strato at STG.
The PM Notify & Guest Register bar shows a bar with a registration link to Guests.
For registered users it shows a bar when there is new or unread Private messages. For the last part the users have to enable Pop up window on new private message in the user control panel.
Download:
Moved to here: viewtopic.php?f=35&t=1182
Subsilver 2 Edits
Open styles/subsilver2/template/overall_header.html
Find and delete:
Find:
Add after:
Open styles/subsilver2/theme/stylesheet.css
Find:
Before add:
Author: Stoker, Cback and Strato
Version: 1.0.0
Description: This mod was originally created by Cback for phpBB2. When I converted to phpBB3 this mod was one of the first mods I modified and installed.
Later there was added some code provided by Strato at STG.
The PM Notify & Guest Register bar shows a bar with a registration link to Guests.
For registered users it shows a bar when there is new or unread Private messages. For the last part the users have to enable Pop up window on new private message in the user control panel.
Download:
Moved to here: viewtopic.php?f=35&t=1182
Subsilver 2 Edits
Open styles/subsilver2/template/overall_header.html
Find and delete:
Code: Select all
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
Code: Select all
<body class="{S_CONTENT_DIRECTION}">
Code: Select all
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT and not S_IN_UCP -->
<div id="info"><div id="infobar">
<a href="{U_REGISTER}"><img style="width: 50px; height: 50px; padding-right: 100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/reg.png" />{L_PMG_WELCOME} {SITENAME}. {L_PMG_REGISTER}<img style="width: 50px; height: 50px; padding-left:100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/reg.png" /></a>
</div></div>
<!-- ENDIF -->
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and S_USER_PM_POPUP and S_DISPLAY_PM and (S_USER_NEW_PRIVMSG or S_USER_UNREAD_PRIVMSG) -->
<div id="info"><div id="infobar">
<a href="{U_PRIVATEMSGS}"><img style="width:50px; height: 50px; padding-right: 100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/mail.png" />{L_PMG_HELLO} {S_USERNAME} {L_PMG_YOUHAVE} {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD --> {L_PMG_AND} {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --><img style="width: 50px; height: 50px; padding-left:100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/mail.png" /></a>
</div></div>
<!-- ENDIF -->
Find:
Code: Select all
/* Misc
Code: Select all
/* PM Notify & Guest Register bar
----------------------------------------*/
#info {
overflow: visible;
min-width: 750px;
width: 100%;
position: fixed;
left: 0;
z-index:200;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 1.5em;
font-weight: bold;
}
#infobar a, #infobar a:link, #infobar a:visited, #infobar a:active {
display: block;
float: left;
width:100%;
clear: both;
color: #fff;
padding: .85em 0 .85em 0;
border-bottom: .25em solid #fff;
text-align: center;
text-decoration: none;
background-image: url('./images/pmreg.png');
background-position: bottom;
background-repeat:repeat-x;
}
#infobar a:hover {
color: #fff;
background-image: url('./images/pmreg.png');
background-position: top;
background-repeat:repeat-x;
border-bottom: .25em solid #fff;
cursor: pointer;
}