PM Notify & Guest Register bar

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: PM Notify & Guest Register bar

Post by neuropass »

Stoker, would it be possible to have the sender and the subject line in the popup?
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: PM Notify & Guest Register bar

Post by Stoker »

What if you have 3 new messages and maybe 2 unread?
But no, I wont be doing something like that.
Board rules! No PM support
User avatar
neuropass
BBCoder IV
BBCoder IV
Posts: 173
Joined: 11 Apr 2010, 02:33

Re: PM Notify & Guest Register bar

Post by neuropass »

Stoker » 13 Jul 2010, 07:23 wrote:What if you have 3 new messages and maybe 2 unread?
But no, I wont be doing something like that.
good point i wasn't thinking about it..
Modd it up! TweakScene ;-) Support us! || Follow us ||

Image
User avatar
GHOSTWRiTAZ
BBCoder II
BBCoder II
Posts: 20
Joined: 28 May 2010, 01:09

Re: PM Notify & Guest Register bar

Post by GHOSTWRiTAZ »

Hey Stoker, excellent mod m8, if I may say so, well I tried it on twilightbb (based on Subsilver2), there are some problems with the mod.

-first is doesn't hover over the header/banner ! instead it adds itself before ? very strange !
-second it ain't transparent
-third the height of the bar/font is very small !

what could be the problem m8, I'm hoping for some support on your side cause I love this mod.

Best Regards,
G
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: PM Notify & Guest Register bar

Post by Stoker »

It should look like the screenshots in first post.
And it sou nds like you didnt add the css to the stylesheet or maybe you forgot to refresh the theme in ACP or your browser cache.
Board rules! No PM support
User avatar
GHOSTWRiTAZ
BBCoder II
BBCoder II
Posts: 20
Joined: 28 May 2010, 01:09

Re: PM Notify & Guest Register bar

Post by GHOSTWRiTAZ »

Stoker » 22 Jul 2010, 15:49 wrote:It should look like the screenshots in first post.
And it sou nds like you didnt add the css to the stylesheet or maybe you forgot to refresh the theme in ACP or your browser cache.
Hey Stoker m8,
tnx it worked, seemed I forgot to refresh the theme :D

Stoker one small question if I may, which code is added to the .css

to get the images between the text like here on your site. Example see below
[hsimg2=http://i25.tinypic.com/73djd5.png]Example[/hsimg2]

Tnx in advance.
Best Regards,
G
User avatar
Steve
BBCoder VI
BBCoder VI
Posts: 847
Joined: 05 Mar 2010, 01:10
BBCodes: 2000
Favourite BBCode: p**n tube
Favourite MOD: Non of Stokers

Re: PM Notify & Guest Register bar

Post by Steve »

ok try this if installed.

Open styles/prosilver/template/overall_header.html

find:

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}">Welcome to {SITENAME}. Click here to register</a>
</div></div>
<!-- ENDIF -->
replace with:

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"><img src="{T_THEME_PATH}/images/image_name.gif" alt="image pinched contact admin!" /><a href="{U_REGISTER}">Welcome to {SITENAME}. Click here to register</a><img src="{T_THEME_PATH}/images/image_name.gif" alt="image stolen contact admin!" /></div></div>
<!-- ENDIF -->
the bit i added was this either side:

Code: Select all

    <img src="{T_THEME_PATH}/images/image_name.gif" alt="image stolen contact admin!" />
replace image_name.gif with your actual image name and file format and must be located in your styles/theme/images folder :thumb:
Steve wrote: 14 Nov 2024, 16:45 It's happy bastard day!
User avatar
GHOSTWRiTAZ
BBCoder II
BBCoder II
Posts: 20
Joined: 28 May 2010, 01:09

Re: PM Notify & Guest Register bar

Post by GHOSTWRiTAZ »

Hey Steve©,
tnx for your quick reply but unfortunally it didn't work, did exactly what you said, refreshed theme and template but it didn't show the image as explained and changed in the above tutorial !

I was thinking that it should be changed here , but than again I could be wrong :D
Open styles/subsilver2/theme/stylesheet.css
At the very bottom, on a new line add:

Code: Select all

    #info {
        overflow: visible;
        width: 100%;
        position: fixed;
        left: 0;
        z-index:2;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 1.5em;
        font-weight: bold;
        background-color :#E5E5E5;
    }

      #infobar a, #infobar a:link, #infobar a:visited, #infobar a:active
      {
        display: block;
        float: left;
        width:100%;
        clear: both;
        color: #d50000;
        padding: .55em 0 .55em 0;
        border-bottom: .25em solid #2A7BBA;
        text-align: center;
        text-decoration: none;
        background-color :#E5E5E5;

      }

      #infobar a:hover
      {
        color: black;
        background:#F4F4F4;
        border-bottom: .25em solid #b22222;
        cursor: pointer;
      }
hope to hear from you.
Best Regards,

Okay I did this :

Open styles/subsilver2/template/overall_header.html

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}">Welcome to {SITENAME}. Click here to register</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"><img src="./images/mail.png" alt="" style="width: 60px; height: 50px; padding-left: 300px; vertical-align: middle;" />
    <a href="{U_PRIVATEMSGS}">Hello {S_USERNAME} - You have {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD --> and {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --></a>
<img src="./images/mail.png" alt="" style="width: 60px; height: 50px; padding-right: 300px; vertical-align: middle;" />
    </div></div>
    <!-- ENDIF -->
so I've added :

Code: Select all

<img src="./images/mail.png" alt="" style="width: 60px; height: 50px; padding-left: 300px; vertical-align: middle;">
and

Code: Select all

<img src="./images/mail.png" alt="" style="width: 60px; height: 50px; padding-left: 300px; vertical-align: middle;">
Result : Image(s) mail.png are shown but I get twice the PM notify bar, strange what am I doing wrong ?
Last edited by GHOSTWRiTAZ on 24 Jul 2010, 03:21, edited 3 times in total.
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: PM Notify & Guest Register bar

Post by cisco007 »

are you saying you added html and php to the css files? you do not add that to the css files, css files are only for styling!
User avatar
GHOSTWRiTAZ
BBCoder II
BBCoder II
Posts: 20
Joined: 28 May 2010, 01:09

Re: PM Notify & Guest Register bar

Post by GHOSTWRiTAZ »

cisco007 » 24 Jul 2010, 02:48 wrote:are you saying you added html and php to the css files? you do not add that to the css files, css files are only for styling!
yup, you're right m8 wrote it down wrong what I mean was : Open styles/subsilver2/template/overall_header.html it's late sorry :?

didn't change the stylesheet.css, except added the code from #1 by Stoker,

anyways I'm getting twice the bar, any ideas how come m8 tnx.
Locked