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.

Log Out Page

5 posters

Go down

Solved Log Out Page

Post by Panicmakerz February 8th 2018, 12:45 pm

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.
Log Out Page Oio12


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

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by SLGray February 8th 2018, 10:09 pm

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


Log Out Page 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 : 51563
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 8th 2018, 10:25 pm

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

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 10th 2018, 7:39 am

bump
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Ape February 10th 2018, 11:18 am

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);
});


Log Out Page Left1212Log Out Page Center11Log Out Page Right112
Log Out Page Ape_b110
Log Out Page Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19444
Reputation : 2011
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 February 11th 2018, 9:09 am

hello, code didnt work :/
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 11:26 am

Hello @Panicmakerz,

What is your forum link?


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 1:03 pm

Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 3:01 pm

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.


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 3:24 pm

@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?


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 3:27 pm

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

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 3:32 pm

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 ?
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 3:39 pm

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);
});


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 3:44 pm

still doesnt work.
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 3:47 pm

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


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 3:56 pm

Yes
Log Out Page Oio13
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 3:59 pm

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


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 4:03 pm

7 more
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by TheCrow February 11th 2018, 4:06 pm

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.


Log Out Page Thecro10
Forum of the Forums

Forumotion Rules | Tips & Tricks |
FAQ | Did you forget your password?



*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
TheCrow
TheCrow
Manager
Manager

Male Posts : 6916
Reputation : 795
Language : Greek, English

https://www.inforumgr.com

Back to top Go down

Solved Re: Log Out Page

Post by Panicmakerz February 11th 2018, 4:20 pm

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);
};
})
Panicmakerz
Panicmakerz
Forumember

Posts : 55
Reputation : 1
Language : greek

Back to top Go down

Solved Re: Log Out Page

Post by Sir Chivas™ February 11th 2018, 4:32 pm

Thank you for posting the solution!

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Back to top

- Similar topics

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