Login Popup CLOSE BUTTON
5 posters
Page 1 of 1
Login Popup CLOSE BUTTON
Is it possible to put a close button to the login popup instead of "Do not display again" button?
Re: Login Popup CLOSE BUTTON
Did you remove it yourself? Or did the code Rideem provided make it disappear or what?
Re: Login Popup CLOSE BUTTON
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.

Re: Login Popup CLOSE BUTTON
@rideem I removed it just now. Try again. 
@runawayhorses It is perfectly fine for me.
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

@runawayhorses It is perfectly fine for me.

BTW guys, runaway helped me. Can you try his codes?
http://runawayhorses.alldiscussion.net/t8986-login-popup-close-button
Re: Login Popup CLOSE BUTTON
Is this solved?


Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Login Popup CLOSE BUTTON
Hi,
I'm not an expert in JS, but here's my try.
CSS
Hope this helps.
Regards,
Sir Chivas.
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.

Regards,
Sir Chivas.
Sir Chivas™- Helper
-
Posts : 6891
Reputation : 439
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Login Popup CLOSE BUTTON
@ 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.
Re: Login Popup CLOSE BUTTON
Ah,
The code might work now, I spotted inside your CSS this,
Remove it and add either Runawayhorses' or Rideem3s' code.
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™- Helper
-
Posts : 6891
Reputation : 439
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Login Popup CLOSE BUTTON
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 {
Re: Login Popup CLOSE BUTTON
So,
If he uses yours, it'll be something like this:
Remove this from your CSS:
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™- Helper
-
Posts : 6891
Reputation : 439
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Login Popup CLOSE BUTTON
Edit: correct, that's exactly what I wrote and posted on my forum, but he said it didn't work for his forum.. 
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:

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;
}
Re: Login Popup CLOSE BUTTON
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. 

Sir Chivas™- Helper
-
Posts : 6891
Reputation : 439
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||
Re: Login Popup CLOSE BUTTON
@ 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.
@ JAN2XONLINE, OK, you'll like phpbb3 its a good one, I used to have that version.


» Login popup Close button
» How to creat login popup when user click to the Login button?
» How to create popup but no login popup ????
» Need a login popup???
» Login Popup Help
» How to creat login popup when user click to the Login button?
» How to create popup but no login popup ????
» Need a login popup???
» Login Popup Help
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum