Log Out Page

Go down

Solved Log Out Page

Post by Panicmakerz on February 8th 2018, 13:45

forum: phpBB3
how can I edit that page or remove it ? Or how can I redirect the logout so that it doesnt go to that page?
That happens only when I logout from the toolbar [Welcome] menu.


Last edited by Panicmakerz on February 11th 2018, 17:23; edited 1 time in total
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by SLGray on February 8th 2018, 23:09

Do you want to remove the logout link from the toolbar?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43665
Reputation : 3104
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 8th 2018, 23:25

I want an instant logout. Without this "are you sure" message.
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 10th 2018, 08:39

bump
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by APE on February 10th 2018, 12:18

Hello I have been using this for some time now and it's great.

Ad the following to your JavaScript.
set to: In all the pages

Code:
//NO LOG OUT CODE
//if (localStorage.getItem("logout")) {//
//  localStorage.removeItem("logout");//
//  location.href = '/portal';//
//}//
jQuery(function() {
  if (!_userdata.session_logged_in) {
      return false;
  }
  var _ToolBar = setInterval(function() {
      if (document.getElementById('fa_welcome') !== null) {
        jQuery('a[href$="logout=1"]').attr('href', jQuery('#logout').attr('href'));

        jQuery('a[href*="logout=1"]').click(function(event) {
            localStorage.setItem("logout", 1);
        });
      }
  }, 1000);
});



avatar
APE
Administrator
Administrator

Male Posts : 12458
Reputation : 1304
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 10:09

hello, code didnt work :/
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 12:26

Hello @Panicmakerz,

What is your forum link?
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 14:03

avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 16:01

Do you have a test account where I can test the code to see what's wrong with it?
If you do, please send me the information via PM.
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 16:24

@Panicmakerz,

For me it's okay. I don't see any information page, or anything else. It simply logs me out as it should.

What browser are you using? And have you tried clearing your browser's cookies and cashe?
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 16:27

did you log out from toolbar? I use chrome
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 16:32

I cleared cache and cookies and it logs me out immediatly, but I need to do that every time before I log out so I dont get to the info page. Why is that happening ?
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 16:39

Yes, now I see the problem.
Please, find the above code and replace it with this one:
Code:
//NO LOG OUT CODE
//if (localStorage.getItem("logout")) {//
//  localStorage.removeItem("logout");//
//  location.href = '/portal';//
//}//
jQuery(function() {
  if (!_userdata.session_logged_in) {
      return false;
  }
  var _ToolBar = setInterval(function() {
      if (document.getElementById('fa_welcome') !== null || document.getElementById('fa_usermenu') !== null) {
        jQuery('a[href$="logout=1"]').attr('href', jQuery('#logout').attr('href'));
 
        jQuery('a[href*="logout=1"]').click(function(event) {
            localStorage.setItem("logout", 1);
        });
      }
  }, 1000);
});
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 16:44

still doesnt work.
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 16:47

To me when I test this it works just fine. It should to you too. Have you placed it in all the pages?
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 16:56

Yes
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 16:59

I am seeing some other errors to your forum maybe caused by other Javascripts. Do you have any other javascripts working for your forum?
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 17:03

7 more
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Luffy on February 11th 2018, 17:06

It seems that one of your rest javascripts interfere with this one, because I've tested the code on all versions and it works just fine. Since i cannot see which one it is I cannot tell you precisely which one it is.
avatar
Luffy
Manager
Manager

Male Posts : 5553
Reputation : 616
Language : Greek, English
Location : Greece

https://help.forumotion.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz on February 11th 2018, 17:20

It is that one. I deleted everything and tested. I merged the codes for log out and this one and worked! Thank you very much SOLVED!

Code:
$(function(){
if(/login/.test(window.location.pathname) && $("a:contains('Click here to try again')").length){
var link_page="http://testacademy.forumgreek.com/";
$("a:contains('Click here to try again')").attr("href", link_page);
};
})
avatar
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Sir Chivas™ on February 11th 2018, 17:32

Thank you for posting the solution!

Problem solved & topic archived.
Please read our forum rules: ESF General Rules




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


avatar
Sir Chivas™
Support Moderator
Support Moderator

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

Back to top Go down

Back to top


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