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.

using JS for login : login isn't working after domain change

4 posters

Page 1 of 2 1, 2  Next

Go down

In progress using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 9:20 pm

Hello,
I bought a domain name from goDaddy and linked it with my forum. The problem is when I try to login from the new domain I can't, but when I login from the forumotion url it's all good.

So if I access forum from this URL I can't login:
http://duelingrealm.com/

But I can from this:
http://testacademy.forumgreek.com/

I also have this JS for login
Code:
(function() {
  var lang = {
    title : 'Please enter your username and password to log in.',
    username : 'Username : ',
    password : 'Password : ',
    automatic : 'Log in automatically : ',
    login : 'Log in',
    register : 'Register',
    forgot : 'I forgot my password',
 
    redirect : window.location.href // page the user is redirected to upon login
  };
 
  // quick login theme
  document.write('<style type="text/css">#fa_quick_login{color:#333;font-size:13px;font-family:Arial,Verdana,Sans-serif;background:#FFF;border:1px solid #CCC;border-radius:3px;box-shadow:0 6px 12px rgba(0,0,0,.175);margin-top:20px;position:fixed;z-index:40000;width:400px}#fa_quick_login:before{content:url(http://i21.servimg.com/u/f21/18/21/41/30/arr10.gif);position:absolute;right:15px;top:-10px}#fa_right a.rightHeaderLink[href$="/login"]{padding:0 6px}#fa_right a.rightHeaderLink.fa_login_actif{color:#333!important;background-color:#FFF!important}#fa_quick_login a.gensmall{color:#069!important;}#fa_quick_login a.gensmall:hover{color:#333}#fa_quick_login input{color:#333;background:#FFF;border:1px solid #CCC;border-radius:3px;padding:3px;margin:2px;cursor:text}#fa_quick_login input:hover{border-color:#593703}#fa_quick_login input:focus{border-color:#333;outline:0}#fa_quick_login input.mainoption{color:#593703;border:1px solid #593703;background:0 0;font-weight:700;display:block;width:100%;padding:6px 3px;margin-top:10px;cursor:pointer;transition:300ms}#fa_quick_login input.mainoption:hover{color:#FFF;background:#593703}#fa_quick_login input.mainoption:focus{color:#FFF;background:#8B5;border-color:#8B5}#fa_quick_login table.forumline,#fa_quick_login td,#fa_quick_login th,#fa_quick_login tr{border:none!important;background:0 0!important;border-radius:0!important;white-space:normal}#fa_quick_login .thHead{color:#333;font-size:13px;font-family:"Trebuchet MS",Arial,Verdana,Sans-serif}#fa_quick_login td{font-size:13px;padding:3px}</style>');
 
  $(function() {
    if (!_userdata.session_logged_in && _userdata.activate_toolbar) {
      var container = document.createElement('DIV');
      container.id = 'fa_quick_login';
      container.style.display = 'none';
      container.innerHTML = '<form action="/login" method="post" name="form_login"><table class="forumline" width="100%" border="0" cellspacing="0" cellpadding="4" align="center"><tbody><tr><th colspan="3" class="thHead" nowrap="nowrap" height="25">' + lang.title + '</th></tr><tr><td width="100%" align="center" class="row1"><table cellpadding="0" cellspacing="0" border="0"><tbody><tr><td class="row1 align_gauche"><table width="100%" border="0" cellspacing="1" cellpadding="0"><tbody><tr><td class="align_droite" width="50%"><span class="gen">' + lang.username + '</span></td><td width="50%"><input type="text" name="username" value="" size="25" maxlength="40"></td></tr><tr><td class="align_droite"><span class="gen">' + lang.password + '</span></td><td><input type="password" name="password" size="25" maxlength="32"></td></tr><tr align="center"><td colspan="2"><span class="gen">' + lang.automatic + '<input type="checkbox" name="autologin" checked="checked"></span></td></tr><tr align="center"><td colspan="2"><input type="hidden" name="redirect" value="' + lang.redirect + '"><input type="hidden" name="query" value=""><input type="hidden" name="tt" value="1"><input class="mainoption" type="submit" name="login" value="' + lang.login + '"></td></tr><tr align="center"><td colspan="2"><br><span class="gensmall"><a class="gensmall" href="/register">' + lang.register + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="gensmall" href="/profile?mode=sendpassword">' + lang.forgot + '</a></span></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></form>';
      document.body.appendChild(container);
 
      $(function() {
        var right = document.getElementById('fa_right');
 
        if (right) {
          right.firstChild.onclick = function() {
            var login = document.getElementById('fa_quick_login'), offset = this.getBoundingClientRect(), loffset;
 
            if (login) {
              if (/none/.test(login.style.display)) {
                login.style.display = '';
             
                loffset = login.getBoundingClientRect();
                login.style.top = offset.top + 30 + 'px';
                login.style.left = offset.left - ((loffset.right - loffset.left) - (offset.right - offset.left)) + 'px';
             
                login.getElementsByTagName('FORM')[0].username.focus();
                this.className += ' fa_login_actif';
              } else {
                login.style.display = 'none';
                this.className = this.className.replace(/fa_login_actif/, '');
              }
            }
         
            return false;
          };
        }
      });
    }
  });
}());

$(function() {
    if (_userdata["session_logged_in"] == "0") {
        /* PERSONNALISATION DES TEXTES */
      var txt_username = "Username:",
          txt_password = "Password:",
            txt_login = "Login",
            txt_remember = "Auto-Login next time",
            txt_guest = "Not registred?",
            txt_create = "Sign Up",
            txt_lost = "Forgot password?",
            txt_recover = "Recover";
        /* END OF PERSONALISATION - Do not modify the code below */
 
        $('body').prepend('<div id="quickloginform_overlay" style="display:none;z-index:2147483647"></div><div id="quickloginform" style="display:none;z-index:2147483647"><form id="fa-login-form" class="login-form" name="form_login" method="post" action="/login"><input type="text" maxlength="40" name="username" placeholder="' + txt_username + '" required=""><input type="password" maxlength="32" name="password" placeholder="' + txt_password + '" required=""><button name="login">' + txt_login + '</button><label><p>' + txt_remember + ' <input type="checkbox" style="vertical-align: middle;" name="autologin"></p></label><p style="float:left; text-align:left;">' + txt_guest + '<br><a href="/register">' + txt_create + '</a></p><p style="float:right; text-align:right;">' + txt_lost + '<br><a href="/profile?mode=sendpassword">' + txt_recover + '</a></p><div style="clear:both;"></div><input name="redirect" value="' + window.location.pathname + '" type="hidden"></form></div>');
 
        $('a[href*="/login"]').click(function() {
            $('#quickloginform, #quickloginform_overlay').fadeIn();
            $('#quickloginform input[name="username"]').focus();
            return false;
        });
 
        $(document).click(function(e) {
            if ($(e.target).closest('#quickloginform form').length === 0) {
                $('#quickloginform, #quickloginform_overlay').fadeOut();
            }
        });
        $(document).keyup(function(e) {
            if (e.keyCode == 27) {
                $('#quickloginform, #quickloginform_overlay').fadeOut();
            }
        });
    }
});

$(function(){
  var middle_text = " replied to ";
  var empty_title = "this topic";
  if(typeof(compileNotif)!="function")return;var d=compileNotif;Toolbar.compileNotif=compileNotif=function(b){var a=d(b);if(b.text.type==FA.Notification.NOTIF_TOPIC_WATCH){var c=a.match(/^(.*) wrote a message (<a href="\/t[0-9]+(p[0-9]+)?-([^#?"]*)[^"]+">)[^<]+<\/a>$/);c&&(b=c[1]+middle_text+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?empty_title:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,""),a=b+a+"</a>")}return a}
});

help Confused ?
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 9:23 pm

Do you get an error page come up when you try to log in ?

Please take a screen shot of the page you get when you try and log in so we can see the problem.


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 9:27 pm

it just redirects me to the home page (guest view) which is the page I am loging in from

Try for yourself
username: Test Account
password: TestAccountpass
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 9:33 pm

try to turn off your Javascript you posted and see if you still have the same problem.

It looks to me the code is not working right on your new domain name.


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 9:41 pm

I did and had the same result, so it's something with my linking but what could do that?
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 9:42 pm

Clear your browser's cache and history.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 9:44 pm

Panicmakerz wrote:it just redirects me to the home page (guest view) which is the page I am loging in from

Try for yourself
username: Test Account
password: TestAccountpass
It worked for me.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 9:52 pm

still doesnt work
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 9:55 pm

Are you using a mobile device?


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 9:57 pm

no.
here is my DNS settings
using JS for login : login isn't working after domain change Oio14
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:00 pm

using JS for login : login isn't working after domain change Login10


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:05 pm

what browser is this?
I logged in from IE. I used chrome before. why is this happening?
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:07 pm

Firefox 58.0.2


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:16 pm

I did try with Firefox and I could not log in @SLGray it just took me to the main page again.

What login button did you use ? Think


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:16 pm

OKay I fixed it. It was that I wasn't accepting cookies. Can this be avoided though? 
it would be a headache if my users have to accept cookies just to login
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:18 pm

The one under the banner.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:18 pm

You always have to have cookies to log in or your page will not remember the member logging in and being in your forum at the time


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:19 pm

I just tried the one in the top right corner, and it worked, too.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:20 pm

yes but with the same settings I could login from the other URL (testacademy.forumgreek.com)
I am confused.
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:22 pm

I have seen you removed the Javascript you posted is that right ?

Also Godaddy make you use cookies on domain names.


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:23 pm

oh snap. Yes I turned it off
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:24 pm

try and turn it on then see if you still have the problem


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:26 pm

yes I do. I need to change settings from browser to always accept cookies to login
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:28 pm

@SLGray can you log in now on this forum ? now the member has put the code back on coz I can't


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:29 pm

I can not login.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Ape March 7th 2018, 10:30 pm

I am sure it's the code that is messing things up on this as we can't log in when the codes installed on the forum.


using JS for login : login isn't working after domain change Left1212using JS for login : login isn't working after domain change Center11using JS for login : login isn't working after domain change Right112
using JS for login : login isn't working after domain change Ape_b110
using JS for login : login isn't working after domain change Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:41 pm

Is forum's link in the code?  If yes, did you change it with the domain name?


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:44 pm

Did you turn off the code again, because I was able to login?


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by Panicmakerz March 7th 2018, 10:47 pm

Code is on and no it doesnt use the domain
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

In progress Re: using JS for login : login isn't working after domain change

Post by SLGray March 7th 2018, 10:50 pm

Well with the code on now, I can login.


using JS for login : login isn't working after domain change 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 : 51597
Reputation : 3527
Language : English
Location : United States

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

Back to top Go down

Page 1 of 2 1, 2  Next

Back to top

- Similar topics

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