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.

Login Popup CLOSE BUTTON

5 posters

Go down

Login Popup CLOSE BUTTON  Empty Login Popup CLOSE BUTTON

Post by JAN2XONLINE Sat Feb 16, 2013 9:28 pm

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Mon Feb 18, 2013 2:34 am

Not working sir.
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Mon Feb 18, 2013 6:13 pm

Still not working sir.
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Tue Feb 19, 2013 9:38 pm

Bump. bounce
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Tue Feb 19, 2013 9:43 pm

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Tue Feb 19, 2013 10:20 pm

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

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by Neymar1 Wed Feb 20, 2013 2:15 am

Did you remove it yourself? Or did the code Rideem provided make it disappear or what?
Neymar1
Neymar1
Forumember

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

http://www.simplyfifa.com

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by runawayhorses Thu Feb 21, 2013 5:57 am

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
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Thu Feb 21, 2013 6:18 am

@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
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by SLGray Thu Feb 21, 2013 1: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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Thu Feb 21, 2013 5:09 pm

Not yet,
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ Thu Feb 21, 2013 8:02 pm

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.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Thu Feb 21, 2013 8:14 pm

Not working for me mate.
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by runawayhorses Thu Feb 21, 2013 8:33 pm

@ 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.
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ Thu Feb 21, 2013 8:46 pm

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.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by runawayhorses Thu Feb 21, 2013 9:08 pm

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 {
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ Thu Feb 21, 2013 9:18 pm

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;
}
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by runawayhorses Thu Feb 21, 2013 10:01 pm

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;
    }
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ Thu Feb 21, 2013 10:44 pm

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
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Thu Feb 21, 2013 10:59 pm

I'll try this later guys. I'm upgrading to phpbb3.
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by runawayhorses Fri Feb 22, 2013 2: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
avatar
runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Login Popup CLOSE BUTTON  Empty Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE Fri Feb 22, 2013 4:30 am

Yea, I hope so! xD
JAN2XONLINE
JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum