The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    PopUp Inbox

    avatar
    Seifer
    New Member


    Posts : 3
    Reputation : 1
    Language : English

    PopUp Inbox Empty PopUp Inbox

    Post by Seifer January 26th 2014, 3:38 pm

    Hello. I have been trying all night to get just the inbox to pop open onto the screen. I have a version made but it pops out a whole new webpage. Does anyone know how to make just the inbox pop out?

    Here is a link to my Forum: http://animesocial.forumotion.com/

    JavaScript
    Code:
    jQuery(document).ready(function(){
    jQuery('body').append('<span id="privateButton" title="Open/Close Inbox">Open Inbox</span>
    <div id="privateBox"><iframe src="/privmsg?folder=inbox&nid=3"></iframe></div>');
    jQuery('#privateBox').hide();
    jQuery('#privateButton').css('position', 'fixed').css('right', '0px').css('top', '30px');
    jQuery('#privateBox iframe').css('position', 'fixed').css('right', '10px').css('top', '75px');
    if(!document.getElementById('logout')){
    jQuery('#privateButton').hide();
    jQuery('#privateBox').hide();}
    jQuery('#privateButton').click(function(){
    jQuery('#privateBox').fadeToggle();
    });
    });
    Css
    Code:
    /*PrivateBox*/
        #privateButton{
        box-shadow:0px 10px 6px rgba(255,255,255, 0.2) inset, 0px -10px 6px rgba(0,0,0, 0.2) inset;
        padding:10px 20px 10px 20px;
        background-color:   #2C3539;
        border:1px solid #382F2B;
        font-weight:bold;
        font-size:10px;
        z-index:999;
        color:   #fff;
        }
        #privateButton:hover{
        cursor:pointer;
        color:   #E5E4E2;
        background-color:#565051;
        }
        #privateBox iframe{
        z-index:999;
        border:none;
        height:50%;
        width:65%;
        }


    Last edited by Seifer on January 26th 2014, 3:52 pm; edited 2 times in total (Reason for editing : Code, Url)
    Mike
    Mike
    Hyperactive


    Male Posts : 4255
    Reputation : 471
    Language : English, HTML, CSS
    Location : Loveland, Colorado

    PopUp Inbox Empty Re: PopUp Inbox

    Post by Mike January 27th 2014, 9:53 pm

    Are you putting the script on every page thru the javascript manager?
    Try putting it into the javascript manager, and then don't activate it for any pages, copy the link and in the header of your forum, or if you have templates put:

    Code:
    <script src="LINK TO JAVASCRIPT FILE" type="text/javascript"></script>

    This will make sure that your forum recognizes it for every page.
    avatar
    Seifer
    New Member


    Posts : 3
    Reputation : 1
    Language : English

    PopUp Inbox Empty Re: PopUp Inbox

    Post by Seifer January 30th 2014, 11:35 pm

    Thanks but it does not work. Maybe you are misunderstanding what I am asking?
    avatar
    Seifer
    New Member


    Posts : 3
    Reputation : 1
    Language : English

    PopUp Inbox Empty Re: PopUp Inbox

    Post by Seifer February 2nd 2014, 2:56 am

    Here is a Test account.

    Username: TestAccount123
    Password: Testpassword

      Current date/time is June 3rd 2024, 1:42 am