The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Login Popup CLOSE BUTTON

View previous topic View next topic Go down

Login Popup CLOSE BUTTON

Post by JAN2XONLINE on 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
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Not working sir.

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Still not working sir.

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Bump. bounce

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

I did and still not working for me sir.



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

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

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

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

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

Neymar1
Forumember

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

http://www.simplyfifa.com

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by runawayhorses on 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.

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by JAN2XONLINE on 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

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Is this solved?


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


SLGray
Administrator
Administrator

Male Posts : 35670
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Not yet,

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ on 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.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Not working for me mate.

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by runawayhorses on 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.

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ on 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.



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by runawayhorses on 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 {

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ on 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;
}



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by runawayhorses on 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;
    }

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by Sir Chivas™ on 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



Attention!
- Please provide your forum URL at all times.
- When the issue is solved, please mark it as solved.



Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6756
Reputation : 428
Language : English, Spanish, and French
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

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

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

Re: Login Popup CLOSE BUTTON

Post by runawayhorses on 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

runawayhorses
Hyperactive

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

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: Login Popup CLOSE BUTTON

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

Yea, I hope so! xD

JAN2XONLINE
Forumember

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

http://animeph.4umer.com/

Back to top Go down

View previous topic View next topic Back to top


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