Page 1 of 11

PM Notify & Guest Register bar

Posted: 10 Mar 2010, 21:27
by Stoker
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:

Code: Select all

<!-- IF S_USER_PM_POPUP -->
   if ({S_NEW_PM})
   {
      popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
   }
<!-- ENDIF -->
Find:

Code: Select all

<body class="{S_CONTENT_DIRECTION}">
Add after:

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 -->
Open styles/subsilver2/theme/stylesheet.css
Find:

Code: Select all

/* Misc
Before add:

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;
}

Re: PM Notify & Guest Register bar

Posted: 27 Mar 2010, 17:56
by apnaitaly
can you Please Tell me how i can set Register bar like which you have ?


Same Colour & Images ,

Thanks

Re: PM Notify & Guest Register bar

Posted: 28 Mar 2010, 17:42
by Fire-Fox
Remove for now.

Can post it again, if Stoker lets me :)

Don't wanna post mods, without his okay :)

Re: PM Notify & Guest Register bar

Posted: 28 Mar 2010, 18:20
by cisco007
I see that Stoker let you post this!

Re: PM Notify & Guest Register bar

Posted: 28 Mar 2010, 21:28
by apnaitaly
any Help , how i can set Register bar & Pop like here

same Colours & Pictures

Re: PM Notify & Guest Register bar

Posted: 29 Mar 2010, 18:04
by dlraid
i would like to have in same color without images

Re: PM Notify & Guest Register bar

Posted: 01 Apr 2010, 06:25
by b4t4k
...

Re: PM Notify & Guest Register bar

Posted: 03 Apr 2010, 01:52
by IpHeX
Please, any Help , how we can set Register bar & Pop like here

same Colours & Pictures

Re: PM Notify & Guest Register bar

Posted: 03 Apr 2010, 02:13
by cisco007
guys please, if Stoker wants this new version he will release it when and if he wants!

Re: PM Notify & Guest Register bar

Posted: 22 Apr 2010, 07:30
by pororo
Looks good. Will this work with Prosilver SE theme?