Page 4 of 11

Re: PM Notify & Guest Register bar

Posted: 13 Jul 2010, 06:36
by neuropass
Stoker, would it be possible to have the sender and the subject line in the popup?

Re: PM Notify & Guest Register bar

Posted: 13 Jul 2010, 07:23
by Stoker
What if you have 3 new messages and maybe 2 unread?
But no, I wont be doing something like that.

Re: PM Notify & Guest Register bar

Posted: 21 Jul 2010, 18:00
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..

Re: PM Notify & Guest Register bar

Posted: 21 Jul 2010, 22:48
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

Re: PM Notify & Guest Register bar

Posted: 22 Jul 2010, 15:49
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.

Re: PM Notify & Guest Register bar

Posted: 23 Jul 2010, 20:36
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

Re: PM Notify & Guest Register bar

Posted: 23 Jul 2010, 22:01
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:

Re: PM Notify & Guest Register bar

Posted: 23 Jul 2010, 22:52
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 ?

Re: PM Notify & Guest Register bar

Posted: 24 Jul 2010, 02:48
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!

Re: PM Notify & Guest Register bar

Posted: 24 Jul 2010, 02:53
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.