Login Popup CLOSE BUTTON  Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
5 posters

    Login Popup CLOSE BUTTON

    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 17th 2013, 4:28 am

    Is it possible to put a close button to the login popup instead of "Do not display again" button?
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 18th 2013, 9:34 am

    Not working sir.
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 19th 2013, 1:13 am

    Still not working sir.
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 20th 2013, 4:38 am

    Bump. bounce
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 20th 2013, 4:43 am

    I did and still not working for me sir.

    Login Popup CLOSE BUTTON  Login10

    http://animepinoy.4rumer.com/h1-home
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 20th 2013, 5:20 am

    I don't have any close button for my login popup sir.
    Neymar1
    Neymar1
    Forumember


    Male Posts : 406
    Reputation : 28
    Language : HTML, CSS, and a bit of JavaScript
    Location : Scotland

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by Neymar1 February 20th 2013, 9:15 am

    Did you remove it yourself? Or did the code Rideem provided make it disappear or what?
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by runawayhorses February 21st 2013, 12:57 pm

    His forum is very wide too wide for my screen size monitor (1024x768) and there are no scrollbars to speak of, no horizontal and no vertical scrollbars, so unfortunately I can only see half of the login popup box because only half of his forum is accessible, the other half is cut-off from view and no way to scroll over. There seems to be a lot of scripts running so I think the javascript for the close button is being interfered with, but I can't see his popup box in its entirety to check the button. Login Popup CLOSE BUTTON  Mouais
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 21st 2013, 1:18 pm

    @rideem I removed it just now. Try again. Smile

    @runawayhorses It is perfectly fine for me. Confused I'm not sure why though it is becoming like that for you.

    BTW guys, runaway helped me. Can you try his codes?

    http://runawayhorses.alldiscussion.net/t8986-login-popup-close-button
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51556
    Reputation : 3519
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by SLGray February 21st 2013, 8:24 pm

    Is this solved?



    Login Popup CLOSE BUTTON  Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 22nd 2013, 12:09 am

    Not yet,
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6983
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by Sir Chivas™ February 22nd 2013, 3:02 am

    Hi,

    I'm not an expert in JS, but here's my try.

    Code:
    $(function() {
    if (!document.getElementById('logout') && document.getElementById('login_popup_close'))
    document.getElementById('login_popup_close').value = "Do not display again";
    });

    CSS
    Code:
    #login_popup_buttons input {
    margin-left: 6px;
    }

    Hope this helps. fufufu

    Regards,
    Sir Chivas.
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 22nd 2013, 3:14 am

    Not working for me mate.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by runawayhorses February 22nd 2013, 3:33 am

    @ Sir Chivas, he wants it like my login popup box close button is, which I posted the codes in that topic, but he says its not working from him. Those are the exact same codes I use for my login popup close button. To see it in action log-out of my forum and view it. Maybe you can see why it might not be working for his phpbb2 forum but it is for my Invision.
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6983
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by Sir Chivas™ February 22nd 2013, 3:46 am

    Ah,

    The code might work now, I spotted inside your CSS this,
    Code:
    #login_popup_close {
    display: none;
    }

    Remove it and add either Runawayhorses' or Rideem3s' code.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by runawayhorses February 22nd 2013, 4:08 am

    If he uses the javascript I'm using the CSS selector needs to be this, with no display:none in it.

    Code:
    #new_popup_close {
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6983
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by Sir Chivas™ February 22nd 2013, 4:18 am

    So,

    If he uses yours, it'll be something like this:

    Remove this from your CSS:
    Code:
    #login_popup_close {
    display: none;
    }

    Go to AP>>Modules>>Javascript codes management>>

    Create a New Javascript and copy this code below "In all the pages", and title it "Reworded login popup close button" and submit.

    Javascript:
    Code:
    $(function() {
        $('#login_popup_close').before('<input id="new_popup_close" type="button" class="button" value="Close" />');
        $('#login_popup_close').remove();
        $('#new_popup_close').click(function(){
        $('#login_popup').remove();
        });
        });

    Then go to AP>>Display>>Colors>>CSS Stylesheet>>

    Copy this code in the stylesheet. For the background image just add your own image URL you would like to use to the place provided in the code. The image needs to be about 130px x 35px.

    CSS:
    Code:

    #new_popup_close {
    color:#FFFFFF;
    background-color: #000000;
    background-image: url('URL OF IMAGE GOES HERE');
    background-position: center;
    width: 100px;
    height: 23px;
    font-size: 10px; 
    border: 0px solid #282828; 
    border-radius:2px;
    }
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by runawayhorses February 22nd 2013, 5:01 am

    Edit: correct, that's exactly what I wrote and posted on my forum, but he said it didn't work for his forum.. Wink

    I don't know if this has to be removed or not, its not in my CSS so I guess it wouldn't hurt to remove it, but if its necessary to remove it or not I do not know:

    Code:
        #login_popup_close {
        display: none;
        }
    Sir Chivas™
    Sir Chivas™
    Helper
    Helper


    Male Posts : 6983
    Reputation : 457
    Language : EN, FR, ES
    Location : || CSS || HTML || Graphics Designs || Support ||

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by Sir Chivas™ February 22nd 2013, 5:44 am

    When I remove it, I'm able to see the button, "Do not display again." So, I think that would do the trick. I'm not an expert, but lets just wait and see. Very Happy
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 22nd 2013, 5:59 am

    I'll try this later guys. I'm upgrading to phpbb3.
    avatar
    runawayhorses
    Hyperactive


    Male Posts : 2537
    Reputation : 166
    Language : English
    Location : United States

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by runawayhorses February 22nd 2013, 9:52 am

    @ Sir Chivas, Yes it makes sense that part would need to be removed doesn't it, that was probably hiding the new close button.. lol

    @ JAN2XONLINE, OK, you'll like phpbb3 its a good one, I used to have that version. Smile
    JAN2XONLINE
    JAN2XONLINE
    Forumember


    Male Posts : 943
    Reputation : 32
    Language : Tagalog, English
    Location : Alberta, Canada

    Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

    Post by JAN2XONLINE February 22nd 2013, 11:30 am

    Yea, I hope so! xD